aboutsummaryrefslogtreecommitdiffhomepage
path: root/themes/polaris/layouts/_default/baseof.html
diff options
context:
space:
mode:
authorfrosty <passedgoandgot200@disroot.org>2025-06-16 23:29:31 -0400
committerfrosty <passedgoandgot200@disroot.org>2025-06-16 23:29:31 -0400
commit862a61c145ad083521f3941c56fd6e914d051a95 (patch)
tree1b41dc3e850c08eb63d07c7dde577e0f56f53215 /themes/polaris/layouts/_default/baseof.html
parentb9b380447b5722b58e21fda0ffaee2fd87e20635 (diff)
add stuff that rocks, enable table of contents, add og tags, and more
Diffstat (limited to 'themes/polaris/layouts/_default/baseof.html')
-rw-r--r--themes/polaris/layouts/_default/baseof.html27
1 files changed, 19 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>