From 09aae94c108f54b99614ac0747c24287dbce115d Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Sat, 29 Jul 2017 19:57:37 +0200 Subject: pelican-bootstrap3: Add authors to sidebar --- pelican-bootstrap3/README.md | 1 + pelican-bootstrap3/templates/includes/sidebar.html | 1 + .../templates/includes/sidebar/authors.html | 22 ++++++++++++++++++++++ 3 files changed, 24 insertions(+) create mode 100644 pelican-bootstrap3/templates/includes/sidebar/authors.html (limited to 'pelican-bootstrap3') diff --git a/pelican-bootstrap3/README.md b/pelican-bootstrap3/README.md index 02a130a..ffb3c6c 100644 --- a/pelican-bootstrap3/README.md +++ b/pelican-bootstrap3/README.md @@ -251,6 +251,7 @@ icon to show. You can provide an alternative icon string as the third string (as * **Categories** will be shown if `DISPLAY_CATEGORIES_ON_SIDEBAR` is set to _True_ * **Recent Posts** will be shown if `DISPLAY_RECENT_POSTS_ON_SIDEBAR` is set to _True_ * Use `RECENT_POST_COUNT` to control the amount of recent posts. Defaults to **5** +* **Authors** will be shown if `DISPLAY_AUTHORS_ON_SIDEBAR` is set to _True_ Other sidebar related options include: diff --git a/pelican-bootstrap3/templates/includes/sidebar.html b/pelican-bootstrap3/templates/includes/sidebar.html index 7772ff8..d83a7b8 100644 --- a/pelican-bootstrap3/templates/includes/sidebar.html +++ b/pelican-bootstrap3/templates/includes/sidebar.html @@ -10,6 +10,7 @@ {% include 'includes/sidebar/github.html' %} {% include 'includes/sidebar/twitter_timeline.html' %} {% include 'includes/sidebar/links.html' %} + {% include 'includes/sidebar/authors.html' %} {% include 'includes/sidebar/images.html' %} {% include 'includes/sidebar/optional_bottom.html' ignore missing %} diff --git a/pelican-bootstrap3/templates/includes/sidebar/authors.html b/pelican-bootstrap3/templates/includes/sidebar/authors.html new file mode 100644 index 0000000..114c688 --- /dev/null +++ b/pelican-bootstrap3/templates/includes/sidebar/authors.html @@ -0,0 +1,22 @@ +{% if DISPLAY_AUTHORS_ON_SIDEBAR %} + {% from 'includes/sidebar/macros.jinja' import title %} + + +
  • +

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

    + +
  • + +{% endif %} -- cgit From b30f33e3b7e3a4bc7fb2327e9efd453f3a81488e Mon Sep 17 00:00:00 2001 From: Matthias Bach Date: Fri, 25 Aug 2017 09:58:29 +0200 Subject: Improve documentation on I18N of pelican-bootstrap3 --- pelican-bootstrap3/README.md | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'pelican-bootstrap3') diff --git a/pelican-bootstrap3/README.md b/pelican-bootstrap3/README.md index 02a130a..47af51f 100644 --- a/pelican-bootstrap3/README.md +++ b/pelican-bootstrap3/README.md @@ -38,6 +38,14 @@ plugin: `PLUGIN_PATHS = ['/path/to/git/pelican-plugins']` `PLUGINS = ['i18n_subsites']` +If you are using +[`i18n_subsites`](https://github.com/getpelican/pelican-plugins/tree/master/i18n_subsites) +and you are not using English as your default language, make sure to +also correctly specify the default language of the theme. Otherwise +the translations will not be used on your default site. + +`I18N_TEMPLATES_LANG = 'en'` + ## Usage This theme honors the following standard Pelican settings: -- cgit From 9f2efeba3030418da16aeb1affd95b33f66f6e41 Mon Sep 17 00:00:00 2001 From: Matthias Bach Date: Fri, 1 Sep 2017 22:29:10 +0200 Subject: Add support for Flattr domain verification to Pelican-Boostrap3 --- pelican-bootstrap3/README.md | 4 ++++ pelican-bootstrap3/templates/base.html | 5 +++++ 2 files changed, 9 insertions(+) (limited to 'pelican-bootstrap3') diff --git a/pelican-bootstrap3/README.md b/pelican-bootstrap3/README.md index 02a130a..d8d49d7 100644 --- a/pelican-bootstrap3/README.md +++ b/pelican-bootstrap3/README.md @@ -351,6 +351,10 @@ All you have to do, is: By default, the Tipue search page is configured at "/search.html", but you can override that with the `SEARCH_URL` setting, which comes in handy if you have fancy rewrite rules in your Apache or Nginx configuration. +### Flattr + +This theme has support for linking your domain with [Flattr](https://flattr.com). To enable this provide your `FLATTR_ID`. Be aware that you will also have to go [Flattr's domain settings](https://flattr.com/settings/domains) and link your domain. + ### Footer The footer will display a copyright message using the AUTHOR variable and the year of the latest post. If a content license mark is enabled (see above), that will be shown as well. diff --git a/pelican-bootstrap3/templates/base.html b/pelican-bootstrap3/templates/base.html index 195934b..9a69baf 100644 --- a/pelican-bootstrap3/templates/base.html +++ b/pelican-bootstrap3/templates/base.html @@ -53,6 +53,11 @@ {# Twitter Cards tags #} {% include 'includes/twitter_cards.html' %} + {# Flattr ID for the Flattr browser plug-in #} + {% if FLATTR_ID %} + + {% endif %} + {% if BOOTSTRAP_THEME %} -- cgit