mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-06-03 15:34:02 +00:00
theme: wildspace
This commit is contained in:
parent
e95d057776
commit
eceebaf8df
5 changed files with 8 additions and 8 deletions
layouts
|
@ -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>
|
||||||
|
|
|
@ -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 := "" }}
|
{{- $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 }}
|
|
@ -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 }}
|
||||||
|
|
|
@ -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" }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue