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:
- <https://docs.getpelican.com/en/stable/settings.html#basic-settings>
- <https://docs.getpelican.com/en/stable/settings.html#MENUITEMS>
This commit is contained in:
Arnaud Rebillout
2019-02-17 12:41:03 +07:00
parent d54ac6880c
commit cdb83aabc2
3 changed files with 25 additions and 1 deletions
+7
View File
@@ -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;