commit c229e1b2e0c9423f49e503f94965d7aeb528c07b
parent 07c8d9debf00cd571af80d7a2cf6761ef2bcabe3
Author: Luke Smith <luke@lukesmith.xyz>
Date: Mon, 11 Jul 2022 15:24:29 -0400
end of article tag moved to footer, nextprev on
Diffstat:
4 files changed, 24 insertions(+), 1 deletion(-)
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
@@ -2,5 +2,4 @@
<header><h1>{{ .Title }}</h1></header>
<article>
{{ .Content -}}
-</article>
{{ partial "footer.html" . }}
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
@@ -1,4 +1,6 @@
+{{ partial "nextprev.html" . -}}
{{ partial "taglist.html" . -}}
+</article>
</main>
<footer>
<a href="{{ .Site.BaseURL }}">{{ .Site.BaseURL }}</a><br><br>
diff --git a/layouts/partials/nextprev.html b/layouts/partials/nextprev.html
@@ -0,0 +1,9 @@
+ {{ if or .Next .Prev }}
+ {{- with .Prev }}
+ <a href="{{ .RelPermalink}}"><div id="prevart">Previous:<br>{{.Title}}</div></a>
+ {{ end }}
+ {{- with .Next }}
+ <a href="{{ .RelPermalink}}"><div id="nextart">Next:<br>{{.Title}}</div></a>
+ {{ end }}
+ <br style="clear:both">
+ {{ end }}
diff --git a/static/style.css b/static/style.css
@@ -33,3 +33,16 @@ footer {
text-align: center ;
clear: both ;
}
+
+/* For NEXTPREV.HTML */
+#prevart {
+ float: left ;
+ text-align: left ;
+}
+#nextart {
+ float: right ;
+ text-align: right ;
+}
+#nextart,#prevart {
+ max-width: 33% ;
+}