Adds english support

This commit is contained in:
Miguel de la Cruz 2024-01-08 16:25:12 +01:00
parent 2e4cb039c6
commit cfd5c44611
3 changed files with 31 additions and 11 deletions

6
content-en/_index.md Normal file
View file

@ -0,0 +1,6 @@
## Hi! :raising_hand_man:
Soon this text will be replaced with a proper introduction, but unitl then, happy to see you here :relaxed:
- <a rel="me" href="https://social.ctrlz.es/@mgdelacroix">Mastodon</a>
- [Github](https://github.com/mgdelacroix)

View file

@ -17,20 +17,34 @@ markup:
languages:
es:
title: ctrlz
languageName: es-ES
languageName: ESP 🇪🇸
LanguageCode: es
contentDir: content
params:
madeWith: 'Hecho con :heart_decoration: y Open Source'
menus:
main:
- name: Inicio
pageRef: '/'
weight: 10
- name: Blog
pageRef: '/blog'
weight: 20
en:
title: ctrlz
languageName: ENG 🇬🇧
LanguageCode: en
contentDir: content-en
params:
madeWith: 'Made with :heart_decoration: and Open Source'
menus:
main:
- name: Inicio
pageRef: '/'
weight: 10
- name: Blog
pageRef: '/blog'
weight: 20
menus:
main:
- name: Home
pageRef: '/'
weight: 10
- name: Blog
pageRef: '/blog'
weight: 20
params:
contact:

View file

@ -1,7 +1,7 @@
{{ range .Site.Menus.main.ByWeight }}
<a href="{{ .URL }}">{{ .Name }}</a>
{{ end }}
<a href='{{ absURL "index.xml" }}'>RSS</a>
<a href='{{ absLangURL "index.xml" }}'>RSS</a>
<!-- Convert this page's translations into a dict -->
{{ $translations := dict }}