Add og:site_name

main
Elnu 2 years ago
parent a2443c6391
commit b6d8801727

@ -2,6 +2,7 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
{{ $title := cond .IsHome .Site.Title (printf "%s" .Title | printf "%s%s" (cond (and (eq .Kind "term") (eq .Data.Singular "tag")) "#" "") | printf "%s") }} {{ $title := cond .IsHome .Site.Title (printf "%s" .Title | printf "%s%s" (cond (and (eq .Kind "term") (eq .Data.Singular "tag")) "#" "") | printf "%s") }}
<meta property="og:site_name" content="{{ .Site.Title }}">
<meta property="og:title" content="{{ $title }}"> <meta property="og:title" content="{{ $title }}">
<meta name="twitter:title" content="{{ $title }}"> <meta name="twitter:title" content="{{ $title }}">
{{ with .Resources.GetMatch "{cover.*,*.jpg,*.png,*.jpeg}" }} {{ with .Resources.GetMatch "{cover.*,*.jpg,*.png,*.jpeg}" }}