From 3d04e6d06d33e71c2263e20252b2b83cfac64ff6 Mon Sep 17 00:00:00 2001 From: Gregas Maximus Date: Fri, 20 Jan 2017 20:21:47 -0800 Subject: Enable suppression of prev/next links --- README.md | 4 ++++ layouts/partials/prev_next_post.html | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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) }}