diff options
author | Zachary Betz <zwbetz@gmail.com> | 2019-01-12 19:58:23 +0300 |
---|---|---|
committer | Zachary Betz <zwbetz@gmail.com> | 2019-01-12 19:58:23 +0300 |
commit | 5d90e734ec735d0f9ede3bbde5a0187ddac57701 (patch) | |
tree | 97da20f3a188ddb644355dc776cc19a77d4d2150 | |
parent | 83a9d673d76f5df9bcd5fca152984441b2e8b1f8 (diff) |
Test out HUGO_THEME env var
-rw-r--r-- | exampleSite/config.toml | 3 | ||||
-rw-r--r-- | exampleSite/config.yaml | 3 | ||||
-rw-r--r-- | 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 |