UNPKG

actless

Version:

Static website generator/scaffolding tool based on wig

43 lines (38 loc) 1.28 kB
<?xml version="1.0" encoding="utf-8"?> <feed xmlns="http://www.w3.org/2005/Atom"> <title>{{rssSiteTitle}}</title> <link href="{{rssSiteLink}}"/> {%- if _pages[0] %} <updated>{{_pages[0]._updated | date("YYYY-MM-DDTHH:mm:ssZ") }}</updated> {% endif -%} {%- if rssAuthors %} {%- for author in rssAuthors %} <author> <name>{{ author.name }}</name> {% if author.email %}<email>{{ author.email }}</email>{% endif %} {% if author.url %}<url>{{ author.url }}</url>{% endif %} </author> {% endfor -%} {% endif -%} <id>{{rssSiteLink}}</id> {%- for page in _pages %} {%- if page._name != 'atom.xml' %} <entry> <title type="text">{{ page.title}}</title> <link href="{{ rssBaseUrl }}{{ page._path }}"/> <id>{{ rssBaseUrl }}{{ page._path }}</id> {%- if page._updated %} <updated>{{ page._updated | date("YYYY-MM-DDTHH:mm:ssZ") }}</updated> {%- else -%} {%- if page._created %} <updated>{{ page._created | date("YYYY-MM-DDTHH:mm:ssZ") }}</updated> {% endif -%} {%- endif -%} {%- if page._created %} <published>{{ page._created | date("YYYY-MM-DDTHH:mm:ssZ") }}</published> {% endif -%} <content type="html">{{ page._html }}</content> </entry> {% endif -%} {% endfor -%} </feed>