All Projects → snaptortoise → Jekyll Rss Feeds

snaptortoise / Jekyll Rss Feeds

Licence: mit
Templates for rendering RSS feeds for your Jekyll blog

Projects that are alternatives of or similar to Jekyll Rss Feeds

jekyll-rss-feeds
Templates for rendering RSS feeds for your Jekyll blog
Stars: ✭ 639 (+1.91%)
Mutual labels:  liquid, feed, jekyll-blog
jekyll-ideal-image-slider-include
Add image sliders to Jekyll with Ideal Image Slider. HTML include version. Github Pages compatible. (This repository is archived. Issues are disabled. Pull requests will be ignored.)
Stars: ✭ 27 (-95.69%)
Mutual labels:  jekyll, jekyll-blog
event-jekyll-theme
Jekyll Theme package for your event
Stars: ✭ 119 (-81.02%)
Mutual labels:  jekyll, jekyll-blog
Jekyll Klise
🏖 Klisé is a minimalist Jekyll theme for running a personal site or blog, light & dark mode support. (https://klise.now.sh)
Stars: ✭ 312 (-50.24%)
Mutual labels:  jekyll, jekyll-blog
jekyll-clean-dark
Dark clean theme for jekyll
Stars: ✭ 198 (-68.42%)
Mutual labels:  jekyll, jekyll-blog
jekyll-ideal-image-slider
Add image sliders to Jekyll with Ideal Image Slider. Ruby plugin version. (This repository is archived. Issues are disabled. Pull requests will be ignored.)
Stars: ✭ 17 (-97.29%)
Mutual labels:  jekyll, jekyll-blog
Flexible Jekyll
Flexible-Jekyll is a simple and clean theme for Jekyll
Stars: ✭ 531 (-15.31%)
Mutual labels:  jekyll, jekyll-blog
Millennial
A minimalist Jekyll theme for running an online publication
Stars: ✭ 223 (-64.43%)
Mutual labels:  jekyll, jekyll-blog
Liberxue.github.io
Liberxue blog for lightweight Jekyll themes 轻量级自适应 简洁 卡片式博客主题 3秒搞定GitHub blog
Stars: ✭ 330 (-47.37%)
Mutual labels:  jekyll, jekyll-blog
Mundana Theme Jekyll
Mundana is a free Jekyll theme, Medium styled.
Stars: ✭ 402 (-35.89%)
Mutual labels:  jekyll, jekyll-blog
Reverie
🎨 A ridiculously elegant Jekyll theme.
Stars: ✭ 442 (-29.51%)
Mutual labels:  jekyll, jekyll-blog
zhangkn.github.io
新博客地址:https://kunnan.blog.csdn.net
Stars: ✭ 20 (-96.81%)
Mutual labels:  liquid, feed
Type On Strap
🎨 Simplistic, responsive jekyll based open source theme
Stars: ✭ 471 (-24.88%)
Mutual labels:  jekyll, jekyll-blog
mr-brown
Mr.Brown is a responsive Jekyll theme
Stars: ✭ 21 (-96.65%)
Mutual labels:  jekyll, jekyll-blog
Polyglot
🔤 Multilingual and i18n support tool for Jekyll Blogs
Stars: ✭ 242 (-61.4%)
Mutual labels:  jekyll, jekyll-blog
Jekyll Toc
A GitHub Pages compatible Table of Contents generator without a plugin or JavaScript
Stars: ✭ 306 (-51.2%)
Mutual labels:  jekyll, liquid
White Paper
Simple, elegant and clean jekyll theme.
Stars: ✭ 195 (-68.9%)
Mutual labels:  jekyll, jekyll-blog
Fastpages
An easy to use blogging platform, with enhanced support for Jupyter Notebooks.
Stars: ✭ 2,888 (+360.61%)
Mutual labels:  jekyll, jekyll-blog
Sleek
📈 Sleek is a modern Jekyll theme focused on speed performance & SEO best practices
Stars: ✭ 321 (-48.8%)
Mutual labels:  jekyll, jekyll-blog
Lagrange
A minimalist Jekyll theme for running a personal blog
Stars: ✭ 454 (-27.59%)
Mutual labels:  jekyll, jekyll-blog

Jekyll RSS Feed Templates

NOTE: If you're a fan of this project you should checkout the sister project: jekyll-json-feeds.

A few Liquid templates to use for rendering RSS feeds for your Jekyll blog. Featuring four kinds of feeds:

  • feed.xml — Renders the 10 most recent posts.
  • feed.category.xml — Only renders posts for a specific category. This example renders posts for a "miscellaneous" category.
  • feed.links.xml — Only contains posts that link to external websites noted by a link variable in the YAML Front Matter. Not a common Jekyll convention, but a good way to generating a linked list.
  • feed.articles.xml — Only showing articles that don't link to external sites; The opposite of feed.links.xml

How to use

  • Update _config.yml as noted below, or manually replace the variables.
  • Copy one of the xml (ie, feed.xml) files to the root directory of your Jekyll blog.
  • Run jekyll.

In your generated _site folder you should find a properly formatted feed at feed.xml.

Customizing _config.yml

These templates rely on a customized version of _config.yml. The following lines have been added:

name: Your Blog's Name
description: A description for your blog
url: http://your-blog-url.example.com
feed_items: 10
feed_update_period: daily
feed_update_frequency: 1

This makes it easy to reference the title, description and URL for your site in the feed templates using {{ site.name }}, {{ site.description }} and {{ site.url }}. Even if you're not using these feed templates, you might find these variables useful when you're designing your layouts.

The feed_* items shown above are the default. You can safely omit them.

Miscellany

  • Note on YAML Front Matter block: The xml files contain an empty YAML Front Matter block. This is necessary because Jekyll will not process a page with Liquid unless there is a YAML block at the top of the file.

  • Note on layouts: Previously, this block contained the line layout: none but that was found to cause a separate issue for some: https://github.com/snaptortoise/jekyll-rss-feeds/commit/209b83b504fde14722491ea5d9753189566c8598. However, if you've specified a default layout in your _config.yml file then you will most likely want to specify layout: none for your RSS feeds. Otherwise they will render in the default layout which is likely to be an HTML page. See this issue for reference: https://github.com/snaptortoise/jekyll-rss-feeds/issues/32

  • RSS Autodiscovery: If your template is not already setup to do so, make sure the RSS feeds are discoverable by browsers, bots, etc. by providing proper link tags to your Jekyll layout files (adapt href and title appropriately):

      <link href="/blog/feed.xml" type="application/rss+xml" rel="alternate" title="Latest 10 blog posts (atom)" />
    

    Refer to rssboard.org/rss-autodiscovery for details.

  • Validation: You can use the W3C Validator to make sure your feeds are formatted correctly: http://validator.w3.org/feed/

  • If you're a Pinboard user and found this repo useful, take a look at jekyll-pinboard. It allows you to load your Pinboard bookmarks into your Jekyll site with just a couple lines.

  • If you're looking for JSON feed templates to add to your Jekyll blog please checkout the sister project: jekyll-json-feeds.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].