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

View file

@ -49,7 +49,7 @@
{{- else }}
{{- $visible = and .Title .Permalink (or (not $relearnIsHiddenFrom) (ne .Site.Params.disableSeoHiddenPages true) ) }}
{{- end }}
{{- if $visible }}
{{- if $visible }}
<item>
<title>{{ partial "pageHelper/title.hugo" (dict "page" .) }}</title>
<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 := "" }}
{{- range $collection }}
{{- if $found }}
{{- $result = .Page.Page }}
{{- break }}
{{- $result = .Page.Page }}
{{- break }}
{{- else if eq $item .Page.Page }}
{{- $found = true }}
{{- $found = true }}
{{- end }}
{{- end }}
{{- return $result }}

View file

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

View file

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