Skip to content

Commit

Permalink
Add jekyll-feed gem to enable atom feed (#372)
Browse files Browse the repository at this point in the history
* Add jekyll-feed gem to Gemfile and dependencies

This commit adds the 'jekyll-feed' gem to the Gemfile and its corresponding dependency in the Gemfile.lock and _config.yml files.

The atom feed is then available at /feed.xml

* Add autodiscovery metatag for atom feed to header.html

* Use the built-in feed_meta tag

* Add rss icon to the footer
  • Loading branch information
andrew authored Jan 16, 2024
1 parent 5664cee commit b76b6cf
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ gem 'jekyll', '~> 4.2.2'
gem 'jekyll-redirect-from', '~> 0.16.0'
gem 'jekyll-seo-tag', '~> 2.8.0'
gem 'jekyll-sitemap', '~> 1.4.0'
gem 'jekyll-feed', '~> 0.17.0'
gem 'wdm', '~> 0.1.1', :install_if => Gem.win_platform?

gem "webrick", "~> 1.7"
3 changes: 3 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ GEM
rouge (~> 3.0)
safe_yaml (~> 1.0)
terminal-table (~> 2.0)
jekyll-feed (0.17.0)
jekyll (>= 3.7, < 5.0)
jekyll-redirect-from (0.16.0)
jekyll (>= 3.3, < 5.0)
jekyll-sass-converter (2.2.0)
Expand Down Expand Up @@ -98,6 +100,7 @@ PLATFORMS
DEPENDENCIES
html-proofer (~> 3.19.3)
jekyll (~> 4.2.2)
jekyll-feed (~> 0.17.0)
jekyll-redirect-from (~> 0.16.0)
jekyll-seo-tag (~> 2.8.0)
jekyll-sitemap (~> 1.4.0)
Expand Down
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ plugins:
- jekyll-redirect-from
- jekyll-seo-tag
- jekyll-sitemap
- jekyll-feed

sass:
style: compressed
Expand Down
5 changes: 5 additions & 0 deletions _includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@
{%- include icons/discourse.svg -%}
</a>
</li>
<li class="list-inline-item ml-1 ml-sm-3">
<a href="/feed.xml" rel="noopener" target="_blank" title="RSS/Atom Feed">
{%- include icons/rss-fill.svg -%}
</a>
</li>
</ul>
</div>
</div>
Expand Down
2 changes: 2 additions & 0 deletions _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

<meta name="referrer" content="strict-origin-when-cross-origin">

{% feed_meta %}

{%- include head/favicons.html -%}

<link rel="dns-prefetch" href="https://fonts.googleapis.com/">
Expand Down
3 changes: 3 additions & 0 deletions _includes/icons/rss-fill.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b76b6cf

Please sign in to comment.