From 80f0c3ee33a3f2306786956a34ca422e37fec0cc Mon Sep 17 00:00:00 2001 From: dzello Date: Mon, 30 Apr 2018 23:19:04 -0700 Subject: [PATCH] Put slides partial into reveal-hugo dir --- README.md | 10 ++++------ layouts/_default/index.reveal.html | 2 +- layouts/_default/list.reveal.html | 2 +- layouts/partials/{ => reveal-hugo}/slides.html | 0 4 files changed, 6 insertions(+), 8 deletions(-) rename layouts/partials/{ => reveal-hugo}/slides.html (100%) diff --git a/README.md b/README.md index 56e40a9..fb11fbf 100644 --- a/README.md +++ b/README.md @@ -142,12 +142,10 @@ If you need to add something to the HTML page, just override one or both of the If your Hugo site already has a theme but you'd like to create a presentation from some of its content, that's very easy. First, manually copy a few files out of this theme into a few of your site's directories: ```shell -$ cd my-hugo-site -$ git clone git@github.com:dzello/reveal-hugo.git themes/reveal-hugo -$ cp -r themes/reveal-hugo/static/reveal_hugo static/reveal_hugo -$ cp themes/reveal-hugo/layouts/* layouts -$ cp themes/reveal-hugo/data/* data -$ cp themes/reveal-hugo/static/* static +cd my-hugo-site +git clone git@github.com:dzello/reveal-hugo.git themes/reveal-hugo +cd themes/reveal-hugo +cp -r data layouts static ../../ ``` Files and directories are named such that they shouldn't conflict with your existing content. Of course, you should double check before copying, especially the shortcodes which can't be put under a directory. diff --git a/layouts/_default/index.reveal.html b/layouts/_default/index.reveal.html index 2b88d1d..8faa735 100644 --- a/layouts/_default/index.reveal.html +++ b/layouts/_default/index.reveal.html @@ -1,3 +1,3 @@ {{ define "main" }} - {{ partial "slides" (union (slice .Page) (where .Data.Pages "Type" "home")) }} + {{ partial "reveal-hugo/slides" (union (slice .Page) (where .Data.Pages "Type" "home")) }} {{ end }} diff --git a/layouts/_default/list.reveal.html b/layouts/_default/list.reveal.html index 1f6786e..6c3c470 100644 --- a/layouts/_default/list.reveal.html +++ b/layouts/_default/list.reveal.html @@ -1,3 +1,3 @@ {{ define "main" }} - {{ partial "slides" (union (slice .Page) .Pages) }} + {{ partial "reveal-hugo/slides" (union (slice .Page) .Pages) }} {{ end }} diff --git a/layouts/partials/slides.html b/layouts/partials/reveal-hugo/slides.html similarity index 100% rename from layouts/partials/slides.html rename to layouts/partials/reveal-hugo/slides.html