Skip to content

Commit

Permalink
feat: adds new footer and new pages (about, built-with and contact)
Browse files Browse the repository at this point in the history
  • Loading branch information
migtarx committed Dec 3, 2023
1 parent 64a2d17 commit 6a3f6e5
Show file tree
Hide file tree
Showing 8 changed files with 63 additions and 3 deletions.
5 changes: 5 additions & 0 deletions content/about/index.es.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
+++
title = 'Acerca de'
slug = "about"
translationKey = "i18n-about-es"
+++
5 changes: 5 additions & 0 deletions content/about/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
+++
title = 'About'
slug = "about"
translationKey = "i18n-about"
+++
9 changes: 9 additions & 0 deletions content/built-with/index.es.md
Original file line number Diff line number Diff line change
@@ -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
9 changes: 9 additions & 0 deletions content/built-with/index.md
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions content/contact/index.es.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
+++
title = 'Contacto'
slug = "contact"
translationKey = "i18n-contact-es"
+++
Puedes ponerte en contacto conmigo de estas maneras:
- Correo electronico: [[email protected]](mailto:[email protected]?body=Hey!%20Found%20your%20contact%20information%20in%20your%20blog!)
- X (Twitter): [@migtarx](https://twitter.com/migtarx)
8 changes: 8 additions & 0 deletions content/contact/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
+++
title = 'Contact'
slug = "contact"
translationKey = "i18n-contact"
+++
You can contact me in the following ways:
- Email: [[email protected]](mailto:[email protected]?body=Hey!%20Found%20your%20contact%20information%20in%20your%20blog!)
- X (Twitter): [@migtarx](https://twitter.com/migtarx)
14 changes: 13 additions & 1 deletion hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
Expand All @@ -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 = ""
Expand Down
8 changes: 6 additions & 2 deletions themes/hello-friend/layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@
{{ else }}
{{ partial "logo.html" . }}
<div class="copyright">
<span>© {{ now.Year }} Powered by <a href="https://gohugo.io" target="_blank" rel="noopener">Hugo</a></span>
<span><a href="https://github.com/panr/hugo-theme-hello-friend" target="_blank">Theme</a> made by <a href="https://github.com/panr" target="_blank">panr</a></span>
<span>© {{ now.Year }} {{ $.Site.Params.writtenBy }} <a style="color: #27aff8" href="https://twitter.com/migtarx">migtarx</a> |
<br>
<a href="{{ $.Site.Params.builtWithUrl }}">{{ $.Site.Params.builtWith }}</a> |
<a href="{{ $.Site.Params.aboutUrl }}">{{ $.Site.Params.about }}</a> |
<a href="{{ $.Site.Params.contactUrl }}">{{ $.Site.Params.contact }}</a>
</span>
</div>
{{ end }}
</div>
Expand Down

0 comments on commit 6a3f6e5

Please sign in to comment.