Skip to content

Commit

Permalink
Add 'noPostNavigation' option to hide next/previous post links
Browse files Browse the repository at this point in the history
  • Loading branch information
francium authored and carsonip committed Apr 21, 2020
1 parent 5d01f81 commit 58e5c7d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions layouts/partials/nav.html
Original file line number Diff line number Diff line change
@@ -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">
Expand All @@ -12,3 +13,4 @@
</a>
{{ end }}
</nav>
{{ end }}

0 comments on commit 58e5c7d

Please sign in to comment.