diff --git a/exampleSite/content/_index.md b/exampleSite/content/_index.md new file mode 100644 index 0000000..617ff05 --- /dev/null +++ b/exampleSite/content/_index.md @@ -0,0 +1,5 @@ ++++ +title = "reveal-hugo example presentation" ++++ + +# reveal-hugo diff --git a/layouts/_default/list.html b/layouts/_default/list.html index a5d0355..6160bb4 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -3,11 +3,14 @@
- {{ range .Pages }} - - {{ range (split .Content "
") }} - -
{{ . | safeHTML }}
+ {{ range union (slice .Page) }} + + {{ if ne (len .Content) 0 }} + + {{ range (split .Content "
") }} + +
{{ . | safeHTML }}
+ {{ end }} {{ end }} {{ end }}
diff --git a/layouts/index.html b/layouts/index.html index 6c37963..e2e2b76 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -3,11 +3,14 @@
- {{ range (where .Data.Pages "Type" "reveal") }} - - {{ range (split .Content "
") }} - -
{{ . | safeHTML }}
+ {{ range union (slice .Page) (where .Data.Pages "Type" "reveal") }} + + {{ if ne (len .Content) 0 }} + + {{ range (split .Content "
") }} + +
{{ . | safeHTML }}
+ {{ end }} {{ end }} {{ end }}