7
1
mirror of https://gitlab.com/ansol/web-ansol.org.git synced 2024-11-22 06:11:30 +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]] [[main]]
name = "Início" name = "Início"
url = "#" url = ""
weight = 10 weight = 10
[[main]] [[main]]
name = "Notícias" name = "Notícias"
url = "/post" url = "post"
weight = 20 weight = 20
[[main]] [[main]]
@ -20,7 +20,7 @@
[[main]] [[main]]
name = "Eventos" name = "Eventos"
url = "/events" url = "events"
weight = 40 weight = 40
[[main]] [[main]]

View File

@ -39,7 +39,7 @@
</div> </div>
<div class="body-footer"> <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" . }} {{ partial "page_edit" . }}

View File

@ -15,14 +15,7 @@
{{ if not (in (slice "talk" "page") $page.Type) }} {{ if not (in (slice "talk" "page") $page.Type) }}
<span class="article-date"> <span class="article-date">
{{ $date := $page.Lastmod.Format site.Params.date_format }} {{ $date := $page.Date.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 }} {{ $date }}
</span> </span>
{{ end }} {{ end }}