mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-23 12:52:10 +00:00
Add open graph profile metadata
This commit is contained in:
parent
f006c2f4ce
commit
1f5142524b
2 changed files with 7 additions and 0 deletions
|
@ -20,6 +20,9 @@ highlight = false
|
|||
|
||||
[author]
|
||||
name = "Rohan Kumar"
|
||||
first = "Rohan"
|
||||
last = "Kumar"
|
||||
nick = "Seirdy"
|
||||
|
||||
[menu]
|
||||
[[menu.main]]
|
||||
|
|
|
@ -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 -}}
|
||||
|
|
Loading…
Reference in a new issue