mirror of
https://github.com/gohugoio/hugo.git
synced 2026-09-02 11:42:37 +00:00
48 lines
1.6 KiB
HTML
48 lines
1.6 KiB
HTML
<div class="last-modified">Last Updated: {{with .Lastmod}}{{.Format "2006-01-02"}}{{else}}{{.PublishDate.Format "2006-01-02"}}{{end}}</div>
|
|
<footer id="content-footer">
|
|
{{$section := .Section}}
|
|
{{ if .NextInSection }}
|
|
<a href="{{.NextInSection.Permalink}}" class="cf-link prev-page">
|
|
<i class="fa fa-chevron-left"></i>
|
|
<div class="page-info">
|
|
<span>Previous</span>
|
|
<h5 class="{{$section}}">{{if eq .Section "functions"}}{{- replace (.NextInSection.LinkTitle) "and" "<em>and</em>" | safeHTML -}}{{else}}{{.NextInSection.Title | markdownify}}{{end}}</h5>
|
|
</div>
|
|
</a>
|
|
{{ else if eq .Kind "page" }}
|
|
{{ with .Site.GetPage "section" $section }}
|
|
<a href="{{.Permalink}}" class="cf-link prev-page">
|
|
|
|
<i class="fa fa-chevron-left"></i>
|
|
|
|
<div class="page-info">
|
|
<span>Previous</span>
|
|
<h5 class="{{$section}}">{{if eq .Section "functions"}}{{- replace (.LinkTitle) "and" "<em>and</em>" | safeHTML -}}{{else}}{{.Title | markdownify}}{{end}}</h5>
|
|
</div>
|
|
</a>
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ with .PrevInSection }}
|
|
<a href="{{.Permalink}}" class="cf-link next-page">
|
|
<div class="page-info">
|
|
<span>Next</span>
|
|
<h5 class="{{$section}}">{{if eq .Section "functions"}}{{- replace (.LinkTitle) "and" "<em>and</em>" | safeHTML -}}{{else}}{{.Title | markdownify}}{{end}}</h5>
|
|
</div>
|
|
<i class="fa fa-chevron-right"></i>
|
|
</a>
|
|
{{ end }}
|
|
{{if eq .Kind "section"}}
|
|
{{ range first 1 .Data.Pages }}
|
|
<a href="{{.Permalink}}" class="cf-link next-page">
|
|
<div class="page-info">
|
|
<span>Next</span>
|
|
<h5 class="{{.Section}}">{{.Title}}</h5>
|
|
</div>
|
|
|
|
<i class="fa fa-chevron-right"></i>
|
|
|
|
</a>
|
|
{{end}}
|
|
{{end}}
|
|
</footer>
|