don't make undefined routes clickable; fix comment

dev-old
Francesco Minnocci 2 years ago
parent cd0383245b
commit ddbf06d7d0
Signed by: BachoSeven
GPG Key ID: 2BE4AB7FDAD828A4

@ -12,14 +12,14 @@
</div> </div>
<div class="nav-item dropdown"> <div class="nav-item dropdown">
<div class="name"> <div class="name">
<a class="nav-element" href="/progetti"> <div class="nav-element">
<div class="icon"> <div class="icon">
<i class="fas fa-chevron-down"></i> <i class="fas fa-chevron-down"></i>
</div> </div>
<div class="label"> <div class="label">
Progetti Progetti
</div> </div>
</a> </div>
</div> </div>
<div class="nav-items"> <div class="nav-items">
<div class="nav-item"> <div class="nav-item">
@ -35,14 +35,14 @@
</div> </div>
<div class="nav-item dropdown"> <div class="nav-item dropdown">
<div class="name"> <div class="name">
<a class="nav-element" href="/risorse"> <div class="nav-element">
<div class="icon"> <div class="icon">
<i class="fas fa-chevron-down"></i> <i class="fas fa-chevron-down"></i>
</div> </div>
<div class="label"> <div class="label">
Risorse Risorse
</div> </div>
</a> </div>
</div> </div>
<div class="nav-items"> <div class="nav-items">
<div class="nav-item"> <div class="nav-item">
@ -85,4 +85,4 @@
{{end}} {{end}}
</div> </div>
</nav> </nav>
{{ end }} {{ end }}

@ -146,7 +146,7 @@ func withSpacers(events []*GenericEvent) []*GenericEvent {
func getDateYear(date string) int { func getDateYear(date string) int {
year, err := strconv.Atoi(strings.Split(date, "/")[0]) year, err := strconv.Atoi(strings.Split(date, "/")[0])
if err != nil { if err != nil {
panic(err) // Tanto nel caso si nota in fase di sviluppo visto che "_content/storia.json" è statico panic(err) // Tanto nel caso si nota in fase di sviluppo visto che "_content/storia.yaml" è statico
} }
return year return year

Loading…
Cancel
Save