|
@@ -0,0 +1,27 @@
|
|
|
+{{ partial "header.html" . }}
|
|
|
+{{ partial "navbar.html" . }}
|
|
|
+
|
|
|
+<!-- Flag for jQuery -->
|
|
|
+<span id="homepage" style="display: none"></span>
|
|
|
+
|
|
|
+{{ if .IsHome }}
|
|
|
+ {{ .Scratch.Set "section" "home" }}
|
|
|
+{{ else }}
|
|
|
+ {{ .Scratch.Set "section" .Section }}
|
|
|
+{{ end }}
|
|
|
+{{ $section := .Scratch.Get "section" }}
|
|
|
+
|
|
|
+<!-- Widgets -->
|
|
|
+{{ range $index, $page := where .Data.Pages "Section" $section }}
|
|
|
+ {{ $params := dict "root" $ "page" $page }}
|
|
|
+ {{ $widget := printf "widgets/%s.html" ( or $page.Params.widget "custom" ) }}
|
|
|
+ <section id="{{ $page.File.TranslationBaseName }}" class="home-section">
|
|
|
+ <div class="container">
|
|
|
+ {{ partial $widget $params }}
|
|
|
+ </div>
|
|
|
+ </section>
|
|
|
+{{ end }}
|
|
|
+
|
|
|
+<!-- Page Footer -->
|
|
|
+{{ partial "footer_container.html" . }}
|
|
|
+{{ partial "footer.html" . }}
|