mirror of
https://github.com/2009scape/2009scape.github.io.git
synced 2024-11-20 01:42:41 +01:00
585b04d153
* Make all news posts use proper templates and use the Jekyll post system A TON of layout code was just copied over with every update post (thus duplicated). That's just asking for problems and is what templates exists for. While at it I formatted all the HTML I saw, formatting was all over the place. * Add a RSS feed for game updates
33 lines
1.3 KiB
XML
33 lines
1.3 KiB
XML
---
|
|
layout: null
|
|
---
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
|
<channel>
|
|
<title>{{ site.title | xml_escape }} - Game updates</title>
|
|
<description>{{ site.description | xml_escape }}</description>
|
|
<link>{{ site.url }}{{ site.baseurl }}/</link>
|
|
<atom:link href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" rel="self" type="application/rss+xml"/>
|
|
<pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
|
|
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
|
|
<generator>Jekyll v{{ jekyll.version }}</generator>
|
|
{% assign posts = site.posts | orderby: 'date' | limit:10 %}
|
|
{% for post in posts %}
|
|
<item>
|
|
<title>{{ post.title | xml_escape }}</title>
|
|
<description>{{ post.excerpt }}</description>
|
|
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
|
|
<link>{{ post.url | prepend: site.baseurl | prepend: site.url }}</link>
|
|
<guid isPermaLink="true">{{ post.url | prepend: site.baseurl | prepend: site.url }}</guid>
|
|
{% for tag in post.tags %}
|
|
<category>{{ tag | xml_escape }}</category>
|
|
{% endfor %}
|
|
{% for cat in post.categories %}
|
|
<category>{{ cat | xml_escape }}</category>
|
|
{% endfor %}
|
|
</item>
|
|
{% endfor %}
|
|
</channel>
|
|
</rss>
|