Adding an RSS feed to a Jekyll blog

I’ve added an RSS feed to this blog. Here’s what I did. Add to your Gemfile:

gem 'jekyll-feed'

Run:

bundle install

Add to your _config.yml:

gems:
  - jekyll-feed

Add to your HTML template:

<!doctype html>
<html lang="en">
  <head>
    <link rel="alternate" type="application/rss+xml" href="https://jameshfisher.com/feed.xml" />
    <!-- ... -->
  </head>
  <body>
    <!-- ... -->
    <a href="https://jameshfisher.com/feed.xml">RSS feed.</a>
    <!-- ... -->
  </body>
</html>
Tagged .

Similar posts

More by Jim

👋 I'm Jim, a full-stack product engineer. Want to build an amazing product and a profitable business? Read more about me or Get in touch!

This page copyright James Fisher 2017. Content is not associated with my employer. Found an error? Edit this page.