theme: wildspace

This commit is contained in:
Sören Weber 2024-08-29 00:33:11 +02:00
parent e95d057776
commit eceebaf8df
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D
5 changed files with 8 additions and 8 deletions
layouts
_default
partials

View file

@ -49,7 +49,7 @@
{{- else }} {{- else }}
{{- $visible = and .Title .Permalink (or (not $relearnIsHiddenFrom) (ne .Site.Params.disableSeoHiddenPages true) ) }} {{- $visible = and .Title .Permalink (or (not $relearnIsHiddenFrom) (ne .Site.Params.disableSeoHiddenPages true) ) }}
{{- end }} {{- end }}
{{- if $visible }} {{- if $visible }}
<item> <item>
<title>{{ partial "pageHelper/title.hugo" (dict "page" .) }}</title> <title>{{ partial "pageHelper/title.hugo" (dict "page" .) }}</title>
<link>{{ partial "relLangPrettyUglyURL.hugo" (dict "to" . "abs" true) }}</link> <link>{{ partial "relLangPrettyUglyURL.hugo" (dict "to" . "abs" true) }}</link>

View file

@ -1,2 +1,2 @@
<p>Built with <a href="https://github.com/McShelby/hugo-theme-relearn" title="love"><i class="fas fa-heart"></i></a> by <a href="https://gohugo.io/">Hugo</a></p> <p>Built with <a href="https://github.com/McShelby/hugo-theme-relearn" title="love"><i class="fas fa-heart"></i></a> by <a href="https://gohugo.io/">Hugo</a></p>

View file

@ -4,10 +4,10 @@
{{- $result := "" }} {{- $result := "" }}
{{- range $collection }} {{- range $collection }}
{{- if $found }} {{- if $found }}
{{- $result = .Page.Page }} {{- $result = .Page.Page }}
{{- break }} {{- break }}
{{- else if eq $item .Page.Page }} {{- else if eq $item .Page.Page }}
{{- $found = true }} {{- $found = true }}
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- return $result }} {{- return $result }}

View file

@ -4,8 +4,8 @@
{{- $result := "" }} {{- $result := "" }}
{{- range $collection }} {{- range $collection }}
{{- if eq $item .Page.Page }} {{- if eq $item .Page.Page }}
{{- $result = $found }} {{- $result = $found }}
{{- break }} {{- break }}
{{- end }} {{- end }}
{{- $found = .Page.Page }} {{- $found = .Page.Page }}
{{- end }} {{- end }}

View file

@ -12,7 +12,7 @@
{{- if .Site.Params.editURL }} {{- if .Site.Params.editURL }}
{{- $href = .Site.Params.editURL }} {{- $href = .Site.Params.editURL }}
{{- if not (strings.Contains $href "${FilePath}") }} {{- if not (strings.Contains $href "${FilePath}") }}
{{ $href = printf "%s%s" $href "${FilePath}" }} {{- $href = printf "%s%s" $href "${FilePath}" }}
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- if isset .Params "editurl" }} {{- if isset .Params "editurl" }}