mirror of
https://github.com/13hannes11/hugo-coder-timeline.git
synced 2024-09-04 00:50:58 +02:00
replace .URL with .RelPermalink (#176)
* replace .URL with .RelPermalink
find * -type f -exec sed -i "" "s/.URL/.RelPermalink/g" {} \;
* fix my bad
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
{{ range .Paginator.Pages }}
|
{{ range .Paginator.Pages }}
|
||||||
<li>
|
<li>
|
||||||
<span class="date">{{ .Date.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}</span>
|
<span class="date">{{ .Date.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}</span>
|
||||||
<a class="title" href="{{ .Params.ExternalLink | default .URL }}">{{ .Title }}</a>
|
<a class="title" href="{{ .Params.ExternalLink | default .RelPermalink }}">{{ .Title }}</a>
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{{ $currentPageUrl := .URL }}
|
{{ $currentPageUrl := .RelPermalink }}
|
||||||
{{ if .Params.series }}
|
{{ if .Params.series }}
|
||||||
<section class="see-also">
|
<section class="see-also">
|
||||||
{{ range .Params.series }}
|
{{ range .Params.series }}
|
||||||
@@ -10,9 +10,9 @@
|
|||||||
<ul>
|
<ul>
|
||||||
{{ $maxItems := $.Site.Params.maxSeeAlsoItems | default 5 }}
|
{{ $maxItems := $.Site.Params.maxSeeAlsoItems | default 5 }}
|
||||||
{{ range first (add $maxItems 1) $series.Pages }}
|
{{ range first (add $maxItems 1) $series.Pages }}
|
||||||
{{ if ne .URL $currentPageUrl }}
|
{{ if ne .RelPermalink $currentPageUrl }}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ .Params.ExternalLink | default .URL }}">{{ .Title }}</a>
|
<a href="{{ .Params.ExternalLink | default .RelPermalink }}">{{ .Title }}</a>
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<li>
|
<li>
|
||||||
<span class="date">{{ .Date.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}</span>
|
<span class="date">{{ .Date.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}</span>
|
||||||
<a class="title" href="{{ .Params.ExternalLink | default .URL }}">{{ .Title }}</a>
|
<a class="title" href="{{ .Params.ExternalLink | default .RelPermalink }}">{{ .Title }}</a>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
Reference in New Issue
Block a user