From faec5a03448b05583eb44c94bcf25b13cc46c209 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 20 Apr 2017 22:00:16 +0100 Subject: [PATCH] Split main template mostly into partials --- content/_index.md | 3 ++ layouts/index.html | 81 +------------------------------- layouts/partials/footer.html | 13 +++++ layouts/partials/head.html | 10 ++++ layouts/partials/header.html | 0 layouts/partials/navbar.html | 26 ++++++++++ layouts/partials/page_end.html | 4 ++ layouts/partials/page_start.html | 16 +++++++ layouts/partials/scripts.html | 9 ++++ 9 files changed, 83 insertions(+), 79 deletions(-) create mode 100644 content/_index.md create mode 100644 layouts/partials/head.html delete mode 100644 layouts/partials/header.html create mode 100644 layouts/partials/navbar.html create mode 100644 layouts/partials/page_end.html create mode 100644 layouts/partials/page_start.html create mode 100644 layouts/partials/scripts.html diff --git a/content/_index.md b/content/_index.md new file mode 100644 index 0000000..553726a --- /dev/null +++ b/content/_index.md @@ -0,0 +1,3 @@ +--- +landing: true +--- diff --git a/layouts/index.html b/layouts/index.html index a0094c8..7a98a0c 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,51 +1,5 @@ - - - - - Alpha by HTML5 UP - - - - - - - - - +{{ partial "page_start.html" . }}
- - - - - - - -
- - - - - - - - - - - - - - - - +{{ partial "page_end.html" . }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index e69de29..7d425cc 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -0,0 +1,13 @@ +s diff --git a/layouts/partials/head.html b/layouts/partials/head.html new file mode 100644 index 0000000..b73e34d --- /dev/null +++ b/layouts/partials/head.html @@ -0,0 +1,10 @@ + + Alpha by HTML5 UP + + + + + + + + diff --git a/layouts/partials/header.html b/layouts/partials/header.html deleted file mode 100644 index e69de29..0000000 diff --git a/layouts/partials/navbar.html b/layouts/partials/navbar.html new file mode 100644 index 0000000..2f02d42 --- /dev/null +++ b/layouts/partials/navbar.html @@ -0,0 +1,26 @@ + diff --git a/layouts/partials/page_end.html b/layouts/partials/page_end.html new file mode 100644 index 0000000..e6460c2 --- /dev/null +++ b/layouts/partials/page_end.html @@ -0,0 +1,4 @@ + {{ partial "footer.html" . }} + {{ partial "scripts.html" . }} + + diff --git a/layouts/partials/page_start.html b/layouts/partials/page_start.html new file mode 100644 index 0000000..1d8cfcf --- /dev/null +++ b/layouts/partials/page_start.html @@ -0,0 +1,16 @@ + + + +{{ partial "head.html" . }} + +{{ if .Params.landing }} + +{{ else }} + +{{ end }} + +{{ partial "navbar.html" . }} diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html new file mode 100644 index 0000000..def158a --- /dev/null +++ b/layouts/partials/scripts.html @@ -0,0 +1,9 @@ + + + + + + + + +