From 789876a144c58cd4876913ac75c2024c643576a6 Mon Sep 17 00:00:00 2001
From: Osterberg <me@gummigroda.se>
Date: Fri, 31 Dec 2021 12:27:06 +0000
Subject: [PATCH] feat: Added page title switcher (#286)
---
layouts/partials/head.html | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 524051b..5ac438b 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -1,12 +1,18 @@
<head>
<title>
- {{ .Site.Params.author }}{{ with .Title }}
- |
- {{ . }}
+ {{ if (eq .Site.Params.reversepagetitle true) }}
+ {{ with .Title }}
+ {{ . }} |
+ {{ end }}{{ .Site.Params.author }}
+
+ {{ else }}
+ {{ .Site.Params.author }}{{ with .Title }}
+ | {{ . }}
+
+ {{ end }}
{{ end }}
-
</title>
<!-- Meta -->
--
Gitblit v1.10.0