mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Add prev/next links
This commit is contained in:
@@ -12,6 +12,16 @@
|
||||
{{ .Content }}
|
||||
</article>
|
||||
|
||||
<hr>
|
||||
<div class="PageNavigation">
|
||||
{{ if .PrevInSection }}
|
||||
<a class="prev" href="{{ .PrevInSection.RelPermalink }}">« {{ .PrevInSection.Title }}</a>
|
||||
{{ end }}
|
||||
{{ if .NextInSection }}
|
||||
<a class="next" href="{{ .NextInSection.RelPermalink }}">{{ .NextInSection.Title }} »</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
<hr>
|
||||
|
||||
{{ partial "disqus.html" . }}
|
||||
{{ partial "footer.html" . }}
|
||||
|
||||
@@ -66,3 +66,39 @@ main img {
|
||||
.post-category.memory-management {
|
||||
color: #990;
|
||||
}
|
||||
|
||||
.PageNavigation {
|
||||
font-size: 0.9em;
|
||||
display: table;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.PageNavigation a {
|
||||
display: table-cell;
|
||||
}
|
||||
|
||||
.PageNavigation .previous {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.PageNavigation .next {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
footer.footer {
|
||||
margin-top: 1rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.footnotes {
|
||||
font-size: 85%;
|
||||
}
|
||||
|
||||
.footnotes li {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
sup, sub {
|
||||
line-height: 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user