From acddee8948a8e772394911a081d029ff07ea056a Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Sun, 30 Jul 2017 17:18:02 +0200 Subject: pelican-bootstrap3: Add archive to sidebar --- pelican-bootstrap3/templates/includes/sidebar.html | 1 + .../templates/includes/sidebar/archive.html | 23 ++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 pelican-bootstrap3/templates/includes/sidebar/archive.html (limited to 'pelican-bootstrap3/templates') diff --git a/pelican-bootstrap3/templates/includes/sidebar.html b/pelican-bootstrap3/templates/includes/sidebar.html index 7772ff8..b9cd101 100644 --- a/pelican-bootstrap3/templates/includes/sidebar.html +++ b/pelican-bootstrap3/templates/includes/sidebar.html @@ -11,6 +11,7 @@ {% include 'includes/sidebar/twitter_timeline.html' %} {% include 'includes/sidebar/links.html' %} {% include 'includes/sidebar/images.html' %} + {% include 'includes/sidebar/archive.html' %} {% include 'includes/sidebar/optional_bottom.html' ignore missing %} diff --git a/pelican-bootstrap3/templates/includes/sidebar/archive.html b/pelican-bootstrap3/templates/includes/sidebar/archive.html new file mode 100644 index 0000000..881897b --- /dev/null +++ b/pelican-bootstrap3/templates/includes/sidebar/archive.html @@ -0,0 +1,23 @@ +{% if DISPLAY_ARCHIVE_ON_SIDEBAR and MONTH_ARCHIVE_SAVE_AS %} + {% from 'includes/sidebar/macros.jinja' import title %} + + +
  • +

    {{ title(_('Archive'), DISABLE_SIDEBAR_TITLE_ICONS) }}

    + +
  • + +{% endif %} -- cgit