mirror of
https://gitlab.com/OpenAlt/OpenAltRO/openalt_ro.git
synced 2026-11-23 15:19:15 +00:00
Updated design of the site as well as added new event
This commit is contained in:
parent
1e33326b03
commit
6b0249f5dc
13 changed files with 433 additions and 47 deletions
51
source/rss2.xml
Normal file
51
source/rss2.xml
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<rss version="2.0"
|
||||
xmlns:atom="http://www.w3.org/2005/Atom"
|
||||
xmlns:content="http://purl.org/rss/1.0/modules/content/">
|
||||
<channel>
|
||||
<title>{{ config.title }}</title>
|
||||
<link>{{ url }}</link>
|
||||
{% if icon %}
|
||||
<image>
|
||||
<url>{{ icon }}</url>
|
||||
<title>{{ config.title }}</title>
|
||||
<link>{{ url }}</link>
|
||||
</image>
|
||||
{% endif %}
|
||||
<atom:link href="{{ feed_url | uriencode }}" rel="self" type="application/rss+xml"/>
|
||||
{% if config.feed.hub %}<atom:link href="{{ config.feed.hub | uriencode }}" rel="hub"/>{% endif %}
|
||||
<description>{{ config.description }}</description>
|
||||
<pubDate>{% if posts.first().updated %}{{ posts.first().updated.toDate().toUTCString() }}{% else %}{{ posts.first().date.toDate().toUTCString() }}{% endif %}</pubDate>
|
||||
<generator>http://hexo.io/</generator>
|
||||
{% for post in posts.toArray() %}
|
||||
<item>
|
||||
<title>{{ post.title }}</title>
|
||||
<link>{{ post.permalink | uriencode }}</link>
|
||||
<guid>{{ post.permalink | uriencode }}</guid>
|
||||
<pubDate>{{ post.date.toDate().toUTCString() }}</pubDate>
|
||||
{% if post.description %}
|
||||
<description>{{ post.description }}</description>
|
||||
{% elif post.intro %}
|
||||
<description>{{ post.intro }}</description>
|
||||
{% elif post.excerpt %}
|
||||
<description>{{ post.excerpt }}</description>
|
||||
{% endif %}
|
||||
{% if post.photos %}
|
||||
<enclosure url="{{ url + post.photos[0] | uriencode }}" type="image/jpeg"/>
|
||||
{% endif %}
|
||||
{% if config.feed.content and post.content %}
|
||||
<content:encoded><![CDATA[{{ post.content | noControlChars | safe }}]]></content:encoded>
|
||||
{% endif %}
|
||||
{% for category in post.categories.toArray() %}
|
||||
<category domain="{{ url + category.path | uriencode }}">{{ category.name }}</category>
|
||||
{% endfor %}
|
||||
{% for tag in post.tags.toArray() %}
|
||||
<category domain="{{ url + tag.path | uriencode }}">{{ tag.name }}</category>
|
||||
{% endfor %}
|
||||
{% if post.comments %}
|
||||
<comments>{{ post.permalink | uriencode }}#disqus_thread</comments>
|
||||
{% endif %}
|
||||
</item>
|
||||
{% endfor %}
|
||||
</channel>
|
||||
</rss>
|
||||
Loading…
Add table
Add a link
Reference in a new issue