From 1657d7b10c728a1614dfd938dd513ab6cea0649b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asier=20Cardoso=20S=C3=A1nchez?= Date: Sat, 17 Jul 2021 14:13:01 +0200 Subject: [PATCH] feat(translations): add all posts, all categories, all tags --- templates/_includes/_defaults.html | 18 ++++++++++++++++++ templates/archives.html | 4 ++-- templates/categories.html | 4 ++-- templates/tags.html | 4 ++-- 4 files changed, 24 insertions(+), 6 deletions(-) diff --git a/templates/_includes/_defaults.html b/templates/_includes/_defaults.html index 95a2bf82..bd216b5b 100644 --- a/templates/_includes/_defaults.html +++ b/templates/_includes/_defaults.html @@ -236,3 +236,21 @@ {% else %} {% set SHARE_LINKS = SHARE_LINKS %} {% endif %} + +{% if not ALL_CATEGORIES %} +{% set ALL_CATEGORIES = 'All Categories' %} +{% else %} +{% set ALL_CATEGORIES = ALL_CATEGORIES %} +{% endif %} + +{% if not ALL_TAGS %} +{% set ALL_TAGS = 'All Tags' %} +{% else %} +{% set ALL_TAGS = ALL_TAGS %} +{% endif %} + +{% if not ALL_POSTS %} +{% set ALL_POSTS = 'All Posts' %} +{% else %} +{% set ALL_POSTS = ALL_POSTS %} +{% endif %} diff --git a/templates/archives.html b/templates/archives.html index b69865f2..08a87018 100644 --- a/templates/archives.html +++ b/templates/archives.html @@ -25,10 +25,10 @@ {% endblock meta_tags_in_head %} {% block content %} -{% from '_includes/_defaults.html' import ARCHIVES_URL with context %} +{% from '_includes/_defaults.html' import ARCHIVES_URL, ALL_POSTS with context %}
diff --git a/templates/categories.html b/templates/categories.html index 24b08037..74aa957c 100644 --- a/templates/categories.html +++ b/templates/categories.html @@ -30,10 +30,10 @@ {% endblock feed_links %} {% block content %} -{% from '_includes/_defaults.html' import CATEGORIES_URL with context %} +{% from '_includes/_defaults.html' import CATEGORIES_URL, ALL_CATEGORIES with context %} diff --git a/templates/tags.html b/templates/tags.html index df6f72f4..01fded48 100644 --- a/templates/tags.html +++ b/templates/tags.html @@ -30,10 +30,10 @@ {% endblock feed_links %} {% block content %} -{% from '_includes/_defaults.html' import TAGS_URL with context %} +{% from '_includes/_defaults.html' import TAGS_URL, ALL_TAGS with context %}