From a8217f6241e7a5a747e8aea8ab37627b09c08dfa Mon Sep 17 00:00:00 2001 From: lafleur Date: Mon, 16 Nov 2020 17:50:05 +0100 Subject: [PATCH] scope with links to parents --- assets/css/style.scss | 2 +- layouts/partials/scope.html | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/assets/css/style.scss b/assets/css/style.scss index f855eab..3dc280e 100644 --- a/assets/css/style.scss +++ b/assets/css/style.scss @@ -10,7 +10,7 @@ a { } a.exposed, span.exposed { font-weight: bold; - font-size: 1.3em; + font-size: 1.1em; } a:visited { } diff --git a/layouts/partials/scope.html b/layouts/partials/scope.html index d0ba720..40b34bf 100644 --- a/layouts/partials/scope.html +++ b/layouts/partials/scope.html @@ -1,5 +1,6 @@ -{{- $pathList := split (trim (path.Dir .RelPermalink) "/") "/" -}} -{{- range $i, $val := $pathList -}} - {{- $val -}} - {{- if ne $i (sub (len $pathList) 1) }} > {{ end -}} +{{- if .Parent.IsHome -}} + {{ .Title }} +{{- else -}} + {{- partial "scope.html" .Parent }} + > {{ .Title }} {{- end -}}