makefile: add makefile to run Hugo server with example site

This commit is contained in:
Marcin Mierzejewski 2020-05-02 13:43:05 +02:00
parent 239a1d4d83
commit 99828eca0e
2 changed files with 20 additions and 0 deletions

View file

@ -24,6 +24,14 @@ Set theme parameter in your config file:
theme = "hugo-theme-console" theme = "hugo-theme-console"
``` ```
## Example Site
If you want to run the example site, please run the following command:
```
makefile hugo-server
```
## License ## License
Copyright © 2020 [Marcin Mierzejewski](https://mrmierzejewski.com/) Copyright © 2020 [Marcin Mierzejewski](https://mrmierzejewski.com/)

12
makefile Normal file
View file

@ -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