diff --git a/README.md b/README.md index b686e65ebf01c8bd544ec36010a0b8e11732265f..1ddb48a34ee59d07dd7f9f25761974d36912389f 100644 --- a/README.md +++ b/README.md @@ -184,7 +184,7 @@ SOCIAL = (('twitter', 'http://twitter.com/DaanDebie'), ``` The first string in each item will be used for both the name as shown in the sidebar, and to determine the [FontAwesome](http://fontawesome.io/icons/) icon to show. You can provide an alternative icon string as the third string (as shown in the _stackoverflow_ item). -* **Tags** will be shown if `DISPLAY_TAGS_ON_SIDEBAR` is set to _True_. Normally, tags are shown as a list. +* **Tags** will be shown if `DISPLAY_TAGS_ON_SIDEBAR` is set to _True_ and the [tag_cloud](https://github.com/getpelican/pelican-plugins/tree/master/tag_cloud) plugin is enabled. Normally, tags are shown as a list. * Set `DISPLAY_TAGS_INLINE` to _True_, to display the tags inline (ie. as tagcloud) * Set `TAGS_URL` to the relative URL of the tags index page (typically `tags.html`) * **Categories** will be shown if `DISPLAY_CATEGORIES_ON_SIDEBAR` is set to _True_ diff --git a/templates/includes/sidebar.html b/templates/includes/sidebar.html index 4834d063e73424026dd3b0c4787bb032daf0d5d5..ea4134d5a00a1c1cf43ea0047a6aeb9027dd433d 100644 --- a/templates/includes/sidebar.html +++ b/templates/includes/sidebar.html @@ -55,7 +55,7 @@ </li> {% endif %} - {% if DISPLAY_TAGS_ON_SIDEBAR %} + {% if 'tag_cloud' in PLUGINS and DISPLAY_TAGS_ON_SIDEBAR %} {% if DISPLAY_TAGS_INLINE %} {% set tags = tag_cloud | sort(attribute='0') %} {% else %}