From ecd6ca28099d788c93bddd17cfd82114465476d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sof=C3=ADa=20Aritz?= Date: Sat, 22 Apr 2023 21:44:23 +0200 Subject: [PATCH] Add English weblog support --- src/_includes/post.njk | 4 ++++ src/_includes/simple_page.njk | 7 +++++++ src/en/weblog.md | 12 ++++++++++++ src/en/weblog/firstpost.md | 13 +++++++++++++ 4 files changed, 36 insertions(+) create mode 100644 src/en/weblog.md create mode 100644 src/en/weblog/firstpost.md diff --git a/src/_includes/post.njk b/src/_includes/post.njk index dd4361a..09ed143 100644 --- a/src/_includes/post.njk +++ b/src/_includes/post.njk @@ -15,6 +15,10 @@ load_comments_script: true {% endif %} {{ content | timeToRead }} +{% if english_path and english_title %} +
English version available: {{ english_title }}
+{% endif %} + {{ content | safe }} diff --git a/src/_includes/simple_page.njk b/src/_includes/simple_page.njk index b95306e..457a02f 100644 --- a/src/_includes/simple_page.njk +++ b/src/_includes/simple_page.njk @@ -28,6 +28,13 @@
  • contact
  • + +
    + thoughts + +
    {% else %}
    yo diff --git a/src/en/weblog.md b/src/en/weblog.md new file mode 100644 index 0000000..7455af9 --- /dev/null +++ b/src/en/weblog.md @@ -0,0 +1,12 @@ +--- +layout: simple_page.njk +tags: meta +title: weblog +english: true +--- + +# weblog +I'll use this space to talk about random ideas, experiments, and things I find interesting! + +### 2023 +- [First post](/en/weblog/firstpost) My first post! :) diff --git a/src/en/weblog/firstpost.md b/src/en/weblog/firstpost.md new file mode 100644 index 0000000..225b2f6 --- /dev/null +++ b/src/en/weblog/firstpost.md @@ -0,0 +1,13 @@ +--- +layout: post.njk +title: First post +tags: + - meta +date: 2023-04-22 +english: true +--- + +This is the first post in my English weblog! I'll post translations of my [Spanish weblog](/weblog) and some +English-specific things! + +Right now there are some things missing, but I'll improve this weblog over time :)