diff options
author | francium <francium@francium.cc> | 2020-04-18 20:05:25 +0300 |
---|---|---|
committer | Carson Ip <carsonip@users.noreply.github.com> | 2020-04-21 16:23:00 +0300 |
commit | 58e5c7dbb625c52b691e2eb488811088bb12fc72 (patch) | |
tree | 141f0f6acfd0943f0cb96328ad6b884f9dcf8254 | |
parent | 5d01f8158c56a577c3ecb4988367887b28c13d86 (diff) |
Add 'noPostNavigation' option to hide next/previous post links
-rw-r--r-- | README.md | 8 | ||||
-rw-r--r-- | layouts/partials/nav.html | 2 |
2 files changed, 10 insertions, 0 deletions
@@ -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 }} |