From 32e9befd3b34d05e95acb9be67574d4e9e79fb7e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 6 Dec 2017 12:41:01 +0100 Subject: [PATCH] theme: more flexibility for the footer navigation. --- doc/pelican/theme.rst | 6 ++++-- pelican-theme/templates/base.html | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/doc/pelican/theme.rst b/doc/pelican/theme.rst index 470a65bd..eec71de0 100644 --- a/doc/pelican/theme.rst +++ b/doc/pelican/theme.rst @@ -174,8 +174,10 @@ Similarly to the top navbar, :py:`M_LINKS_FOOTER1`, :py:`M_LINKS_FOOTER2`, in the footer navigation. The links are arranged in four columns, which get reduced to just two columns on small screens. Omitting :py:`M_LINKS_FOOTER4` will fill the last column with a *Blog* entry, linking to the Archives page and -listing all blog categories; omitting any of the remaining variables will make -given column empty. +listing all blog categories; you can disable that entry by setting +:py:`M_LINKS_FOOTER4 = []`. Omitting any of the remaining variables will make +given column empty, omitting all variables will not render the navigation at +all. The variables are lists of 2-tuples, containing link title and URL. First item is used for column header, if link URL of the first item is empty, given column diff --git a/pelican-theme/templates/base.html b/pelican-theme/templates/base.html index 5373c3c0..350ea335 100644 --- a/pelican-theme/templates/base.html +++ b/pelican-theme/templates/base.html @@ -71,6 +71,7 @@