|
@@ -1,15 +1,16 @@ |
|
|
{% from "macros.j2" import render_excerpt, render_post with context %} |
|
|
{% from "macros.j2" import render_excerpt, render_post with context %} |
|
|
|
|
|
{% from "macros.j2" import fullurl with context %} |
|
|
<?xml version="1.0" encoding="utf-8"?> |
|
|
<?xml version="1.0" encoding="utf-8"?> |
|
|
<feed xmlns="http://www.w3.org/2005/Atom"> |
|
|
<feed xmlns="http://www.w3.org/2005/Atom"> |
|
|
<title> |
|
|
<title> |
|
|
{% block title %}{{ resource.meta.title|default(feed_title) }}{% endblock %} |
|
|
{% block title %}{{ resource.meta.title|default(feed_title) }}{% endblock %} |
|
|
</title> |
|
|
</title> |
|
|
{% block self_url %} |
|
|
{% block self_url %} |
|
|
<link href="{{ resource.url }}" rel="self" /> |
|
|
|
|
|
|
|
|
<link type="application/atom+xml" href="{{ fullurl(resource.url) }}" rel="self" /> |
|
|
{% endblock %} |
|
|
{% endblock %} |
|
|
|
|
|
|
|
|
{% block site_url %} |
|
|
{% block site_url %} |
|
|
<link href="{{ content_url('') }}"/> |
|
|
|
|
|
|
|
|
<link rel="alternate" type="text/html" href="{{ fullur('/') }}"/> |
|
|
{% endblock %} |
|
|
{% endblock %} |
|
|
|
|
|
|
|
|
{% block feed_extra %} |
|
|
{% block feed_extra %} |
|
@@ -17,7 +18,7 @@ |
|
|
|
|
|
|
|
|
<updated>{{ time_now|xmldatetime }}</updated> |
|
|
<updated>{{ time_now|xmldatetime }}</updated> |
|
|
|
|
|
|
|
|
<id>{{ content_url(resource.url) }}/</id> |
|
|
|
|
|
|
|
|
<id>{{ fullurl(resource.url) }}</id> |
|
|
|
|
|
|
|
|
{% for res in resource.node.walk_resources_sorted_by_time() %} |
|
|
{% for res in resource.node.walk_resources_sorted_by_time() %} |
|
|
<entry> |
|
|
<entry> |
|
@@ -26,9 +27,9 @@ |
|
|
<link href="{{ content_url(res.url) }}"/> |
|
|
<link href="{{ content_url(res.url) }}"/> |
|
|
<updated>{{ res.meta.created|xmldatetime }}</updated> |
|
|
<updated>{{ res.meta.created|xmldatetime }}</updated> |
|
|
<published>{{ res.meta.created|xmldatetime }}</published> |
|
|
<published>{{ res.meta.created|xmldatetime }}</published> |
|
|
<id>{{ content_url(res.url) }}</id> |
|
|
|
|
|
|
|
|
<id>{{ fullurl(res.url) }}</id> |
|
|
{% for tag in res.meta.tags %} |
|
|
{% for tag in res.meta.tags %} |
|
|
<category scheme="{{ content_url('search/label') }}" |
|
|
|
|
|
|
|
|
<category scheme="{{ fullurl('search/label') }}" |
|
|
term="{{tag}}" |
|
|
term="{{tag}}" |
|
|
label="{{ tag|title }}" /> |
|
|
label="{{ tag|title }}" /> |
|
|
{% endfor %} |
|
|
{% endfor %} |
|
|