aboutsummaryrefslogtreecommitdiff
path: root/_includes
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--_includes/feed.atom34
-rw-r--r--_includes/public-inbox.html15
2 files changed, 49 insertions, 0 deletions
diff --git a/_includes/feed.atom b/_includes/feed.atom
new file mode 100644
index 0000000..bf0f4d4
--- /dev/null
+++ b/_includes/feed.atom
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="{{ include.lang }}">
+ <link href="{{ page.url | absolute_url }}" rel="self" type="application/atom+xml" />
+ <link href="{{ '/' | absolute_url }}" rel="alternate" type="text/html" hreflang="{{ include.lang }}" />
+ <updated>{{ site.time | date_to_xmlschema }}</updated>
+ <id>{{ page.url | absolute_url | xml_escape }}</id>
+
+ <title type="html">{{ site.title | smartify | xml_escape }}</title>
+ <subtitle>{{ site.t.feed_title[include.lang] | smartify | xml_escape }}</subtitle>
+
+ <author>
+ <name>{{ site.author.name | xml_escape }}</name>
+ <email>{{ site.author.email | xml_escape }}</email>
+ </author>
+
+ {% for post in include.posts %}
+ <entry xml:lang="{{ post.lang }}">
+ <title type="html">{{ post.title | smartify | strip_html | normalize_whitespace | xml_escape }}</title>
+ <link href="{{ post.url | absolute_url }}" rel="alternate" type="text/html" title="{{ post.title | xml_escape }}" />
+ <published>{{ post.date | date_to_xmlschema }}</published>
+ <updated>{{ post.updated_at | default: post.date | date_to_xmlschema }}</updated>
+ <id>{{ post.url | absolute_url | xml_escape }}</id>
+
+ <content type="html" xml:base="{{ post.url | absolute_url | xml_escape }}">{{ post.content | strip | xml_escape }}</content>
+
+ <author>
+ <name>{{ site.author.name | xml_escape }}</name>
+ <email>{{ site.author.email | xml_escape }}</email>
+ </author>
+
+ <summary type="html">{{ post.excerpt | strip_html | normalize_whitespace | xml_escape }}</summary>
+ </entry>
+ {% endfor %}
+</feed>
diff --git a/_includes/public-inbox.html b/_includes/public-inbox.html
new file mode 100644
index 0000000..478eac6
--- /dev/null
+++ b/_includes/public-inbox.html
@@ -0,0 +1,15 @@
+{% if page.lang == 'en' %}
+ Have a comment on this post? Start a discussion in my
+ <a href="https://lists.sr.ht/~euandreh/public-inbox">public inbox</a>
+ by sending an email to
+ <a href="mailto:~euandreh/public-inbox@lists.sr.ht?Subject=Re%3A%20{{ page.title | escape }}">~euandreh/public-inbox@lists.sr.ht</a>
+ [<a href="https://man.sr.ht/lists.sr.ht/etiquette.md">mailing list etiquette</a>],
+ or see <a href="https://lists.sr.ht/~euandreh/public-inbox?search={{ page.title | escape }}">existing discussions</a>.
+{% elsif page.lang == 'pt' %}
+ Tem um comentário sobre essa postagem? Comece uma discussão na minha
+ <a href="https://lists.sr.ht/~euandreh/public-inbox">caixa de entrada pública</a>
+ mandando um email para
+ <a href="mailto:~euandreh/public-inbox@lists.sr.ht?Subject=Re%3A%20{{ page.title | escape }}">~euandreh/public-inbox@lists.sr.ht</a>
+ [<a href="https://man.sr.ht/lists.sr.ht/etiquette.md">etiqueta da lista de email</a> (em inglês)],
+ ou procure por <a href="https://lists.sr.ht/~euandreh/public-inbox?search={{ page.title | escape }}">discussões existentes</a>.
+{% endif %}