- {{ $total_distance := 0 }}
- {{ $total_ascent := 0 }}
- {{ $total_nr_of_tours := 0 }}
-
- {{ range .Pages }}
- {{ $act_ascent:= int .Params.ascent_m }}
- {{ $total_ascent = add $act_ascent $total_ascent }}
-
- {{ $act_distance:= int .Params.distance_km }}
- {{ $total_distance = add $act_distance $total_distance }}
-
- {{ $total_nr_of_tours = add 1 $total_nr_of_tours }}
+
+
+{{ $total_distance := 0 }}
+{{ $total_ascent := 0 }}
+{{ $total_nr_of_tours := 0 }}
+
+{{ range .Pages }}
+ {{ $act_ascent:= int .Params.ascent_m }}
+ {{ $total_ascent = add $act_ascent $total_ascent }}
+
+ {{ $act_distance:= int .Params.distance_km }}
+ {{ $total_distance = add $act_distance $total_distance }}
+
+ {{ $total_nr_of_tours = add 1 $total_nr_of_tours }}
+{{ end }}
+
+
Touren des Jahres {{ .Title }}!
{{ partial "statistic-summary.html" ( dict "total_nr" $total_nr_of_tours "distance" $total_distance "ascent" $total_ascent ) }}