geronimo/layouts/_default/baseof.html

40 lines
1.8 KiB
HTML
Raw Normal View History

2021-10-01 16:49:55 +00:00
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode | default "en-us" }}">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title itemprop="name">{{ .Title }} | {{ .Site.Title }}</title>
<meta property="og:title" content="{{ .Title }} | {{ .Site.Title }}" />
{{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
{{ with .Params.date }}<meta name="og:type" content="article" />{{ else }}<meta name="og:type" content="website" />{{end}}
{{- with .Description }}
<meta name="description" content="{{ . }}">
<meta property="og:description" content="{{ . }}"/>
{{ else }}
<meta name="description" content="{{ .Site.Params.Description }}">
<meta property="og:description" content="{{ .Site.Params.Description }}"/>
{{- end }}
<link rel="shortcut icon" type="image/png" href="/favicon.png" />
{{- with .RelPermalink }}
<meta name="url" content="{{ . }}" />
<meta property="og:url" content="{{ . }}" />
{{- end }}
<link rel="openid.delegate" href="https://ethanyoo.com/" />
<link rel="openid.server" href="https://openid.indieauth.com/openid" />
<link rel="webmention" href="https://webmention.io/ethanyoo.com/webmention" />
{{- with .OutputFormats.Get "RSS" -}}{{ printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}{{ end }}
<style>body{background:#10151a}html{visibility:hidden;opacity:0;}</style>
</head>
<body>
{{- if not .IsHome }}{{ partial "header" . }}{{ end }}
{{- if .IsHome }}{{- block "header" . }}{{ end }}
{{- end }}
{{- block "main" . }}{{ end }}
<link rel="stylesheet" href="/css/style.css?rnd={{ now.Unix }}">
{{ if not .IsHome }}{{ partial "footer" . }}
{{ end }}
</body>
</html>