7
1
mirror of https://gitlab.com/ansol/web-ansol.org.git synced 2024-11-21 22:01:31 +00:00

Fix navigation URLs

This commit is contained in:
Hugo Peixoto 2021-09-30 02:05:18 +01:00
parent c7b1145527
commit 43536d1959
3 changed files with 5 additions and 12 deletions

View File

@ -5,12 +5,12 @@
[[main]]
name = "Início"
url = "#"
url = ""
weight = 10
[[main]]
name = "Notícias"
url = "/post"
url = "post"
weight = 20
[[main]]
@ -20,7 +20,7 @@
[[main]]
name = "Eventos"
url = "/events"
url = "events"
weight = 40
[[main]]

View File

@ -39,7 +39,7 @@
</div>
<div class="body-footer">
<p>{{ i18n "last_updated" }} {{ $.Lastmod.Format site.Params.date_format }}</p>
<p>{{ i18n "last_updated" }} {{ $.Date.Format site.Params.date_format }}</p>
{{ partial "page_edit" . }}

View File

@ -15,14 +15,7 @@
{{ if not (in (slice "talk" "page") $page.Type) }}
<span class="article-date">
{{ $date := $page.Lastmod.Format site.Params.date_format }}
{{ if eq $page.Type "publication" }}
{{ $date = $page.Date.Format (site.Params.publications.date_format | default "January, 2006") }}
{{ else }}
{{ if ne $page.Params.Lastmod $page.Params.Date }}
{{ i18n "last_updated" }}
{{ end }}
{{ end }}
{{ $date := $page.Date.Format site.Params.date_format }}
{{ $date }}
</span>
{{ end }}