diff options
author | Marcin Mierzejewski <marcin@mierzejewski.net> | 2020-05-02 14:43:05 +0300 |
---|---|---|
committer | Marcin Mierzejewski <marcin@mierzejewski.net> | 2020-05-02 14:43:05 +0300 |
commit | 99828eca0e62ce05bb6723b48d8a4e7fd3bd6736 (patch) | |
tree | 0b8dc4d6c7ccc99a465ff38ad963e1891cb220c5 | |
parent | 239a1d4d83abe2e0c198897b4d14a144054a0b6f (diff) |
makefile: add makefile to run Hugo server with example site
-rw-r--r-- | README.md | 8 | ||||
-rw-r--r-- | makefile | 12 |
2 files changed, 20 insertions, 0 deletions
@@ -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 |