From cdb83aabc251b60e6a4068ae7d65769b5e76dc1e Mon Sep 17 00:00:00 2001 From: Arnaud Rebillout Date: Sun, 17 Feb 2019 12:41:03 +0700 Subject: [PATCH] Add support for MENUITEMS and DISPLAY_PAGES_ON_MENU With this commit, `.sidebar-nav` is renamed to `.sidebar-social`. Then a new class `.sidebar-nav` is created and used for the menu items. This change more or less restores `.sidebar-nav` originally was in the `hyde.css` file. Since `DISPLAY_PAGES_ON_MENU` defaults to `True`, this commit will modify the appearance of your site. To go back to the previous behavior, add this to your pelicanconf.py: DISPLAY_PAGES_ON_MENU = False References: - - --- README.md | 3 +++ static/css/hyde.css | 7 +++++++ templates/sidebar.html | 16 +++++++++++++++- 3 files changed, 25 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6c1a09e..aec7e11 100644 --- a/README.md +++ b/README.md @@ -17,10 +17,13 @@ List of Pelican's settings that are supported by this theme. Refer to the for more details. - `FEED_*` and `*_FEED_*` +- `DISPLAY_PAGES_ON_MENU` - `DISQUS_SITENAME` - `GOOGLE_ANALYTICS` - `GA_COOKIE_DOMAIN` - `SITESUBTITLE` +- `MENUITEMS` +- `SOCIAL` Additional settings: diff --git a/static/css/hyde.css b/static/css/hyde.css index e5b2645..ec0b9b6 100644 --- a/static/css/hyde.css +++ b/static/css/hyde.css @@ -98,6 +98,13 @@ html { /* Sidebar nav */ .sidebar-nav { margin-bottom: 1rem; + list-style: none; + padding-left: 0; +} +.sidebar-social { + display: flex; + justify-content: center; + align-items: center; } .sidebar-nav-item { display: block; diff --git a/templates/sidebar.html b/templates/sidebar.html index ac6681d..4ae6d0f 100644 --- a/templates/sidebar.html +++ b/templates/sidebar.html @@ -12,7 +12,21 @@

{{ BIO }}

-