aboutsummaryrefslogtreecommitdiff
path: root/_layouts/til.html
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-08-12 06:34:38 -0300
committerEuAndreh <eu@euandre.org>2020-08-12 06:56:04 -0300
commit191728a2cac217e96a7f1e4e9a4710606f6ad920 (patch)
treebbcf9c17bb3bd462f8d1c41169d1122b08161d18 /_layouts/til.html
parentassert-content.sh: Look at post refs too, not only pages (diff)
downloadeuandre.org-191728a2cac217e96a7f1e4e9a4710606f6ad920.tar.gz
euandre.org-191728a2cac217e96a7f1e4e9a4710606f6ad920.tar.xz
Add TILs section, with Atom support and i18n
- add i18n logic to support translated TIL entries and listing; - make the website title less tied to a blog: "EuAndreh::blog" -> <web>EuAndreh</web>; - remove old Atom feed link aliases; - remove feed.all.atom and it's link in the about page; - create Atom feed for TIL entries; - show blog and TIL Atom feed on their listing pages (index and tils-listing); - add root alias: / -> /en/ - remove explicit list of feeds from $IGNORED_PAGES and use a '*.atom' glob instead; - also lint, assert-content and assert-unique-ref of TILs; - fix wrong "post.date" in pastebin entry in site.json;
Diffstat (limited to '_layouts/til.html')
-rw-r--r--_layouts/til.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/_layouts/til.html b/_layouts/til.html
new file mode 100644
index 0000000..1a70d3b
--- /dev/null
+++ b/_layouts/til.html
@@ -0,0 +1,11 @@
+---
+layout: default
+---
+<article>
+ <section class="header">
+ {{ site.t.posted_on[page.lang] }} {{ page.date | date: site.t.date_format[page.lang] }}
+ </section>
+ <section>
+ {{ content }}
+ </section>
+</article>