From c595e8349e47306668bf7abf84499f59ed23a2c0 Mon Sep 17 00:00:00 2001 From: mms Date: Wed, 29 Nov 2023 11:39:18 +0100 Subject: feat: move topnav into header --- layouts/_default/baseof.html | 7 ++----- layouts/_default/single.html | 2 +- layouts/partials/back_nav.html | 9 ++++++++- 3 files changed, 11 insertions(+), 7 deletions(-) (limited to 'layouts') diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index c05e72b..a1395ad 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -63,10 +63,8 @@
@@ -74,7 +72,6 @@
- {{ partial "back_nav" . }} {{ block "main" . }} {{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 53f7f35..5886803 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,6 +1,6 @@ {{ define "main" }}
-

{{ .Page.Title }}

+
{{- if not (eq .Page.Type "special") }} {{ if in .Page.Params.category "star-trek" }} Earthdate diff --git a/layouts/partials/back_nav.html b/layouts/partials/back_nav.html index d900a08..59698dd 100644 --- a/layouts/partials/back_nav.html +++ b/layouts/partials/back_nav.html @@ -1,6 +1,7 @@ +{{ if not .Page.Params.noback }} +{{ end }} -- cgit v1.2.3