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

github.com/carsonip/hugo-theme-minos.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrancium <francium@francium.cc>2020-04-18 20:05:25 +0300
committerCarson Ip <carsonip@users.noreply.github.com>2020-04-21 16:23:00 +0300
commit58e5c7dbb625c52b691e2eb488811088bb12fc72 (patch)
tree141f0f6acfd0943f0cb96328ad6b884f9dcf8254
parent5d01f8158c56a577c3ecb4988367887b28c13d86 (diff)
Add 'noPostNavigation' option to hide next/previous post links
-rw-r--r--README.md8
-rw-r--r--layouts/partials/nav.html2
2 files changed, 10 insertions, 0 deletions
diff --git a/README.md b/README.md
index 095f99f..c4565a5 100644
--- a/README.md
+++ b/README.md
@@ -51,6 +51,14 @@ paginate = 10
smartToc = true
```
+### Post Navigation
+```
+[params]
+ noPostNavigation = true
+```
+
+This option disables links to next and previous post at the bottom of posts.
+
### Disqus
```
disqusShortname = "xxxxxx"
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html
index 5d98f72..f42ec15 100644
--- a/layouts/partials/nav.html
+++ b/layouts/partials/nav.html
@@ -1,3 +1,4 @@
+{{ if not .Site.Params.NoPostNavigation }}
<nav id="article-nav">
{{ if .NextPage }}
<a href="{{ .NextPage.RelPermalink }}" id="article-nav-newer" class="article-nav-link-wrap">
@@ -12,3 +13,4 @@
</a>
{{ end }}
</nav>
+{{ end }}