From 10fcf53bcf0cc8efcd903d0eeaab94bf4798c078 Mon Sep 17 00:00:00 2001 From: dzello Date: Thu, 26 Apr 2018 16:20:41 -0700 Subject: [PATCH] Use a baseof template for better organization --- layouts/_default/baseof.html | 54 +++++++++++++++++++++++++ layouts/index.html | 77 ++++++------------------------------ 2 files changed, 67 insertions(+), 64 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..123cb49 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,54 @@ + + + + + {{ .Site.Title }} + + + + + + + {{ $theme := or .Site.Params.reveal_theme "black" }} + + + + + + + + + {{ block "main" . }} + {{ end }} + + + + + diff --git a/layouts/index.html b/layouts/index.html index 2851dde..6c37963 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,66 +1,15 @@ - - - - - - {{ .Site.Title }} - - - - - - - {{ $theme := or .Site.Params.reveal_theme "black" }} - - - - - - - - -
- -
- - {{ range (where .Data.Pages "Type" "reveal") }} - - {{ range (split .Content "
") }} - -
{{ . | safeHTML }}
- {{ end }} +{{ define "main" }} +
+ +
+ + {{ range (where .Data.Pages "Type" "reveal") }} + + {{ range (split .Content "
") }} + +
{{ . | safeHTML }}
{{ end }} -
+ {{ end }}
- - - - - +
+{{ end }}