From b72406f7c1670172bae64632c9a23ec9c4de0752 Mon Sep 17 00:00:00 2001 From: Hidenori MATSUKI Date: Mon, 8 Oct 2018 01:12:04 +0900 Subject: Set themesDir on docker-compose. --- .circleci/config.yml | 2 +- example-site/config.toml | 2 -- example-site/docker-compose.yml | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index f396d54..8cd9faf 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -9,7 +9,7 @@ jobs: <<: *defaults steps: - checkout - - run: cd example-site && sed -i '1s/publishDir = "public/techlog-simple"\n/' config.toml + - run: cd example-site && sed -i '1ipublishDir = "public/techlog-simple"' config.toml - run: name: Build Website command: cd example-site && hugo --baseURL="https://${GCLOUD_PROJECT}.firebaseapp.com/techlog-simple" --themesDir="../.." diff --git a/example-site/config.toml b/example-site/config.toml index 618ef6c..4493274 100644 --- a/example-site/config.toml +++ b/example-site/config.toml @@ -1,6 +1,4 @@ baseURL = "http://example.org/" -relativeURLs = true -canonifyURLs = true languageCode = "en-us" title = "A Hugo theme" theme = "techlog-simple" diff --git a/example-site/docker-compose.yml b/example-site/docker-compose.yml index 42df212..11714b7 100644 --- a/example-site/docker-compose.yml +++ b/example-site/docker-compose.yml @@ -3,7 +3,7 @@ services: website: build: . working_dir: /techlog-simple/example-site - command: hugo server --bind 0.0.0.0 --buildDrafts + command: hugo server --themesDir="../.." --bind 0.0.0.0 --buildDrafts volumes: - ../:/techlog-simple ports: -- cgit v1.2.3