Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/yursan9/manis-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYurizal Susanto <rizalsagi@gmail.com>2018-04-02 18:47:56 +0300
committerYurizal Susanto <rizalsagi@gmail.com>2018-04-02 18:47:56 +0300
commita618aad932e74985f983d7b7dd0e5d97cb385cee (patch)
tree788a01da8c8265d8025efa0e115e74a3d72f7805
parent65277964d615bc6c161c6d4188368d67d24658ac (diff)
Add new class to post navigation
Add margin-bottom to the new class
-rw-r--r--layouts/_default/single.html7
-rw-r--r--static/css/ui.css3
2 files changed, 7 insertions, 3 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index b794c7b..097bea7 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -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 }}
diff --git a/static/css/ui.css b/static/css/ui.css
index 152a3ad..80e9cde 100644
--- a/static/css/ui.css
+++ b/static/css/ui.css
@@ -276,6 +276,9 @@ blockquote cite a {
}
}
+.post-nav {
+ margin-bottom: 2rem;
+}
.next-post {
display: block;
text-align: right;