Blog: Move blog styles and content templates to the base repo

This commit is contained in:
Eryn Wells 2024-08-07 07:43:50 -10:00
parent 2e37336f5e
commit ea26f5f68b
5 changed files with 101 additions and 5 deletions

View file

@ -0,0 +1,20 @@
{{ if .Section }}
{{- $previousInSection := .PrevInSection -}}
{{- $nextInSection := .NextInSection -}}
{{ if or $previousInSection $nextInSection }}
<ul class="page-navigation">
{{ with $nextInSection -}}
<li class="previous-page">
<a href="{{ .Permalink }}">{{ .LinkTitle | markdownify }}</a>
</li>
{{- end }}
{{ with $previousInSection -}}
<li class="next-page">
<a href="{{ .Permalink }}">{{ .LinkTitle | markdownify }}</a>
</li>
{{- end }}
</ul>
{{ end }}
{{ end }}