From f609df648ff95cf8a6069fbaaa668b1dcb0bda12 Mon Sep 17 00:00:00 2001 From: mspnr Date: Sun, 31 Jan 2021 22:36:56 +0100 Subject: [PATCH 1/2] moving main wrapper out of index.html --- layouts/_default/baseof.html | 24 ++++++++++++++++++++ layouts/index.html | 44 +++++++++--------------------------- 2 files changed, 35 insertions(+), 33 deletions(-) create mode 100644 layouts/_default/baseof.html diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..06de0f0 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,24 @@ + + + + + {{ partial "template/head" . }} + + + + +
+ {{- block "main" . }}{{- end }} + +
+ + {{ template "_internal/google_analytics.html" . }} + {{ partial "template/scripts" . }} + + + \ No newline at end of file diff --git a/layouts/index.html b/layouts/index.html index fd1edbf..da8f08c 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,35 +1,13 @@ - - - - - {{ partial "template/head" . }} +{{ define "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" . }} - -
- - - {{ 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" . }} - - -
- - {{ template "_internal/google_analytics.html" . }} - {{ partial "template/scripts" . }} - - - \ No newline at end of file +{{ end }} \ No newline at end of file From 765f229b303fec230caa0b32bf5de8a01dc29eb7 Mon Sep 17 00:00:00 2001 From: mspnr Date: Mon, 1 Feb 2021 19:07:20 +0100 Subject: [PATCH 2/2] fixing footer - moving li into with --- layouts/partials/template/footer.html | 30 +++++++++++++-------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/layouts/partials/template/footer.html b/layouts/partials/template/footer.html index d050cde..671e3bd 100644 --- a/layouts/partials/template/footer.html +++ b/layouts/partials/template/footer.html @@ -1,15 +1,15 @@ - -
-
-
    -
  • {{ with .Site.Params.social.github }}Github
  • {{end}} -
  • {{ with .Site.Params.social.twitter }}Twitter
  • {{end}} -
  • {{ with .Site.Params.social.instagram }}Instagram
  • {{end}} -
  • {{ with .Site.Params.social.linkedin }}LinkedIn
  • {{end}} -
  • {{ with .Site.Params.social.email }}Email
  • {{end}} -
-

Hugo Story © 2020 CaressOfSteel - Ported from Story by HTML5UP - Images courtesy of Unsplash

-
-
\ No newline at end of file + + \ No newline at end of file