From b492d72764de8cc75bde9aa6e3122e7d631d9413 Mon Sep 17 00:00:00 2001 From: Dean Attali Date: Tue, 1 Sep 2020 05:48:24 +0000 Subject: [PATCH] add feed_show_tags option --- CHANGELOG.md | 2 ++ _config.yml | 3 +++ _layouts/home.html | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5343ae7..6382c03 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 `` 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) diff --git a/_config.yml b/_config.yml index b739b6c..fb65a5a 100644 --- a/_config.yml +++ b/_config.yml @@ -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" diff --git a/_layouts/home.html b/_layouts/home.html index 7674f93..c70496a 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -76,7 +76,7 @@ layout: page {% endunless %} - {% if post.tags.size > 0 %} + {% if site.feed_show_tags != false and post.tags.size > 0 %}
Tags: {% for tag in post.tags %}