Skip to content

Commit

Permalink
feat: adds translations
Browse files Browse the repository at this point in the history
  • Loading branch information
migtarx committed Oct 30, 2023
1 parent 230bb68 commit 045e8c2
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 16 deletions.
8 changes: 8 additions & 0 deletions content/_index.es.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
+++
framed = true
+++
# Hola! Soy migtarx!

¡Bienvenido a mi blog! Aquí compartiré mis experiencias como desarrollador de software profesional y algunas como administrador de sistemas en mi tiempo libre.

A lo largo de este espacio, compartiré mis desafíos y descubrimientos en el mundo tecnológico, combinando mi pasión por el desarrollo de software con un interés en la administración de sistemas y algunas otras cosas en el mundo de la tecnología en general. Espero que encuentres valor en las experiencias que comparto aquí.
3 changes: 3 additions & 0 deletions content/_index.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
+++
framed = true
+++
# Hey! I'm migtarx!


Expand Down
9 changes: 9 additions & 0 deletions content/posts/finally-a-blog/index.es.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
+++
title = 'Finalmente un Blog'
date = 2023-10-29T22:56:33+01:00
author = "migtarx"
slug = "finally-a-blog"
translationKey = "i18n-finally-a-blog"
description = "¡Finalmente una forma de compartir mis experiencias y también documentar todos mis procesos! ¡Esto parece prometedor!"
draft = true
+++
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
title = 'Finally a Blog'
date = 2023-10-29T22:56:33+01:00
author = "migtarx"
slug = "finally-a-blog"
translationKey = "i18n-finally-a-blog"
description = "Finally a way to share my experiences and also to document all my processes! This looks promising!"
draft = true
+++
42 changes: 30 additions & 12 deletions hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,34 @@ publishDir = "src/public"
# Show full page content in RSS feed items
#(default is Description or Summary metadata in the front matter)
rssFullText = true

defaultContentLanguage = "en"
[languages]
[languages.es]
title = "El blog de migtarx"
subtitle = "Las aventuras del friko tecnologico"
keywords = ""
copyright = ""
menuMore = "Mostrar mas"
writtenBy = "Escritor por"
readMore = "Leer mas"
readOtherPosts = "Leer otros articulos"
newerPosts = "Articulos nuevos"
olderPosts = "Articulos anteriores"
minuteReadingTime = "tiempo de lectura"
dateFormatSingle = "02/01/2006"
dateFormatList = "02/01/2006"
[languages.es.params.logo]
logoText = "migtarx"
logoHomeLink = "/"
[languages.es.menu]
[[languages.es.menu.main]]
identifier = "about"
name = "About"
url = "/about"
[[languages.es.menu.main]]
identifier = "enlang"
name = "EN"
url = "/"
[languages.en]
title = "migtarx blog"
subtitle = "the adventures of a tech guy"
Expand All @@ -38,23 +64,15 @@ publishDir = "src/public"
minuteReadingTime = "min read"
dateFormatSingle = "2006-01-02"
dateFormatList = "2006-01-02"
# leave empty to disable, enter display text to enable
# lastModDisplay = ""

[languages.en.params.logo]
logoText = "migtarx"
logoHomeLink = "/"
# or
#
# path = "/img/your-example-logo.svg"
# alt = "Your example logo alt text"

[languages.en.menu]
[[languages.en.menu.main]]
identifier = "about"
name = "About"
url = "/about"
[[languages.en.menu.main]]
identifier = "showcase"
name = "Showcase"
url = "/showcase"
identifier = "eslang"
name = "ES"
url = "/es"
8 changes: 4 additions & 4 deletions themes/hello-friend/layouts/_default/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
{{ $paginator := .Paginate (where $PageContext.RegularPages "Type" $contentTypeName) }}

{{ if .Content }}
<div class="index-content framed">
{{ .Content }}
</div>
{{ end }}
<div class="index-content {{ if .Params.framed -}}framed{{- end -}}">
{{ .Content }}
</div>
{{ end }}

<div class="posts">
{{ range $paginator.Pages }}
Expand Down

0 comments on commit 045e8c2

Please sign in to comment.