From 8b7419082f04e5ba22e18d875f1e1ba2c91b0e6b Mon Sep 17 00:00:00 2001 From: Kappa Wingman <64772920+kappa-wingman@users.noreply.github.com> Date: Thu, 28 May 2020 01:54:12 +0800 Subject: [PATCH] Collapse layout for sidebar archive.html Update the variables in sidebar recent_posts.html --- README.md | 9 ++++-- templates/includes/sidebar/archive.html | 30 +++++++++++--------- templates/includes/sidebar/recent_posts.html | 8 +++--- 3 files changed, 28 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 49f4514..b6125de 100644 --- a/README.md +++ b/README.md @@ -10,9 +10,14 @@ Pelican-bootstrap3-nero is forked from pelican-bootstrap3 and customized. It is ## Usage -All the parameters used by pelican-bootstrap3 are still usable. +* Most of the parameters used by pelican-bootstrap3 are still usable. +This theme changed a lot from the original theme. +Some of the parameters may not work. -We have new settings specific to this theme, also check CHANGELOG.rst +* Know problems + * DISABLE_SIDEBAR_TITLE_ICONS may not be working + +* We have new settings specific to this theme, also check CHANGELOG.rst * Setup Cookie Consent 2 * COOKIE_CONSENT2 = True diff --git a/templates/includes/sidebar/archive.html b/templates/includes/sidebar/archive.html index 246512b..6a9a7b8 100644 --- a/templates/includes/sidebar/archive.html +++ b/templates/includes/sidebar/archive.html @@ -2,24 +2,28 @@ {% from 'includes/sidebar/macros.jinja' import title %} -
- -

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

- - -
+ + + {% endif %} diff --git a/templates/includes/sidebar/recent_posts.html b/templates/includes/sidebar/recent_posts.html index 95e25a6..bdad5f5 100644 --- a/templates/includes/sidebar/recent_posts.html +++ b/templates/includes/sidebar/recent_posts.html @@ -4,17 +4,17 @@ {% set RECENT_POST_COUNT = 5 %} {% endif %} -
+
-
+

-

-
+
{% for article in articles[:RECENT_POST_COUNT] %}