Add English weblog support

This commit is contained in:
Sofía Aritz 2023-04-22 21:44:23 +02:00
parent 6ec64b6d15
commit ecd6ca2809
4 changed files with 36 additions and 0 deletions

View file

@ -15,6 +15,10 @@ load_comments_script: true
{% endif %}
{{ content | timeToRead }}
{% if english_path and english_title %}
<blockquote>English version available: <a href="/en/weblog/{{ english_path }}">{{ english_title }}</a></blockquote>
{% endif %}
{{ content | safe }}

View file

@ -28,6 +28,13 @@
<li><a href="/en/contact">contact</a></li>
</ul>
</div>
<div>
<i>thoughts</i>
<ul>
<li><a href="/en/weblog">weblog</a></li>
</ul>
</div>
{% else %}
<div>
<i>yo</i>

12
src/en/weblog.md Normal file
View file

@ -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! :)

View file

@ -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 :)