aboutsummaryrefslogtreecommitdiff
path: root/themes/terrassa/makefile
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2019-06-19 20:30:25 +0200
committerDimitri Staessens <dimitri@ouroboros.rocks>2019-06-19 20:30:25 +0200
commit2a2311ea3fb1b89a266668bfd16aa96475fc183e (patch)
tree29af79791f578612ef759b9d2421a3fc7c5690ee /themes/terrassa/makefile
parentd3198abf51c1785994bbbbebd195aad44978e5ff (diff)
downloadwebsite-2a2311ea3fb1b89a266668bfd16aa96475fc183e.tar.gz
website-2a2311ea3fb1b89a266668bfd16aa96475fc183e.zip
theme: Update terrassa theme to newest version
This updates the terrassa theme to the latest version.
Diffstat (limited to 'themes/terrassa/makefile')
-rw-r--r--themes/terrassa/makefile24
1 files changed, 14 insertions, 10 deletions
diff --git a/themes/terrassa/makefile b/themes/terrassa/makefile
index 6f35a8a..c021139 100644
--- a/themes/terrassa/makefile
+++ b/themes/terrassa/makefile
@@ -5,25 +5,29 @@ HOST_PORT=80
HUGO_SITE=exampleSite
HUGO_BASE_URL=https://danielkvist.github.io/terrassa/
-build:
+hugo-build:
cd ./$(HUGO_SITE) && hugo
-build-min:
+hugo-build-min:
cd ./$(HUGO_SITE) && hugo --minify
-build-deploy:
+hugo-build-deploy:
cd ./$(HUGO_SITE) && hugo --minify --baseURL="$(HUGO_BASE_URL)"
-server:
+hugo-server:
cd ./$(HUGO_SITE) && hugo server -w
-server-draft:
+hugo-server-draft:
cd ./$(HUGO_SITE) && hugo server -w -D
+hugo-clean:
+ cd ./$(HUGO_SITE) && rm -rf ./public
docker:
docker image build --build-arg HUGO_SITE=$(HUGO_SITE) --build-arg EXPOSE=$(IMAGE_PORT) -t $(IMAGE_NAME) .
docker-nc:
docker image build --build-arg HUGO_SITE=$(HUGO_SITE) --build-arg EXPOSE=$(IMAGE_PORT) --no-cache -t $(IMAGE_NAME) .
-run:
+docker-run:
docker container run -d -p $(IMAGE_PORT):$(HOST_PORT) --name $(APP_NAME) $(IMAGE_NAME)
-stop:
+docker-stop:
docker container stop $(APP_NAME)
-rm:
+docker-rm:
docker container rm $(APP_NAME)
-clean:
- docker container stop $(APP_NAME) && docker container rm $(APP_NAME) && docker image rm $(IMAGE_NAME) && cd ./$(HUGO_SITE) && rm -rf ./public
+dev: hugo-server-draft
+build: huo-build-deploy
+check: hugo-build-min docker-nc docker-run
+clean: docker-stop docker-rm hugo-clean \ No newline at end of file