From 2d0788c3981328f1fbd9de4274d2925bf9586e03 Mon Sep 17 00:00:00 2001 From: Jieiku Date: Mon, 22 May 2023 22:39:16 -0700 Subject: Add multi-lingual Support --- templates/404.html | 6 +-- templates/base.html | 56 ++++++++++++++++++------ templates/categories/list.html | 2 +- templates/contact.fr.html | 49 +++++++++++++++++++++ templates/index.html | 6 ++- templates/macros/head.html | 17 +++++--- templates/macros/macros.html | 30 ++++++++++--- templates/macros/social.html | 97 +++++++++++++++++++++--------------------- templates/page.html | 2 +- templates/posts.html | 6 ++- templates/tags/list.html | 2 +- 11 files changed, 189 insertions(+), 84 deletions(-) create mode 100644 templates/contact.fr.html (limited to 'templates') diff --git a/templates/404.html b/templates/404.html index 02c7688..f26dafb 100644 --- a/templates/404.html +++ b/templates/404.html @@ -17,8 +17,8 @@ {%- block content %}
-

Page not found :(

-

The page you are looking for doesn't exist or has been moved.

-

Try using the search, or go home.

+

404 :(

+

The page you are looking for doesn't exist or has been moved. Try using the search, or go home.

+

La page que vous recherchez n'existe pas ou a été déplacée. Essayez d'utiliser la recherche, ou rentrez chez vous.

{%- endblock content %} diff --git a/templates/base.html b/templates/base.html index a1e4918..6a6927a 100644 --- a/templates/base.html +++ b/templates/base.html @@ -3,7 +3,7 @@ {%- import "macros/page.html" as page_macros %} {%- import "macros/macros.html" as macros %} - + {{- macros_head::theme(config=config) }} {{- macros_head::stylesheets(config=config) }} @@ -37,16 +37,16 @@