remove link-tags settings

This commit is contained in:
Dean Attali 2020-08-23 22:19:15 +00:00
parent f65e439025
commit 43d79b6dc9
4 changed files with 1 additions and 11 deletions

View File

@ -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** 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 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 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 `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 `<head>` tag - Added `head-extra` YAML option which is 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 `full-width` YAML option to allow having full-width pages

View File

@ -73,9 +73,6 @@ share-links-active:
# Remove this if you don't want a link in the footer # Remove this if you don't want a link in the footer
url-pretty: "MyWebsite.com" 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 word length - Truncate the excerpt of each post on the feed page to the specified number of words
excerpt_length: 50 excerpt_length: 50

View File

@ -58,13 +58,9 @@ layout: page
{% if post.tags.size > 0 %} {% if post.tags.size > 0 %}
<div class="blog-tags"> <div class="blog-tags">
Tags: Tags:
{% if site.link-tags %}
{% for tag in post.tags %} {% for tag in post.tags %}
<a href="{{ '/tags' | absolute_url }}#{{- tag -}}">{{- tag -}}</a> <a href="{{ '/tags' | absolute_url }}#{{- tag -}}">{{- tag -}}</a>
{% endfor %} {% endfor %}
{% else %}
{{ post.tags | join: ", " }}
{% endif %}
</div> </div>
{% endif %} {% endif %}

View File

@ -38,13 +38,9 @@ layout: base
{% if page.tags.size > 0 %} {% if page.tags.size > 0 %}
<div class="blog-tags"> <div class="blog-tags">
Tags: Tags:
{% if site.link-tags %}
{% for tag in page.tags %} {% for tag in page.tags %}
<a href="{{ '/tags' | relative_url }}#{{- tag -}}">{{- tag -}}</a> <a href="{{ '/tags' | relative_url }}#{{- tag -}}">{{- tag -}}</a>
{% endfor %} {% endfor %}
{% else %}
{{ page.tags | join: ", " }}
{% endif %}
</div> </div>
{% endif %} {% endif %}