don't make undefined routes clickable; fix comment

This commit is contained in:
2022-09-17 22:26:47 +02:00
parent cd0383245b
commit ddbf06d7d0
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -146,7 +146,7 @@ func withSpacers(events []*GenericEvent) []*GenericEvent {
func getDateYear(date string) int {
year, err := strconv.Atoi(strings.Split(date, "/")[0])
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