From 43d79b6dc9d54ab3d786536a5f99c71362d9ad7c Mon Sep 17 00:00:00 2001 From: Dean Attali Date: Sun, 23 Aug 2020 22:19:15 +0000 Subject: [PATCH] remove link-tags settings --- CHANGELOG.md | 1 + _config.yml | 3 --- _layouts/home.html | 4 ---- _layouts/post.html | 4 ---- 4 files changed, 1 insertion(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f123ff..70de3e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ One of the major changes in this version is that a lot of time was spent on reth - **BREAKING CHANGE** Renamed `description` config parameter to `rss-description` since it was only used in RSS (the FAQ in the README explains the difference between YAML options and config parameters if you're confused!) - **BREAKING CHANGE** Removed YAML option `use-site-title` (you can now specify the exact title using `share-title`) - **BREAKING CHANGE** Removed undocumented YAML options `meta-title` and `meta-description` +- **BREAKING CHANGE** Removed `link-tags` config parameter because it wasn't necessary. If you use tags, there will be a tags page created; if you don't use tags there is no tags page. - Added `share-title` YAML option to give control over the search engine/social media title - Added `head-extra` YAML option which is 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 diff --git a/_config.yml b/_config.yml index 4e6b21f..9460b8f 100644 --- a/_config.yml +++ b/_config.yml @@ -73,9 +73,6 @@ share-links-active: # Remove this if you don't want a link in the footer url-pretty: "MyWebsite.com" -# Create a "tags" index page and make tags on each post clickable -link-tags: true - # Excerpt word length - Truncate the excerpt of each post on the feed page to the specified number of words excerpt_length: 50 diff --git a/_layouts/home.html b/_layouts/home.html index e5275a9..f6d4e48 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -58,13 +58,9 @@ layout: page {% if post.tags.size > 0 %}
Tags: - {% if site.link-tags %} {% for tag in post.tags %} {{- tag -}} {% endfor %} - {% else %} - {{ post.tags | join: ", " }} - {% endif %}
{% endif %} diff --git a/_layouts/post.html b/_layouts/post.html index d20b6d3..e5d61e2 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -38,13 +38,9 @@ layout: base {% if page.tags.size > 0 %}
Tags: - {% if site.link-tags %} {% for tag in page.tags %} {{- tag -}} {% endfor %} - {% else %} - {{ page.tags | join: ", " }} - {% endif %}
{% endif %}