From 71c4e0fe58fdb383b0cfe00a6a1bf93aad8b85ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asier=20Cardoso=20S=C3=A1nchez?= Date: Mon, 28 Jun 2021 21:22:25 +0200 Subject: [PATCH] feat(translations): add menuitems translations --- templates/_includes/_defaults.html | 18 ++++++++++++++++++ templates/base.html | 11 ++++++----- 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a/templates/_includes/_defaults.html b/templates/_includes/_defaults.html index 95a2bf82..d25f1bf4 100644 --- a/templates/_includes/_defaults.html +++ b/templates/_includes/_defaults.html @@ -236,3 +236,21 @@ {% else %} {% set SHARE_LINKS = SHARE_LINKS %} {% endif %} + + +{% if not HOME_MENUITEM %} +{% set HOME_MENUITEM = 'Home' %} +{% else %} +{% set HOME_MENUITEM = HOME_MENUITEM %} +{% endif %} + + +{% if not MENUITEMS %} +{% set MENUITEMS = ( + ('categories', 'Categories', CATEGORIES_URL), + ('tags', 'Tags', TAGS_URL), + ('archives', 'Archives', ARCHIVES_URL), +) %} +{% else %} +{% set MENUITEMS = MENUITEMS %} +{% endif %} \ No newline at end of file diff --git a/templates/base.html b/templates/base.html index d14a7f95..5a6506c7 100644 --- a/templates/base.html +++ b/templates/base.html @@ -64,6 +64,7 @@ {{ SITENAME }}