add feed_show_tags option

This commit is contained in:
Dean Attali 2020-09-01 05:48:24 +00:00
parent a0b2ccee84
commit b492d72764
3 changed files with 6 additions and 1 deletions

View File

@ -13,6 +13,7 @@ One of the major changes in this version is that a lot of time was spent on reth
- Added `head-extra` YAML option which i s similar to `footer-extra` but is used to include custom HTML code in a page's `<head>` tag
- Added `full-width` YAML option to allow having full-width pages
- Added `feed_show_excerpt` config option to show/hide the post excerpts on the feed page
- Added `feed_show_tags` config option to show/hide the list of tags on post previews on the feed page
- When `nav-short` is turned on, the avatar will also be shorter
- Fixed rendering issues with `nav-short` option that caused the body of the page to start too low
- Improved the `footer-extra` YAML option to support multiple files instead of only a single file
@ -22,6 +23,7 @@ One of the major changes in this version is that a lot of time was spent on reth
- Changed the behaviour of `site-css` to include site-wide CSS file **before** page-specific files
- Renamed internal css/js files from "main" to "beautifuljekyll" to make it easier for users to troubleshoot
- Added alt text to all images for better accessibility
- Fixed some CSS styles that broke during the bootstrap 4 migration (#716)
## v4.1.0 (2020-08-08)

View File

@ -79,6 +79,9 @@ excerpt_length: 50
# Whether or not to show an excerpt for every blog post in the feed page
feed_show_excerpt: true
# Whether or not to show a list of tags below each post preview in the feed page
feed_show_tags: true
# The keywords to associate with your website, for SEO purposes
#keywords: "my,list,of,keywords"

View File

@ -76,7 +76,7 @@ layout: page
</div>
{% endunless %}
{% if post.tags.size > 0 %}
{% if site.feed_show_tags != false and post.tags.size > 0 %}
<div class="blog-tags">
Tags:
{% for tag in post.tags %}