mirror of
https://github.com/idanoo/m2.nz
synced 2025-07-03 13:52:13 +00:00
Update Theme
This commit is contained in:
parent
a212477863
commit
d47be661bd
212 changed files with 13069 additions and 8406 deletions
|
@ -62,11 +62,24 @@
|
|||
</div>
|
||||
|
||||
<div class="post-nav">
|
||||
{{- if .PrevInSection -}}
|
||||
<a href="{{ .PrevInSection.RelPermalink }}" class="prev" rel="prev" title="{{ .PrevInSection.Title }}"><i class="fas fa-angle-left fa-fw" aria-hidden="true"></i>{{ .PrevInSection.Title }}</a>
|
||||
{{- $prevPage := false -}}
|
||||
{{- $nextPage := false -}}
|
||||
{{- if or (.Params.prev) (.Params.next) -}}
|
||||
{{- with .Params.prev -}}
|
||||
{{- $prevPage = $.Site.GetPage . -}}
|
||||
{{- end -}}
|
||||
{{- with .Params.next -}}
|
||||
{{- $nextPage = $.Site.GetPage . -}}
|
||||
{{- end -}}
|
||||
{{- else -}}
|
||||
{{- $prevPage = .PrevInSection -}}
|
||||
{{- $nextPage = .NextInSection -}}
|
||||
{{- end -}}
|
||||
{{ if .NextInSection }}
|
||||
<a href="{{ .NextInSection.RelPermalink }}" class="next" rel="next" title="{{ .NextInSection.Title }}">{{ .NextInSection.Title }}<i class="fas fa-angle-right fa-fw" aria-hidden="true"></i></a>
|
||||
{{- with $prevPage -}}
|
||||
<a href="{{ .RelPermalink }}" class="prev" rel="prev" title="{{ .Title }}"><i class="fas fa-angle-left fa-fw" aria-hidden="true"></i>{{ .Title | emojify }}</a>
|
||||
{{- end -}}
|
||||
{{ with $nextPage }}
|
||||
<a href="{{ .RelPermalink }}" class="next" rel="next" title="{{ .Title }}">{{ .Title | emojify }}<i class="fas fa-angle-right fa-fw" aria-hidden="true"></i></a>
|
||||
{{- end -}}
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue