From e269f00670be5004f3c61d3a27b1c02b5277cfc0 Mon Sep 17 00:00:00 2001 From: dzello Date: Thu, 26 Apr 2018 22:11:04 -0700 Subject: [PATCH] Incorporate content from section _index.md files --- exampleSite/content/_index.md | 5 +++++ layouts/_default/list.html | 13 ++++++++----- layouts/index.html | 13 ++++++++----- 3 files changed, 21 insertions(+), 10 deletions(-) create mode 100644 exampleSite/content/_index.md 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 }}