From 198df946475efb3cd09515081b3f126d90177850 Mon Sep 17 00:00:00 2001 From: Christoph Schindlbeck Date: Thu, 9 Feb 2023 22:48:43 +0100 Subject: [PATCH] parse baseURL instead of hardcoded url and allow linking back to gallery start --- gallery/themes/autophugo/layouts/partials/header.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gallery/themes/autophugo/layouts/partials/header.html b/gallery/themes/autophugo/layouts/partials/header.html index 50a67f9..8296be3 100644 --- a/gallery/themes/autophugo/layouts/partials/header.html +++ b/gallery/themes/autophugo/layouts/partials/header.html @@ -24,7 +24,9 @@ {{- $crumb_is_title := .Site.Params.breadcrumb_use_title | default false -}} - {{ .Site.Title }} + {{ $url := urls.Parse $.Site.BaseURL }} + {{ .Site.Title }} + / Gallery {{- if gt $use_part_cnt 0 -}} {{- range $cur_ind, $element := first (sub $use_part_cnt 1) $url_parts -}} {{- $path := string (delimit (first (add $cur_ind 1) $url_parts) "/") -}}