Skip to content

Commit

Permalink
update: 人気フィードページをprerender
Browse files Browse the repository at this point in the history
  • Loading branch information
yamadashy committed Jan 7, 2024
1 parent 879e1b1 commit c293803
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/site/_includes/layouts/main.njk
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<meta property="og:description" content="{{ constants.siteDescription }}" />
<meta property="og:type" content="website" />
<meta property="og:site_name" content="{{ constants.siteTitle }}" />
<meta property="og:locale" content="ja_JP">

<meta name="twitter:card" content="summary">
<meta property="twitter:domain" content="{{ constants.siteUrl }}">
Expand All @@ -21,7 +22,12 @@
<meta name="twitter:description" content="{{ constants.siteDescription }}">
<meta name="twitter:image" content="{{ constants.siteUrl }}images/og-image.png">

<meta name="thumbnail" content="{{ constants.siteUrl }}images/og-image.png" />

<link rel="preload" href="{{ page.url | relativeUrl }}styles/bundle.css" as="style">
{% if ['/'].includes(page.url) %}
<link rel="prerender" href="{{ page.url | relativeUrl }}hot/">
{% endif %}

{% if constants.googleSiteVerification %}
<meta name="google-site-verification" content="{{ constants.googleSiteVerification }}" />
Expand Down

0 comments on commit c293803

Please sign in to comment.