don't make undefined routes clickable; fix comment
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user