Commit a618aad9 authored by Yurizal Susanto's avatar Yurizal Susanto

Add new class to post navigation

Add margin-bottom to the new class
parent 65277964
......@@ -2,21 +2,22 @@
<article>
<header>{{ partial "title" . }}</header>
{{ .Content }}
<nav class="no-print">
<nav class="no-print post-nav">
{{ if .PrevInSection }}
<a class="prev-post" href="{{.PrevInSection.Permalink}}">
<a class="prev-post" href="{{ .PrevInSection.Permalink }}">
<img class="icon-text" src="/img/prev.svg"/>
{{- .PrevInSection.Title -}}
</a>
{{ end }}
{{ if .NextInSection }}
<a class="next-post" href="{{.NextInSection.Permalink}}">
<a class="next-post" href="{{ .NextInSection.Permalink }}">
{{- .NextInSection.Title -}}
<img class="icon-text" src="/img/next.svg"/>
</a>
{{ end }}
</nav>
</article>
{{ partial "related" . }}
{{ if in .Site.Params.DisqusSections .Section }}
{{ partial "disqus" . }}
{{ end }}
......
......@@ -276,6 +276,9 @@ blockquote cite a {
}
}
.post-nav {
margin-bottom: 2rem;
}
.next-post {
display: block;
text-align: right;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment