Add 'noPostNavigation' option to hide next/previous post links
This commit is contained in:
@@ -51,6 +51,14 @@ paginate = 10
|
|||||||
smartToc = true
|
smartToc = true
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Post Navigation
|
||||||
|
```
|
||||||
|
[params]
|
||||||
|
noPostNavigation = true
|
||||||
|
```
|
||||||
|
|
||||||
|
This option disables links to next and previous post at the bottom of posts.
|
||||||
|
|
||||||
### Disqus
|
### Disqus
|
||||||
```
|
```
|
||||||
disqusShortname = "xxxxxx"
|
disqusShortname = "xxxxxx"
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
{{ if not .Site.Params.NoPostNavigation }}
|
||||||
<nav id="article-nav">
|
<nav id="article-nav">
|
||||||
{{ if .NextPage }}
|
{{ if .NextPage }}
|
||||||
<a href="{{ .NextPage.RelPermalink }}" id="article-nav-newer" class="article-nav-link-wrap">
|
<a href="{{ .NextPage.RelPermalink }}" id="article-nav-newer" class="article-nav-link-wrap">
|
||||||
@@ -12,3 +13,4 @@
|
|||||||
</a>
|
</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</nav>
|
</nav>
|
||||||
|
{{ end }}
|
||||||
|
|||||||
Reference in New Issue
Block a user