Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions History.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@

* Icon and logo support with simple tests (#412)

### Bug Fixes

* Include the tag name in the title of per-tag feeds, matching category feeds (#406)

## 0.17.0 / 2022-10-14

### Documentation
Expand Down
4 changes: 4 additions & 0 deletions lib/jekyll-feed/feed.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
{% assign category = page.category | capitalize %}
{% assign title = title | append: " | " | append: category %}
{% endif %}
{% if page.tags %}
{% assign tag = page.tags | capitalize %}
{% assign title = title | append: " | " | append: tag %}
{% endif %}

{% if title %}
<title type="html">{{ title | smartify | xml_escape }}</title>
Expand Down
2 changes: 2 additions & 0 deletions spec/jekyll-feed_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,8 @@ def to_s
expect(Pathname.new(dest_dir("feed/by_tag/fail.xml"))).to exist
expect(Pathname.new(dest_dir("feed/by_tag/success.xml"))).to exist

expect(tags_feed_test).to match '<title type="html">My awesome site | Test</title>'

expect(tags_feed_test).to match "/2013/12/12/dec-the-second.html"
expect(tags_feed_test).to match "/2014/03/04/march-the-fourth.html"
expect(tags_feed_test).to match "/2015/01/18/jekyll-last-modified-at.html"
Expand Down