From 5d90e734ec735d0f9ede3bbde5a0187ddac57701 Mon Sep 17 00:00:00 2001 From: Zachary Betz Date: Sat, 12 Jan 2019 10:58:23 -0600 Subject: Test out HUGO_THEME env var --- exampleSite/config.toml | 3 +-- exampleSite/config.yaml | 3 +-- netlify.toml | 9 ++++++++- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index b9360c8..14a4858 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -1,8 +1,7 @@ baseURL = "https://example.com" languageCode = "en-us" title = "Vanilla" -# Uncomment below to enable theme -# theme = "vanilla-bootstrap-hugo-theme" +theme = "vanilla-bootstrap-hugo-theme" googleAnalytics = "UA-123456789-1" # Uncomment below to enable syntax highlighting diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 5cbae2b..cb4edcd 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -1,8 +1,7 @@ baseURL: https://example.com languageCode: en-us title: Vanilla -# Uncomment below to enable theme -# theme: vanilla-bootstrap-hugo-theme +theme: vanilla-bootstrap-hugo-theme googleAnalytics: UA-123456789-1 # Uncomment below to enable syntax highlighting diff --git a/netlify.toml b/netlify.toml index 6cc3c1d..cd3a939 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,6 +1,13 @@ [build] publish = "exampleSite/public" - command = "cd exampleSite && hugo --gc --themesDir ../.. -t repo --baseURL https://vanilla-bootstrap-hugo-theme.netlify.com/" + command = """\ + HUGO_THEME=repo \ + cd exampleSite && \ + hugo \ + --gc \ + --themesDir ../.. \ + --baseURL https://vanilla-bootstrap-hugo-theme.netlify.com/ \ + """ [build.environment] HUGO_VERSION = "0.53" \ No newline at end of file -- cgit v1.2.3