This is almost pointless to mention but the standard templates give you a very specific copyright with respect to atom feeds (Copyright (c) x-y). The file source_includes\custom\footer.html includes a way of gathering the system time in the form:

1
2
3
Copyright © {{ site.time | date: "%Y" }}
I simply replaced the current hard-coded year with the ruby code above so that when the site is generated, it always gives the current year.

In case any of you are wondering how to insert codeblocks with liquid syntax, see this post.

Tags

This is more involved but luckily gist makes it stupid simple to include here. Everything is pretty much a rip off of the category_generator plugin and includes with just minor tweaks to use the tag object.

_config.yml:

plugins/tag_generator.rb (an almost complete copy of category_generator.rb)

source/_includes/archive_post_tags.html

source/_includes/custom/tag_feed.xml

source/_includes/post/tags.html

source/_layouts/tag_index.html

Feed excerpts

The following goes on line 23 in my atom.xml file, or right before the content tag. A better alternative would be to detect an excerpt and only display that or the content, not both.

1
2
3
{% if post.has_excerpt %}<summary type="html">{{ post.excerpt | xml_escape }}</summary>{% endif %}

Comments

Oct 28th 2013