cedaei.com/themes/paperesque/layouts/_default/single.html

39 lines
1.5 KiB
HTML

{{ define "body-classes" -}}
{{ if .Draft }}draft{{ end }} look-sheet-bkg
{{- end }}
{{ define "content" }}
{{- partial "single-article" . -}}
{{ end }}
{{ define "footer" }}
<!-- TODO: right now, this gets weird when there's a big title on the right.
There might be better info here: https://stackoverflow.com/questions/34995740/css-when-inline-block-elements-line-break-parent-wrapper-does-not-fit-new-width
and you can test on the android-development-developer-productivity article.
Would also be cool to make this fold on mobile so there's two links on separate lines.
-->
{{if (and (not .Parent.IsHome) (or .PrevInSection .NextInSection)) }}
<p style="text-align: center;">© CC-BY-SA 4.0</p>
<div class="nav-bkg-50 content-container-narrow-pad bottom-links text-0p75">
<nav class="flex-row">
{{if .PrevInSection}}
<a href="{{.PrevInSection.Permalink}}" class="flex-row v-center no-underline" style="max-width:45%;">
<span class="text-1p5"></span>&nbsp;<span class="re-underline">Previous: {{ .PrevInSection.Title }}</span>
</a>
{{else}}
<span class="flex-row v-center"></span>
{{end}}
{{if .NextInSection}}
<a href="{{.NextInSection.Permalink}}" class="flex-row v-center no-underline" style="max-width: 45%;">
<span class="re-underline">Next: {{.NextInSection.Title}}</span>&nbsp;<span class="text-1p5"></span>
</a>
{{else}}
<span class="flex-row v-center"></span>
{{end}}
</nav>
</div>
{{ end }}
{{ end }}