Adds english support
This commit is contained in:
parent
2e4cb039c6
commit
cfd5c44611
3 changed files with 31 additions and 11 deletions
6
content-en/_index.md
Normal file
6
content-en/_index.md
Normal 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)
|
22
hugo.yaml
22
hugo.yaml
|
@ -17,13 +17,12 @@ markup:
|
||||||
languages:
|
languages:
|
||||||
es:
|
es:
|
||||||
title: ctrlz
|
title: ctrlz
|
||||||
languageName: es-ES
|
languageName: ESP 🇪🇸
|
||||||
LanguageCode: es
|
LanguageCode: es
|
||||||
contentDir: content
|
contentDir: content
|
||||||
params:
|
params:
|
||||||
madeWith: 'Made with :heart_decoration: and Open Source'
|
madeWith: 'Hecho con :heart_decoration: y Open Source'
|
||||||
|
menus:
|
||||||
menus:
|
|
||||||
main:
|
main:
|
||||||
- name: Inicio
|
- name: Inicio
|
||||||
pageRef: '/'
|
pageRef: '/'
|
||||||
|
@ -31,6 +30,21 @@ menus:
|
||||||
- name: Blog
|
- name: Blog
|
||||||
pageRef: '/blog'
|
pageRef: '/blog'
|
||||||
weight: 20
|
weight: 20
|
||||||
|
en:
|
||||||
|
title: ctrlz
|
||||||
|
languageName: ENG 🇬🇧
|
||||||
|
LanguageCode: en
|
||||||
|
contentDir: content-en
|
||||||
|
params:
|
||||||
|
madeWith: 'Made with :heart_decoration: and Open Source'
|
||||||
|
menus:
|
||||||
|
main:
|
||||||
|
- name: Home
|
||||||
|
pageRef: '/'
|
||||||
|
weight: 10
|
||||||
|
- name: Blog
|
||||||
|
pageRef: '/blog'
|
||||||
|
weight: 20
|
||||||
|
|
||||||
params:
|
params:
|
||||||
contact:
|
contact:
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{{ range .Site.Menus.main.ByWeight }}
|
{{ range .Site.Menus.main.ByWeight }}
|
||||||
<a href="{{ .URL }}">{{ .Name }}</a>
|
<a href="{{ .URL }}">{{ .Name }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<a href='{{ absURL "index.xml" }}'>RSS</a>
|
<a href='{{ absLangURL "index.xml" }}'>RSS</a>
|
||||||
|
|
||||||
<!-- Convert this page's translations into a dict -->
|
<!-- Convert this page's translations into a dict -->
|
||||||
{{ $translations := dict }}
|
{{ $translations := dict }}
|
||||||
|
|
Loading…
Reference in a new issue