{{ .name }}
Sponsors
- {{ $images := .Site.Params.sponsors }} - - -
-
+ {{- partial "sponsors.html" . -}}
+ {{- partial "next-match.html" . -}}
+ {{- partial "last-match.html" . -}}
{{ end }}
{{ block "main" . }}{{ end }}
{{ if and (.Site.Params.footer.showScrollToTop | default true) (gt .WordCount 1) }}
diff --git a/layouts/partials/last-match.html b/layouts/partials/last-match.html
new file mode 100644
index 00000000..a0b0f891
--- /dev/null
+++ b/layouts/partials/last-match.html
@@ -0,0 +1,35 @@
+
- {{ $num := 0 }}
- {{ range $images }}
-
-
-
-
- {{ if .site }}
-
- {{ else }}
-
- {{ end }}
-
- {{ if .name }}
-
- {{ end }}
-
-
- {{ $num = add $num 1 }}
- {{ end }}
- {{ $num := 0 }}
- {{ range $images }}
-
- {{ $num = add $num 1 }}
- {{ end }}
- Ultima Partita
+{{ $match := .Site.Params.last_match }} +
+
+
+
+
+ {{ if strings.Contains $match.home "Saviors" }}
+ {{ $match.home }}
+ {{ else }}
+
+
+ {{ $match.home }}
+ {{ else }}
+ {{ $match.home }}
+ {{ end }}
+
+
+
+ {{ $match.result }}
+
+ {{ if strings.Contains $match.visitors "Saviors" }}
+ {{ $match.visitors }}
+ {{ else }}
+
+
+ {{ $match.visitors }}
+ {{ else }}
+ {{ $match.visitors }}
+ {{ end }}
+
+
+
+
+
\ No newline at end of file
diff --git a/layouts/partials/next-match.html b/layouts/partials/next-match.html
new file mode 100644
index 00000000..4c8e9dca
--- /dev/null
+++ b/layouts/partials/next-match.html
@@ -0,0 +1,35 @@
+{{ $match.when_where }}
+Prossima Partita
+{{ $match := .Site.Params.next_match }} +
+
+
+
+
+ {{ if strings.Contains $match.home "Saviors" }}
+ {{ $match.home }}
+ {{ else }}
+
+
+ {{ $match.home }}
+ {{ else }}
+ {{ $match.home }}
+ {{ end }}
+
+
+
+ {{ $match.result }}
+
+ {{ if strings.Contains $match.visitors "Saviors" }}
+ {{ $match.visitors }}
+ {{ else }}
+
+
+ {{ $match.visitors }}
+ {{ else }}
+ {{ $match.visitors }}
+ {{ end }}
+
+
+
+
+
\ No newline at end of file
diff --git a/layouts/partials/sponsors.html b/layouts/partials/sponsors.html
new file mode 100644
index 00000000..daee3916
--- /dev/null
+++ b/layouts/partials/sponsors.html
@@ -0,0 +1,47 @@
+{{ $match.when_where }}
+Sponsors
+{{ $images := .Site.Params.sponsors }} + + +
+
+
diff --git a/layouts/partials/video.html b/layouts/partials/video.html
new file mode 100644
index 00000000..53d2446e
--- /dev/null
+++ b/layouts/partials/video.html
@@ -0,0 +1,19 @@
+{{ if .Site.Params.homePageVideo }}
+
+
+
+
+
+{{ end }}