From e79f999528dea0f5829237d4eab46fc495f4d51e Mon Sep 17 00:00:00 2001 From: dzello Date: Tue, 3 Jul 2018 00:00:56 +0200 Subject: [PATCH] Simply commands to run the example site Works around #4851 --- README.md | 2 +- exampleSite/config.toml | 2 ++ netlify.toml | 4 ++-- package.json | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8534e0a..5b20fe2 100644 --- a/README.md +++ b/README.md @@ -179,7 +179,7 @@ Not directly related to reveal-hugo, but these are some of my favorite Reveal.js Contributions are very welcome. To run the example site in this repository locally, clone this repository and run: ```shell -hugo server -s exampleSite -d ../public --themesDir '../' --theme '.' +hugo server -s exampleSite ``` or simply... diff --git a/exampleSite/config.toml b/exampleSite/config.toml index a8fe8db..566acf7 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -2,6 +2,8 @@ baseURL = "https://example.com/" languageCode = "en-us" title = "A Hugo theme for creating Reveal.js presentations" disableKinds = ["sitemap", "RSS"] +theme = "." +themesDir = "../" [author] name = "Josh Dzielak" diff --git a/netlify.toml b/netlify.toml index c03f996..80cef0f 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,6 +1,6 @@ [build] -command = "hugo -s exampleSite -d ../public --themesDir '../' --theme '.'" -publish = "public" +command = "hugo -s exampleSite" +publish = "exampleSite/public" [context.production.environment] HUGO_VERSION = "0.37.1" diff --git a/package.json b/package.json index 62913d1..17ffe1f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "scripts": { - "start": "hugo server -s exampleSite -d ../public --themesDir '../' --theme '.'" + "start": "hugo server -s exampleSite" }, "dependencies": { "npm": "^6.0.0"