parameterize head section

This commit is contained in:
yequari 2024-05-05 21:19:08 -07:00
parent 6eb86ef064
commit 0b482c3c61
2 changed files with 8 additions and 3 deletions

View File

@ -4,6 +4,8 @@ title: yequari.com
theme: dreamcast theme: dreamcast
params: params:
about: "I write code and occasionally blog posts." about: "I write code and occasionally blog posts."
webmentions: https://webmention.io/yequari.com/webmention
pingbacks: https://webmention.io/yequari.com/xmlrpc
taxonomies: taxonomies:
category: categories category: categories
tag: tags tag: tags

View File

@ -2,13 +2,16 @@
<meta name="viewport" content="width=device-width"> <meta name="viewport" content="width=device-width">
<meta charset="utf-8"> <meta charset="utf-8">
<meta property="og:type" content="website"> <meta property="og:type" content="website">
<meta property="og:url" content="https://yequari.com/"> <meta property="og:url" content="{{ .Site.BaseURL }}">
<meta property="og:title" content="{{ .Page.Title }}"> <meta property="og:title" content="{{ .Page.Title }}">
<meta property="og:site_name" content="{{ .Site.Title }}">
<meta property="og:description" content="{{ .Site.Params.About }}">
<meta property="og:image" content="{{ .Site.Params.OgImage }}">
<title>{{ .Page.Title }}</title> <title>{{ .Page.Title }}</title>
<link rel="stylesheet" href="/css/main.css"> <link rel="stylesheet" href="/css/main.css">
<link rel="icon" type="image/png" href="/favicon.png"> <link rel="icon" type="image/png" href="/favicon.png">
<link rel="webmention" href="https://webmention.io/yequari.com/webmention" /> <link rel="webmention" href="{{ .Site.Params.Webmentions }}" />
<link rel="pingback" href="https://webmention.io/yequari.com/xmlrpc" /> <link rel="pingback" href="{{ .Site.Params.Pingbacks }}" />
{{ range .AlternativeOutputFormats -}} {{ range .AlternativeOutputFormats -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}} {{ end -}}