From 9084cb343f9db4a02c5fe2aea55c67203efe0626 Mon Sep 17 00:00:00 2001 From: Artium Date: Wed, 12 Apr 2017 20:20:06 +0300 Subject: [PATCH] Add DISABLE_PAGE_LINKS and DISABLE_PAGE_BLANK_TARGET configuration parameters. DISABLE_PAGE_LINKS will disable generation of links to static pages, only user defined links will be added to the left sidebar. DISABLE_PAGE_BLANK_TARGET will cause user defined links to open in the same tab instead of a new tab. --- templates/base.html | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/templates/base.html b/templates/base.html index 86e0db8..6cd77a8 100644 --- a/templates/base.html +++ b/templates/base.html @@ -91,18 +91,24 @@ {% if SITESUBTITLE %}

{{ SITESUBTITLE }}

{% endif %} - {% if pages or LINKS %} + {% if (pages and not DISABLE_PAGE_LINKS) or LINKS %} @@ -190,9 +196,9 @@ {% if GITHUB_CORNER_URL %} {% include 'partial/github.html' %} {% endif %} - + {% if DISQUS_SITENAME %} - +