Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mrmierzejewski/hugo-theme-console.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Mierzejewski <marcin@mierzejewski.net>2020-05-02 14:43:05 +0300
committerMarcin Mierzejewski <marcin@mierzejewski.net>2020-05-02 14:43:05 +0300
commit99828eca0e62ce05bb6723b48d8a4e7fd3bd6736 (patch)
tree0b8dc4d6c7ccc99a465ff38ad963e1891cb220c5
parent239a1d4d83abe2e0c198897b4d14a144054a0b6f (diff)
makefile: add makefile to run Hugo server with example site
-rw-r--r--README.md8
-rw-r--r--makefile12
2 files changed, 20 insertions, 0 deletions
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