mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
✨ Feat: change post nav rule at post footer
replace .PrevInSection/.NextInSection with .Prev/.Next
This commit is contained in:
@@ -19,11 +19,11 @@
|
||||
{{- end -}}
|
||||
|
||||
<link rel="canonical" href="{{ .Permalink }}" />
|
||||
{{- if .PrevInSection -}}
|
||||
<link rel="prev" href="{{ .PrevInSection.Permalink }}" />
|
||||
{{- if .Prev -}}
|
||||
<link rel="prev" href="{{ .Prev.Permalink }}" />
|
||||
{{- end -}}
|
||||
{{- if .NextInSection -}}
|
||||
<link rel="next" href="{{ .NextInSection.Permalink }}" />
|
||||
{{- if .Next -}}
|
||||
<link rel="next" href="{{ .Next.Permalink }}" />
|
||||
{{- end -}}
|
||||
|
||||
{{- with .OutputFormats.Get "RSS" -}}
|
||||
|
||||
@@ -74,13 +74,13 @@
|
||||
</div>
|
||||
|
||||
<div class="post-nav">
|
||||
{{- with .PrevInSection -}}
|
||||
{{- with .Prev -}}
|
||||
<a href="{{ .RelPermalink }}" class="post-nav-item" rel="prev" title="{{ .Title }}">
|
||||
{{- dict "Class" "fa-solid fa-angle-left fa-fw" | partial "plugin/icon.html" -}}
|
||||
{{- .Title -}}
|
||||
</a>
|
||||
{{- end -}}
|
||||
{{ with .NextInSection }}
|
||||
{{ with .Next }}
|
||||
<a href="{{ .RelPermalink }}" class="post-nav-item" rel="next" title="{{ .Title }}">
|
||||
{{- .Title -}}
|
||||
{{- dict "Class" "fa-solid fa-angle-right fa-fw" | partial "plugin/icon.html" -}}
|
||||
|
||||
Reference in New Issue
Block a user