Skip to content

Commit

Permalink
remove link-tags settings
Browse files Browse the repository at this point in the history
  • Loading branch information
daattali committed Aug 23, 2020
1 parent f65e439 commit 43d79b6
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 11 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 `<head>` tag
- Added `full-width` YAML option to allow having full-width pages
Expand Down
3 changes: 0 additions & 3 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 0 additions & 4 deletions _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,9 @@ <h3 class="post-subtitle">
{% if post.tags.size > 0 %}
<div class="blog-tags">
Tags:
{% if site.link-tags %}
{% for tag in post.tags %}
<a href="{{ '/tags' | absolute_url }}#{{- tag -}}">{{- tag -}}</a>
{% endfor %}
{% else %}
{{ post.tags | join: ", " }}
{% endif %}
</div>
{% endif %}

Expand Down
4 changes: 0 additions & 4 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,9 @@
{% if page.tags.size > 0 %}
<div class="blog-tags">
Tags:
{% if site.link-tags %}
{% for tag in page.tags %}
<a href="{{ '/tags' | relative_url }}#{{- tag -}}">{{- tag -}}</a>
{% endfor %}
{% else %}
{{ page.tags | join: ", " }}
{% endif %}
</div>
{% endif %}

Expand Down

0 comments on commit 43d79b6

Please sign in to comment.