+ Proper open graph tags

This commit is contained in:
shockrah
2021-08-16 23:10:44 -07:00
parent bf32ad058e
commit 4ab8f53144
5 changed files with 9 additions and 13 deletions

View File

@@ -7,4 +7,13 @@
{{ $title := print .Title }}
{{ if .IsHome }}{{ $title = .Site.Title}}{{end}}
<title>{{ $title }}</title>
<meta property="og:title" content="{{ $title }}">
<meta property="og:site_name" content="Shockrah's not-a-blog">
{{ $url := print .RelPermalink }}
<meta property="og:url" content="https://shockrah.xyz">
{{ $desc := print .Description }}
{{ if .IsHome }}{{ $desc = .Params.Description }}{{end}}
<meta property="og:description" content="{{ $desc }}">
<meta property="og:type" content="website">
<meta property="og:image" content="/favicon.png">
</head>