moving main wrapper out of index.html

This commit is contained in:
mspnr 2021-01-31 22:36:56 +01:00
parent 459291f0f2
commit f609df648f
2 changed files with 35 additions and 33 deletions

View File

@ -0,0 +1,24 @@
<!DOCTYPE HTML>
<!--
Hugo Story by CaressOfSteel
A (modular, highly tweakable) responsive one-page theme for Hugo.
Ported from Story by HTML5UP.
This Hugo theme is licensed under the Creative Commons Attribution 3.0 License.
-->
<html>
{{ partial "template/head" . }}
<body class="is-preload">
<!-- Wrapper -->
<div id="wrapper" class="divided">
{{- block "main" . }}{{- end }}
<!-- Wrapper -->
</div>
{{ template "_internal/google_analytics.html" . }}
{{ partial "template/scripts" . }}
</body>
</html>

View File

@ -1,35 +1,13 @@
<!DOCTYPE HTML> {{ define "main" }}
<!--
Hugo Story by CaressOfSteel
A (modular, highly tweakable) responsive one-page theme for Hugo.
Ported from Story by HTML5UP.
This Hugo theme is licensed under the Creative Commons Attribution 3.0 License.
-->
<html>
{{ partial "template/head" . }} {{ partial "banner" site.Data.banner }}
{{ partial "spotlight" site.Data.spotlight1 }}
{{ partial "spotlight" site.Data.spotlight2 }}
{{ partial "spotlight" site.Data.spotlight3 }}
{{ partial "gallery" site.Data.gallery }}
{{ partial "items" site.Data.items }}
{{ partial "elements" . }}
{{ partial "elements_reference" . }}
{{ partial "template/footer" . }}
<body class="is-preload"> {{ end }}
<!-- Wrapper -->
<div id="wrapper" class="divided">
<!-- Main -->
{{ partial "banner" site.Data.banner }}
{{ partial "spotlight" site.Data.spotlight1 }}
{{ partial "spotlight" site.Data.spotlight2 }}
{{ partial "spotlight" site.Data.spotlight3 }}
{{ partial "gallery" site.Data.gallery }}
{{ partial "items" site.Data.items }}
{{ partial "elements" . }}
{{ partial "elements_reference" . }}
{{ partial "template/footer" . }}
<!-- Wrapper -->
</div>
{{ template "_internal/google_analytics.html" . }}
{{ partial "template/scripts" . }}
</body>
</html>