From 6a3f6e578565e4c307a0c76a185b8b3a2117726b Mon Sep 17 00:00:00 2001 From: Miguel Puerta Date: Sun, 3 Dec 2023 02:18:32 +0100 Subject: [PATCH] feat: adds new footer and new pages (about, built-with and contact) --- content/about/index.es.md | 5 +++++ content/about/index.md | 5 +++++ content/built-with/index.es.md | 9 +++++++++ content/built-with/index.md | 9 +++++++++ content/contact/index.es.md | 8 ++++++++ content/contact/index.md | 8 ++++++++ hugo.toml | 14 +++++++++++++- themes/hello-friend/layouts/partials/footer.html | 8 ++++++-- 8 files changed, 63 insertions(+), 3 deletions(-) create mode 100644 content/about/index.es.md create mode 100644 content/about/index.md create mode 100644 content/built-with/index.es.md create mode 100644 content/built-with/index.md create mode 100644 content/contact/index.es.md create mode 100644 content/contact/index.md diff --git a/content/about/index.es.md b/content/about/index.es.md new file mode 100644 index 0000000..0b79240 --- /dev/null +++ b/content/about/index.es.md @@ -0,0 +1,5 @@ ++++ +title = 'Acerca de' +slug = "about" +translationKey = "i18n-about-es" ++++ diff --git a/content/about/index.md b/content/about/index.md new file mode 100644 index 0000000..c918dda --- /dev/null +++ b/content/about/index.md @@ -0,0 +1,5 @@ ++++ +title = 'About' +slug = "about" +translationKey = "i18n-about" ++++ \ No newline at end of file diff --git a/content/built-with/index.es.md b/content/built-with/index.es.md new file mode 100644 index 0000000..b45a4dd --- /dev/null +++ b/content/built-with/index.es.md @@ -0,0 +1,9 @@ ++++ +title = 'Construido con' +slug = "built-with" +translationKey = "i18n-built-with-es" ++++ +Este blog ha sido construido con: +- [Hugo](https://gohugo.io/) generador de páginas estáticas +- [Hello Friend Theme](https://github.com/panr/hugo-theme-hello-friend) - Tema para Hugo creado por [@panr](https://twitter.com/panr) +- [ExpressJS](https://expressjs.com/) - Servidor web para servir los estáticos \ No newline at end of file diff --git a/content/built-with/index.md b/content/built-with/index.md new file mode 100644 index 0000000..79d4445 --- /dev/null +++ b/content/built-with/index.md @@ -0,0 +1,9 @@ ++++ +title = 'Built with' +slug = "built-with" +translationKey = "i18n-built-with-es" ++++ +This blog has been built with: +- [Hugo](https://gohugo.io/) static site generator +- [Hello Friend Theme](https://github.com/panr/hugo-theme-hello-friend) - Theme for Hugo created by [@panr](https://twitter.com/panr) +- [ExpressJS](https://expressjs.com/) - Web server for serving static files diff --git a/content/contact/index.es.md b/content/contact/index.es.md new file mode 100644 index 0000000..225f7d0 --- /dev/null +++ b/content/contact/index.es.md @@ -0,0 +1,8 @@ ++++ +title = 'Contacto' +slug = "contact" +translationKey = "i18n-contact-es" ++++ +Puedes ponerte en contacto conmigo de estas maneras: +- Correo electronico: [contact@migtarx.com](mailto:contact@migtarx.com?body=Hey!%20Found%20your%20contact%20information%20in%20your%20blog!) +- X (Twitter): [@migtarx](https://twitter.com/migtarx) diff --git a/content/contact/index.md b/content/contact/index.md new file mode 100644 index 0000000..04d16ff --- /dev/null +++ b/content/contact/index.md @@ -0,0 +1,8 @@ ++++ +title = 'Contact' +slug = "contact" +translationKey = "i18n-contact" ++++ +You can contact me in the following ways: +- Email: [contact@migtarx.com](mailto:contact@migtarx.com?body=Hey!%20Found%20your%20contact%20information%20in%20your%20blog!) +- X (Twitter): [@migtarx](https://twitter.com/migtarx) \ No newline at end of file diff --git a/hugo.toml b/hugo.toml index 08f1c5e..4e8bafe 100644 --- a/hugo.toml +++ b/hugo.toml @@ -12,7 +12,13 @@ publishDir = "src/public" defaultContentLanguage = "en" [languages] [languages.es] + contact = "Contacto" + contactUrl = "/es/contact" + about = "Acerca de" + aboutUrl = "/es/about" + builtWith = "Construido con" languageName = "es" + builtWithUrl = "/es/built-with" title = "El blog de migtarx" subtitle = "Las aventuras del chico tech" keywords = "" @@ -31,7 +37,13 @@ defaultContentLanguage = "en" logoHomeLink = "/es" [languages.es.menu] [languages.en] - languageName = "en" + contact = "Contact" + contactUrl = "/contact" + about = "About" + aboutUrl = "/about" + builtWith = "Built with" + builtWithUrl = "/built-with" + languageName = "en" title = "migtarx blog" subtitle = "the adventures of a tech guy" keywords = "" diff --git a/themes/hello-friend/layouts/partials/footer.html b/themes/hello-friend/layouts/partials/footer.html index b972a48..09241ea 100644 --- a/themes/hello-friend/layouts/partials/footer.html +++ b/themes/hello-friend/layouts/partials/footer.html @@ -5,8 +5,12 @@ {{ else }} {{ partial "logo.html" . }} {{ end }}