Fetch menus from YAML

This commit is contained in:
C. Lente 2023-02-09 17:28:32 -03:00
parent 7a4c8fd24b
commit 045c2e3495
No known key found for this signature in database
GPG key ID: B0B503C26E05781B
6 changed files with 23 additions and 19 deletions

View file

@ -1,4 +1,4 @@
{{ range .Site.Menus.main }}
{{ range .Site.Menus.main.ByWeight }}
<a href="{{ .URL | absLangURL }}">{{ .Name }}</a>
{{ end }}
<a href="mailto:{{ .Site.Params.email }}?subject={{ i18n "email-subject" }}'{{ .Page.Title | default .Site.Title }}'">Email</a>