mirror of
https://github.com/caressofsteel/hugo-story.git
synced 2024-12-22 01:25:07 +01:00
moving main wrapper out of index.html
This commit is contained in:
parent
459291f0f2
commit
f609df648f
24
layouts/_default/baseof.html
Normal file
24
layouts/_default/baseof.html
Normal 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>
|
@ -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" . }}
|
|
||||||
|
|
||||||
<body class="is-preload">
|
{{ 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 -->
|
{{ end }}
|
||||||
<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>
|
|
Loading…
Reference in New Issue
Block a user