aboutsummaryrefslogtreecommitdiff
path: root/_layouts/post.html
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-02-05 16:23:08 -0300
committerEuAndreh <eu@euandre.org>2020-02-05 16:23:08 -0300
commit847789edcf135f38b27f8f6ac3a85386037e4e38 (patch)
tree1dc86f4eb6894642d503d93530717773b3815b8b /_layouts/post.html
parentRemove spelling/ (diff)
downloadeuandre.org-847789edcf135f38b27f8f6ac3a85386037e4e38.tar.gz
euandre.org-847789edcf135f38b27f8f6ac3a85386037e4e38.tar.xz
Add manual support for multiple languages
Diffstat (limited to '_layouts/post.html')
-rw-r--r--_layouts/post.html23
1 files changed, 17 insertions, 6 deletions
diff --git a/_layouts/post.html b/_layouts/post.html
index bdaa3f8..b1b1412 100644
--- a/_layouts/post.html
+++ b/_layouts/post.html
@@ -3,17 +3,28 @@ layout: default
---
<article>
<section class="header">
- Posted on {{ page.date | date: "%b %-d, %Y" }}
+ {{ site.t.posted_on[page.lang] }} {{ page.date | date: site.t.date_format[page.lang] }}
</section>
<section>
{{ content }}
</section>
<section>
- <p>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>.
+ <p>
+ {% 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 %}
</p>
</section>
</article>