From 39972edd5aecddf0595633a31a357f90572c0a98 Mon Sep 17 00:00:00 2001 From: Pedro H <5179251+pedrohdz@users.noreply.github.com> Date: Sat, 29 Apr 2017 17:23:42 +0800 Subject: Added PADDED_SINGLE_COLUMN_STYLE setting The `PADDED_SINGLE_COLUMN_STYLE` allows the main page content to be centered with padding on the sides. This setting takes precidence over `HIDE_SIDEBAR`, `ABOUT_ME`, and `AVATAR`, hiding the sidebar completely when `PADDED_SINGLE_COLUMN_STYLE` is set to `True`. Also cleaned up how the `class`es are assigned in the main content div. Things were starting to get unreadable in there IMHO. --- pelican-bootstrap3/EXAMPLES.md | 2 ++ pelican-bootstrap3/README.md | 9 +++++++ pelican-bootstrap3/templates/base.html | 43 ++++++++++++++++++++-------------- 3 files changed, 36 insertions(+), 18 deletions(-) diff --git a/pelican-bootstrap3/EXAMPLES.md b/pelican-bootstrap3/EXAMPLES.md index 717a461..878371e 100644 --- a/pelican-bootstrap3/EXAMPLES.md +++ b/pelican-bootstrap3/EXAMPLES.md @@ -56,3 +56,5 @@ If your website is listed here, but you don't want it to be, let me know and I'l [Podsnap](http://blog.podsnap.com/) [The Digital Cat](http://lgiordani.com/) by [lgiordani](https://github.com/lgiordani) + +[droun.in](https://droun.in/) by [Pedro H.](https://github.com/digitalrounin) - Uses the `PADDED_SINGLE_COLUMN_STYLE` setting with a modified [Bootstrap/Bootswatch configuration](https://github.com/digitalrounin/bootswatch/tree/drounin/drounin) and [custom CSS](https://droun.in/css/custom.css). diff --git a/pelican-bootstrap3/README.md b/pelican-bootstrap3/README.md index ccf739d..27b9d7a 100644 --- a/pelican-bootstrap3/README.md +++ b/pelican-bootstrap3/README.md @@ -272,6 +272,15 @@ Other sidebar related options include: * To remove the sidebar entirely, set `HIDE_SIDEBAR` to _True_. * To move the sidebar to the left, set `SIDEBAR_ON_LEFT` to _True_. * To turn off inlined icons in the titles set `DISABLE_SIDEBAR_TITLE_ICONS` to + _True_. + +### Padded, Single Column Content Style + +The main body of the pages will be generated centered and with padding on the sides when `PADDED_SINGLE_COLUMN_STYLE` is set to `True`. + +The values in `HIDE_SIDEBAR`, `ABOUT_ME`, and ` AVATAR` are ignored when `PADDED_SINGLE_COLUMN_STYLE` is set to `True`. This means that none of the sidebar content will be rendered. + +Use of the `PADDED_SINGLE_COLUMN_STYLE` can be seen at [droun.in](https://droun.in/). Note that the example blog is utilizing a modified [Bootstrap/Bootswatch configuration](https://github.com/digitalrounin/bootswatch/tree/drounin/drounin) with [custom CSS](https://droun.in/css/custom.css). ### reStructuredText styles diff --git a/pelican-bootstrap3/templates/base.html b/pelican-bootstrap3/templates/base.html index 28e592a..c80d84b 100644 --- a/pelican-bootstrap3/templates/base.html +++ b/pelican-bootstrap3/templates/base.html @@ -108,7 +108,7 @@