From 99828eca0e62ce05bb6723b48d8a4e7fd3bd6736 Mon Sep 17 00:00:00 2001 From: Marcin Mierzejewski Date: Sat, 2 May 2020 13:43:05 +0200 Subject: [PATCH] makefile: add makefile to run Hugo server with example site --- README.md | 8 ++++++++ makefile | 12 ++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 makefile diff --git a/README.md b/README.md index fd45737..a11f6cd 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,14 @@ Set theme parameter in your config file: theme = "hugo-theme-console" ``` +## Example Site + +If you want to run the example site, please run the following command: + +``` +makefile hugo-server +``` + ## License Copyright © 2020 [Marcin Mierzejewski](https://mrmierzejewski.com/) diff --git a/makefile b/makefile new file mode 100644 index 0000000..d401c13 --- /dev/null +++ b/makefile @@ -0,0 +1,12 @@ +PWD ?= $(shell pwd)/ + +usage: ### Usage (default) + @echo + @echo "USAGE:" + @echo " make command [options]" + @echo + @echo "COMMANDS:" + @fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed 's/^/ /' | sed -e 's/\\$$//' | sed -e 's/#/ /g' + +hugo-server: ## Run Hugo web server and serve the example site + cd exampleSite; hugo server --themesDir ../../ -t hugo-theme-console \ No newline at end of file