From 869dbbd4acc027892ba7414fa21801137c703cf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20MATHIEU?= Date: Sat, 29 Aug 2015 10:59:37 +0200 Subject: [PATCH] Add support for DISPLAY_PAGES_ON_MENU DISPLAY_CATEGORIES_ON_MENU was already supported. Lets add DISPLAY_PAGES_ON_MENU (same setting than in the pelican documentation) --- README.md | 3 ++- templates/base.html | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cb1f03f..dcf59ea 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,7 @@ For enhancements, bug tracking, and requests please check my [github repo](https * `SITESUBTITLE = 'String'` * `FOOTER_TEXT = 'Replace pelican credit'` * `DISPLAY_CATEGORIES_ON_MENU = True/False` +* `DISPLAY_PAGES_ON_MENU = True/False` * `LINKS = (('Site', 'http://url.com'), ('Site 2', 'http://another.url.com'))` * `SINGLE_AUTHOR = True/False` * `MINT = True/False` @@ -18,4 +19,4 @@ For enhancements, bug tracking, and requests please check my [github repo](https * [tBunnyMan](http://bunnyman.info) (Pelican v1.0) ## Licence -Modified and released under the GNU General Public License, full details in `LICENSE.txt` file. \ No newline at end of file +Modified and released under the GNU General Public License, full details in `LICENSE.txt` file. diff --git a/templates/base.html b/templates/base.html index 655ed3a..1d3c395 100644 --- a/templates/base.html +++ b/templates/base.html @@ -38,9 +38,11 @@

{{ SITENAME }}

{% for title, link in MENUITEMS %}
  • {{ title }}
  • {% endfor %} + {% if DISPLAY_PAGES_ON_MENU %} {% for p in PAGES %} {{ p.title }} {% endfor %} + {% endif %} {% if DISPLAY_CATEGORIES_ON_MENU %} {% for cat, null in categories %} {{ cat }}