diff options
Diffstat (limited to 'layouts/partials')
| -rw-r--r-- | layouts/partials/footer.html | 6 | ||||
| -rw-r--r-- | layouts/partials/header.html | 25 |
2 files changed, 17 insertions, 14 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 8a06f09..1d98e95 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -5,10 +5,4 @@ Copyright © 2023 Ariel Costas Guerrero. Todos los derechos reservados.<br> Cedido bajo licencia <a href="https://creativecommons.org/licenses/by-sa/4.0/deed.es">CC BY-SA 4.0</a> salvo que se indique lo contrario. </p> - - <div> - <a href="https://masto.es/@arielcg" rel="me">Mastodon</a> - <a href="https://github.com/arielcostas">GitHub</a> - <a href="https://linkedin.com/in/ariel-costas">LinkedIn</a> - </div> </footer>
\ No newline at end of file diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 9e51d9b..5cf34fc 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,13 +1,22 @@ <header> - <h1> - <a href="{{ .Site.Home.RelPermalink }}"> - CostasDEV - </a> - </h1> + <div> + <h1> + <a href="{{ .Site.Home.RelPermalink }}"> + CostasDEV + </a> + </h1> + + <nav> + {{$current := .}} + {{ range .Site.Home.Pages }} + <a href="{{ .RelPermalink }}"{{ if eq .RelPermalink $current.RelPermalink }} class="active"{{ end }}>{{ .Title }}</a> + {{ end }} + </nav> + </div> <nav> - {{ range .Site.Home.Pages }} - <a href="{{ .RelPermalink }}">{{ .Title }}</a> - {{ end }} + <a rel="me" href="https://masto.es/@arielcg">Mastodon</a> + <a href="https://github.com/arielcostas">GitHub</a> + <a href="https://linkedin.com/in/ariel-costas">LinkedIn</a> </nav> </header>
\ No newline at end of file |
