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 }}