end of article tag moved to footer, nextprev on

This commit is contained in:
Luke Smith 2022-07-11 15:24:29 -04:00
parent 07c8d9debf
commit c229e1b2e0
4 changed files with 24 additions and 1 deletions

View File

@ -2,5 +2,4 @@
<header><h1>{{ .Title }}</h1></header> <header><h1>{{ .Title }}</h1></header>
<article> <article>
{{ .Content -}} {{ .Content -}}
</article>
{{ partial "footer.html" . }} {{ partial "footer.html" . }}

View File

@ -1,4 +1,6 @@
{{ partial "nextprev.html" . -}}
{{ partial "taglist.html" . -}} {{ partial "taglist.html" . -}}
</article>
</main> </main>
<footer> <footer>
<a href="{{ .Site.BaseURL }}">{{ .Site.BaseURL }}</a><br><br> <a href="{{ .Site.BaseURL }}">{{ .Site.BaseURL }}</a><br><br>

View File

@ -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 }}

View File

@ -33,3 +33,16 @@ footer {
text-align: center ; text-align: center ;
clear: both ; clear: both ;
} }
/* For NEXTPREV.HTML */
#prevart {
float: left ;
text-align: left ;
}
#nextart {
float: right ;
text-align: right ;
}
#nextart,#prevart {
max-width: 33% ;
}