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:
parent
c7b1145527
commit
43536d1959
@ -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]]
|
||||
|
@ -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" . }}
|
||||
|
||||
|
@ -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 }}
|
||||
|
Loading…
Reference in New Issue
Block a user