parse baseURL instead of hardcoded url and allow linking back to gallery start
This commit is contained in:
parent
9be5ec7582
commit
198df94647
@ -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) "/") -}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user