From a7c4db7e9215694ef6c50debcc0b4e7402265687 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 5 Oct 2020 21:27:57 -0300 Subject: Refactor i18n structure, remove layouts, add slides Yep, this commit is too big big I didn't want to take the trouble of splitting it now. - _config.yml translation keys are now simetrical on the entitiy: articles, pastebins, tils, slides, etc.; - _posts were moved to _articles: the _posts collection had special treatment in Jekyll which I wanted to avoid; - the filtering of entries for the Atom feed is now done inside the _includes/feed.atom file instead of every feed file; - all entities are now dealt with using the pluralized name: articles, pastebins, tils, slides. No more inconsistencies on the key names, they now should only make sense as the translation value on the dictionary; - add base reveal.js infrastruture, with Jekyll generating the listing page and nothing else. --- _layouts/default.html | 11 ++++++----- _layouts/index.html | 19 ------------------- _layouts/pastebins-listing.html | 12 ------------ _layouts/til.html | 1 - _layouts/tils-listing.html | 18 ------------------ 5 files changed, 6 insertions(+), 55 deletions(-) delete mode 100644 _layouts/index.html delete mode 100644 _layouts/pastebins-listing.html delete mode 120000 _layouts/til.html delete mode 100644 _layouts/tils-listing.html (limited to '_layouts') diff --git a/_layouts/default.html b/_layouts/default.html index 5eac517..ea12a36 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -4,8 +4,8 @@ - - + + {{ page.title }} - EuAndreh @@ -35,7 +35,7 @@
diff --git a/_layouts/index.html b/_layouts/index.html deleted file mode 100644 index 3b0f281..0000000 --- a/_layouts/index.html +++ /dev/null @@ -1,19 +0,0 @@ ---- -layout: default ---- -

- {{ site.t.recent_posts[page.lang] }} - - {{ site.t.alt.atom[page.lang] }} - -

-{% assign lposts=site.posts | where:"lang", page.lang | sort: 'date' | reverse %} -{% if lposts.size > 0 %} - -{% endif %} diff --git a/_layouts/pastebins-listing.html b/_layouts/pastebins-listing.html deleted file mode 100644 index 0c4a993..0000000 --- a/_layouts/pastebins-listing.html +++ /dev/null @@ -1,12 +0,0 @@ ---- -layout: default ---- -

Pastebins listing

- diff --git a/_layouts/til.html b/_layouts/til.html deleted file mode 120000 index d6d72cf..0000000 --- a/_layouts/til.html +++ /dev/null @@ -1 +0,0 @@ -post.html \ No newline at end of file diff --git a/_layouts/tils-listing.html b/_layouts/tils-listing.html deleted file mode 100644 index 0a59a19..0000000 --- a/_layouts/tils-listing.html +++ /dev/null @@ -1,18 +0,0 @@ ---- -layout: default ---- -

- {{ site.t.til_listing[page.lang] }} - - {{ site.t.alt.atom[page.lang] }} - -

-{{ content }} - -- cgit v1.2.3