Skip to content

Commit

Permalink
Merge pull request #116 from AheadGameStudio/update_2024
Browse files Browse the repository at this point in the history
ブログカードURL修正
  • Loading branch information
AheadGameStudio authored Sep 23, 2024
2 parents e301521 + 77eda75 commit 3434e0f
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions themes/GodotJapan2024/layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,9 @@
<meta property="og:title" content="{{ .Title }}">
<meta property="og:description" content="{{ .Description }}">
<meta property="og:site_name" content="{{ .Site.Title }}">
{{- $img := "/img/TwitterCard.png" }}
{{- if .IsPage }}{{- $img = .Params.image }}
{{ else if .IsSection }}{{- $img = "/img/TwitterCard.png" }}
{{ end }}
{{- $title := .Title }}
{{- with $img }}
<meta property="og:image" content="{{ $img }}">
{{ end -}}

<meta property="og:image" content="{{ .Site.BaseURL }}img/TwitterCard.png">



<title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }}</title>
Expand Down

0 comments on commit 3434e0f

Please sign in to comment.