Modify the theme's headers to enable OGP and twitter card.

This commit is contained in:
Kazuhiro MUSASHI 2020-05-23 01:26:37 +09:00
parent 989028dbbe
commit f0b13bd702
3 changed files with 11 additions and 18 deletions

View File

@ -40,14 +40,8 @@
<!-- OGP Settings
-->
<meta property="fb:app_id" content="951084758293113" />
<meta property="og:site_name" content="His Greatness Lies in His Sense of Responsibility" />
<meta property="og:type" content="article" />
<meta property="og:url" content="{{ .Permalink }}" />
<meta property="og:title" content="{{ .Title }}" />
{{ if .Params.image }}<meta property="og:image" content="{{ .Params.image }}" />{{ end }}
<meta property="og:locale" content="ja_JP" />
<meta property="og:description" content="{{ .Description }}" />
<meta property="article:publisher" content="https://www.facebook.com/kazu634" />
{{template "_internal/opengraph.html" . }}
{{template "_internal/twitter_cards.html" . }}
</head>

View File

@ -37,6 +37,11 @@
<script type="text/javascript">var switchTo5x=true;</script>
<script type="text/javascript">stLight.options({publisher: "2b9fffc6-b3fe-4988-a0ef-4f9dcce98eaa", doNotHash: true, doNotCopy: true, hashAddressBar: false});</script>
<!-- OGP Settings
-->
<meta property="fb:app_id" content="951084758293113" />
{{template "_internal/opengraph.html" . }}
{{template "_internal/twitter_cards.html" . }}
</head>

View File

@ -53,17 +53,11 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/topojson/3.0.0/topojson.min.js"></script>
{{ end }}
<!-- OGP Settings
-->
<!-- OGP Settings -->
<meta property="fb:app_id" content="951084758293113" />
<meta property="og:site_name" content="His Greatness Lies in His Sense of Responsibility" />
<meta property="og:type" content="article" />
<meta property="og:url" content="{{ .Permalink }}" />
<meta property="og:title" content="{{ .Title }}" />
{{ if .Params.image }}<meta property="og:image" content="{{ .Params.image }}" />{{ end }}
<meta property="og:locale" content="ja_JP" />
<meta property="og:description" content="{{ .Description }}" />
<meta property="article:publisher" content="https://www.facebook.com/kazu634" />
{{template "_internal/opengraph.html" . }}
{{template "_internal/twitter_cards.html" . }}
</head>