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

gitlab.com/toryanderson/hugo-icarus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregas Maximus <gregasmaximus@gmail.com>2017-01-21 07:21:47 +0300
committerGregas Maximus <gregasmaximus@gmail.com>2017-01-21 07:21:47 +0300
commit3d04e6d06d33e71c2263e20252b2b83cfac64ff6 (patch)
treeacaf0448e19d3e51bd82b1aae47d65a49059ed0d
parentf227e6698c87fa19190f749c03a0b8aa931467eb (diff)
Enable suppression of prev/next links
-rw-r--r--README.md4
-rw-r--r--layouts/partials/prev_next_post.html2
2 files changed, 5 insertions, 1 deletions
diff --git a/README.md b/README.md
index 6ff6e45..c3642a7 100644
--- a/README.md
+++ b/README.md
@@ -113,6 +113,10 @@ You can deactivate them under `params.widgets`:
The date line includes: post date, # of words, approximate reading, time tags and categories. However, if you want certain pages to omit the date line, simply put `nodateline = true` in the front matter for that page.
+### Disable Previous / next article links
+
+To disable the inclusion of a previous/next article link at the bottom of the page, add `noprevnext = true` to the front matter. This feature, along with `nodateline` can be used to create standalone pages that are less "blog-like"
+
## Localization (l10n)
You don't blog in English and you want to translate the theme into your native locale? No problem. Take a look in the `data` folder and you'll find a file `l10n.toml` that we've copied at the beginning. It contains all strings related to the theme. Just replace the original strings with your own.
diff --git a/layouts/partials/prev_next_post.html b/layouts/partials/prev_next_post.html
index d5f71f9..610ee4c 100644
--- a/layouts/partials/prev_next_post.html
+++ b/layouts/partials/prev_next_post.html
@@ -1,4 +1,4 @@
-{{ if or .PrevInSection .NextInSection }}
+{{ if and (or .PrevInSection .NextInSection) (not .Params.noprevnext) }}
<nav id="article-nav">
{{ if .PrevInSection }}
<a href="{{ .PrevInSection.Permalink }}" id="article-nav-older" class="article-nav-link-wrap">