Mercurial > libervia-templates
annotate sat_templates/templates/bulma/blog/atom.xml @ 295:1de599c5a68f
bulma (base): loading screen:
when the `loading_screen` variable is set before extending `base/base.html`, a loading
modal is shown (and must be removed via JavaScript). This avoids the user to try to use an
interface which is not reactive or working normally because JS is not fully loaded yet.
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 27 Nov 2020 12:24:03 +0100 |
parents | 7448aac005a1 |
children |
rev | line source |
---|---|
230 | 1 <?xml version="1.0" encoding="utf-8"?> |
2 <feed xmlns='http://www.w3.org/2005/Atom'> | |
3 {% if title is defined %} | |
4 <title>{{title}}</title> | |
5 {% elif target_profile is defined %} | |
6 <title>{% trans name=target_profile%}{{name}}'s blog{% endtrans %}</title> | |
7 {% else %} | |
8 <title>{% trans app_name=C.APP_NAME%}{{app_name}} blog{% endtrans %}</title> | |
9 {% endif %} | |
10 <link href='{{request_uri}}' type='application/atom+xml' rel='self'/> | |
11 <link href='{{http_uri}}' type='text/html' rel='alternate'/> | |
12 <link href='{{xmpp_uri}}' type='application/atom+xml' rel='alternate'/> | |
13 <id>{{xmpp_uri}}</id> | |
14 <updated>{{updated|date_fmt('iso')}}</updated> | |
264
2c282c244a3e
bulma (blog/atom.xml): fixed use of blog items
Goffi <goffi@goffi.org>
parents:
230
diff
changeset
|
15 {% for item in blog_items['items'] %} |
230 | 16 <entry> |
17 {% if item.title_xhtml %} | |
266
7448aac005a1
bulma (blog/atom.xml): fixed double escaping
Goffi <goffi@goffi.org>
parents:
264
diff
changeset
|
18 <title type='xhtml'>{{item.title_xhtml|safe}}</title> |
230 | 19 {% else %} |
20 <title>{{item.title|default(item.content|truncate(80, True, '…'), True)}}</title> | |
21 {% endif %} | |
22 <link href='{{items_http_uri[item.id]}}' type='text/html' rel='alternate'/> | |
23 <link href='{{item.uri}}' type='application/atom+xml' rel='alternate'/> | |
24 <id>{{item.uri}}</id> | |
25 <updated>{{item.updated|date_fmt('iso')}}</updated> | |
26 <published>{{item.published|date_fmt('iso')}}</published> | |
27 <author> | |
28 <name>{{item.author}}</name> | |
29 <uri>xmpp:{{item.author_jid}}</uri> | |
30 </author> | |
31 {% for tag in item.tags %} | |
32 <category term="{{tag}}"/> | |
33 {% endfor %} | |
34 {% if item.content_xhtml %} | |
35 <content type='xhtml'> | |
36 <div xmlns='http://www.w3.org/1999/xhtml'> | |
266
7448aac005a1
bulma (blog/atom.xml): fixed double escaping
Goffi <goffi@goffi.org>
parents:
264
diff
changeset
|
37 {{item.content_xhtml|safe}} |
230 | 38 </div> |
39 </content> | |
40 {% else %} | |
41 <content type='text'> | |
42 {{item.content_txt}} | |
43 </content> | |
44 {% endif %} | |
45 </entry> | |
46 {% endfor %} | |
47 </feed> |