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

github.com/tosi29/inkblotty.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortosi29 <tosi16@gmail.com>2019-05-25 17:12:14 +0300
committertosi29 <tosi16@gmail.com>2019-05-25 17:12:14 +0300
commit4f211d941a9095b16ab4cc05d5f22b40bf31b5c0 (patch)
tree846aa45ce73a87ea01fcb1ce8ea6a89ebab31586
parent693fc1078b50017530fe30833cef03fd4d91c736 (diff)
Show page navigation(prev, next) in 'post' page only
-rw-r--r--layouts/_default/single.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 45ea4dd..61d48da 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -41,6 +41,7 @@
{{ partial "relatedposts.html" . }}
</article>
+ {{ if eq .Page.Type "post" }}
<nav class="navigation post-navigation" role="navigation">
<div class="nav-links">
<div class="nav-previous">
@@ -58,6 +59,7 @@
<section>
{{ template "_internal/disqus.html" . }}
</section>
+ {{ end }}
</main>