diff options
Diffstat (limited to 'themes/polaris/layouts/_default')
-rw-r--r-- | themes/polaris/layouts/_default/baseof.html | 27 | ||||
-rw-r--r-- | themes/polaris/layouts/_default/single.html | 3 |
2 files changed, 22 insertions, 8 deletions
diff --git a/themes/polaris/layouts/_default/baseof.html b/themes/polaris/layouts/_default/baseof.html index 1b34f99..37a6059 100644 --- a/themes/polaris/layouts/_default/baseof.html +++ b/themes/polaris/layouts/_default/baseof.html @@ -1,17 +1,28 @@ +{{ $pageTitle := "" }} +{{ if not .IsHome }} + {{ $pageTitle = printf "%s - %s" .Title .Site.Title }} +{{ else }} + {{ $pageTitle = .Site.Title }} +{{ end }} + <!DOCTYPE html> <html> <head> <meta charset="utf-8"> - <title>{{ if not .IsHome }}{{ .Title }} - {{ end }}{{ .Site.Title }}</title> + <title>{{ $pageTitle }}</title> <meta name="viewport" content="width=device-width, initial-scale=1"> - <link rel="icon" href="/img/pfp.png"> - {{ $notoSerif := resources.Get "css/noto-serif.css" | minify | fingerprint }} - <link rel="stylesheet" href="{{ $notoSerif.Permalink }}"> - {{ $style := resources.Get "css/style.css" | minify | fingerprint }} - <link rel="stylesheet" href="{{ $style.Permalink }}"> - {{ with .OutputFormats.Get "rss" }} - {{ printf `<link rel=%q type=%q href=%q title=%q>` .Rel .MediaType.Type .Permalink site.Title | safeHTML }} + <link rel="icon" href="{{ .Site.Params.iconURL }}"> + {{ with resources.Get "css/noto-serif.css" | minify | fingerprint }} + <link rel="stylesheet" href="{{ .Permalink }}"> {{ end }} + {{ with resources.Get "css/style.css" | minify | fingerprint }} + <link rel="stylesheet" href="{{ .Permalink }}"> + {{ end }} + <meta property="og:title" content="{{ $pageTitle }}"> + <meta property="og:url" content="{{ .Page.RelPermalink }}"> + <meta property="og:image" content="{{ .Site.Params.iconURL }}"> + <meta property="og:site_name" content="{{ .Site.Title }}"> + <meta property="og:description" content="{{ .Site.Params.subtext }}"> </head> <body> <nav> diff --git a/themes/polaris/layouts/_default/single.html b/themes/polaris/layouts/_default/single.html index 21b247d..56b9d9d 100644 --- a/themes/polaris/layouts/_default/single.html +++ b/themes/polaris/layouts/_default/single.html @@ -7,5 +7,8 @@ </p> {{ end }} {{ end }} + {{ if or (eq .Section "posts") (.Params.toc) }} + {{ with .TableOfContents }}{{ . }}{{ end }} + {{ end }} {{ .Content }} {{ end }} |