davideisinger.com

My personal website
Log | Files | Refs | README

commit 625d3741359e199a736885a477b61a359752458a
parent 3465571878a854f8084cb505ad422e1b660e7ba5
Author: David Eisinger <[email protected]>
Date:   Mon, 16 Oct 2023 13:14:38 -0400

Dynamic site title

Diffstat:
Mthemes/v2/layouts/partials/head.html | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/themes/v2/layouts/partials/head.html b/themes/v2/layouts/partials/head.html @@ -1,6 +1,12 @@ <head> <meta charset="utf-8"> - <title>{{ .Site.Title }}</title> + <title> + {{- if .Page.IsHome -}} + {{ .Site.Title }} + {{- else -}} + {{ .Title }} – {{ .Site.Title }} + {{- end -}} + </title> {{ $css := resources.Get "css/style.scss" | toCSS | minify | fingerprint }} <link rel="stylesheet" href="{{ $css.RelPermalink }}"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">