From 5bdf0ba008962d24c11d726b81aafc4d52a07844 Mon Sep 17 00:00:00 2001 From: Hendra Date: Sun, 21 Apr 2013 12:06:36 +0800 Subject: [PATCH] updated links on sidebar added support to display links to pages in the sidebar. updated readme file with information regarding it. --- README.md | 15 ++++++++------- templates/sidebar.html | 8 +++++++- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 5238a28..e0a775d 100644 --- a/README.md +++ b/README.md @@ -2,10 +2,6 @@ Cait is a theme for static site generator, [Pelican][pelican] -** Warning: The current version of the theme doesn't display list of pages and categories -as usual. The list of links to be displayed must be explicitly defined in the `MENUITEMS`. -Maybe future update will add options to choose the way links are displayed. ** - Cait is a simple responsive (kind of) theme consisting of mostly black, gray, and white. ## Features: @@ -33,15 +29,20 @@ For the contact page, change the 4th line to `Template: contact`. In order to use the landing and contact template, several additional setting values must be specified in the configuration file. -### MENUITEMS +### USE_CUSTOM_MENU The landing page and contact templates includes a link to the other part of the site. These are specified -in the `MENUITEMS` tuple. The links are included in the `(Title, url)` format. The url are specified +in the `CUSTOM_MENUITEMS` tuple. The links are included in the `(Title, url)` format. The url are specified relative to the `SITEURL`. - MENUITEMS = (('Blog', `blog`), + CUSTOM_MENUITEMS = (('Blog', `blog`), ('Contact', 'contact'), ('Projects', '[ages/projects')) +The blog templates aren't required to display the `CUSTOM_MENUITEMS`, in which case will display the +links to the static pages of the site. To use `CUSTOM_MENUITEMS`, specify `USE_CUSTOM_MENU = True` +in the configuration file. Please not that by using the `CUSTOM_MENUITEMS`, the links +to the pages will not be displayed. + ### SOCIAL The landing page can includes links to several social networks. The links are shown in icons, using icons font provided with [FontAwesome][fa]. These are specified with the `SOCIAL` tuple in the diff --git a/templates/sidebar.html b/templates/sidebar.html index 7af6b17..e8f8bb5 100644 --- a/templates/sidebar.html +++ b/templates/sidebar.html @@ -5,9 +5,15 @@ {% include "footer.html" %}