mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-18 10:50:24 +00:00
theme: wildspace
This commit is contained in:
parent
e95d057776
commit
eceebaf8df
5 changed files with 8 additions and 8 deletions
|
@ -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>
|
||||
|
|
|
@ -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>
|
|
@ -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 }}
|
|
@ -4,8 +4,8 @@
|
|||
{{- $result := "" }}
|
||||
{{- range $collection }}
|
||||
{{- if eq $item .Page.Page }}
|
||||
{{- $result = $found }}
|
||||
{{- break }}
|
||||
{{- $result = $found }}
|
||||
{{- break }}
|
||||
{{- end }}
|
||||
{{- $found = .Page.Page }}
|
||||
{{- end }}
|
||||
|
|
|
@ -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" }}
|
||||
|
|
Loading…
Reference in a new issue