1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-09-19 20:02:10 +00:00

Add open graph profile metadata

This commit is contained in:
Rohan Kumar 2022-02-15 21:42:24 -08:00
parent f006c2f4ce
commit 1f5142524b
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479
2 changed files with 7 additions and 0 deletions

View file

@ -20,6 +20,9 @@ highlight = false
[author]
name = "Rohan Kumar"
first = "Rohan"
last = "Kumar"
nick = "Seirdy"
[menu]
[[menu.main]]

View file

@ -27,6 +27,7 @@
<link rel="webmention" href="https://seirdy.one/webmentions/receive">
{{ end -}}
<link rel="canonical" href="https://seirdy.one{{ .RelPermalink }}">
<!-- inline CSS; remember to allow it with a hash in the CSP -->
{{ $resources := slice -}}
{{ $resources = $resources | append (resources.Get "/css/main.css") -}}
{{ $dark := .Site.Params.dark | default "auto" -}}
@ -57,6 +58,9 @@
<meta property="og:image:alt" content="White-on-black colon and semicolon">
<meta property="og:url" content="https://seirdy.one{{ .RelPermalink }}">
<meta property="og:description" content="{{ if .Params.description }}{{ .Params.description }}{{ else }}{{ .Site.Params.Description }}{{ end }}">
<meta property="profile:first_name" content="{{ .Site.Author.first }}">
<meta property="profile:last_name" content="{{ .Site.Author.last }}">
<meta property="profile:username" content="{{ .Site.Author.nick }}">
<meta property="article:author" content="{{ .Site.Author.name }}">
<meta property="article:published_time" content="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
{{ if lt .Date .Lastmod -}}