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
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,15 @@ Jekyll's `smartify` filter uses [kramdown](https://kramdown.gettalong.org/option

Want to style what your feed looks like in the browser? When a XSLT Styleheet file named `feed.xslt.xml` exists at the root of your repository, a link to this stylesheet is added to the generated feed.

### Custom source template

You can specify your own source `feed.xml` if you like to modify the content of the generated feed. Simply define a template path to your xml source file:

```yaml
feed:
template: _layouts/feed.xml
```

## Why Atom, and not RSS?

Great question. In short, Atom is a better format. Think of it like RSS 3.0. For more information, see [this discussion on why we chose Atom over RSS 2.0](https://github.com/jekyll/jekyll-rss-feed/issues/2).
Expand Down
1 change: 1 addition & 0 deletions lib/jekyll-feed/generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ def generate_tag_feed(tags_pool, tags_path)

# Path to feed.xml template file
def feed_source_path
@feed_source_path = config['template'] if config['template']
@feed_source_path ||= File.expand_path "feed.xml", __dir__
end

Expand Down