parse baseURL instead of hardcoded url and allow linking back to gallery start

This commit is contained in:
Christoph Schindlbeck 2023-02-09 22:48:43 +01:00
parent 9be5ec7582
commit 198df94647

View File

@ -24,7 +24,9 @@
{{- $crumb_is_title := .Site.Params.breadcrumb_use_title | default false -}} {{- $crumb_is_title := .Site.Params.breadcrumb_use_title | default false -}}
<!-- Build the breadcrumb - base URL link, path links for each dir, cur location text --> <!-- Build the breadcrumb - base URL link, path links for each dir, cur location text -->
<a href="https://www.vvoid.camp"><strong>{{ .Site.Title }}</strong></a> {{ $url := urls.Parse $.Site.BaseURL }}
<a href="{{ $url.Scheme }}://{{ $url.Host }}"><strong>{{ .Site.Title }}</strong></a>
/ <a href="{{ $.Site.BaseURL }}"><strong>Gallery</strong></a>
{{- if gt $use_part_cnt 0 -}} {{- if gt $use_part_cnt 0 -}}
{{- range $cur_ind, $element := first (sub $use_part_cnt 1) $url_parts -}} {{- range $cur_ind, $element := first (sub $use_part_cnt 1) $url_parts -}}
{{- $path := string (delimit (first (add $cur_ind 1) $url_parts) "/") -}} {{- $path := string (delimit (first (add $cur_ind 1) $url_parts) "/") -}}