-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfeed.xml
37 lines (37 loc) · 1.45 KB
/
feed.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
layout: null
permalink: /feed.xml
---
{% assign feed_url = page.url | absolute_url %}<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>{{ site.title }}</title>
<subtitle>By {{ site.author.name }}</subtitle>
<link rel="alternate" type="text/html" href="{{ site.url }}" />
<link rel="self" type="application/atom+xml" href="{{ feed_url }}" />
<id>{{ feed_url }}</id>
<updated>{{ site.posts[0].date | date_to_xmlschema }}</updated>
<rights>Copyright © {{ 'now' | date: "%Y" }}, Lviv JavaClub</rights>
{% assign posts = site.posts | where_exp: "post", "post.draft != true" %} {% for post in posts limit: 50 %}
<entry>
<title>{{ post.title }}</title>
<link rel="alternate" type="text/html" href="{{ post | absolute_url }}" />
<link rel="related" type="text/html" href="{{ post | absolute_url }}" />
<id>{{ post | absolute_url }}</id>
<imageUrl>{{ site.url }}/images/feed.jpg</imageUrl>
<published>{{ post.date | date_to_xmlschema }}</published>
<updated>{{ post.update_date | default: post.date | date_to_xmlschema }}</updated>
<author>
<name>Lviv JavaClub</name>
<uri>{{ post.author.uri | default: site.url }}</uri>
</author>
<content type="html" xml:base="{{ site.url }}" xml:lang="en">
<![CDATA[
<div>
{{ post.content }}
<img src="https://www.javaclub.lviv.ua/images/feed.jpg" />
{% for tag in post.tags %} #{{ tag }} {% endfor %}
</div>
]]>
</content>
</entry>{% endfor %}
</feed>