end of article tag moved to footer, nextprev on
This commit is contained in:
parent
07c8d9debf
commit
c229e1b2e0
@ -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" . }}
|
||||||
|
@ -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>
|
||||||
|
9
layouts/partials/nextprev.html
Normal file
9
layouts/partials/nextprev.html
Normal 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 }}
|
@ -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% ;
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user