We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca53c58 commit 0c793c2Copy full SHA for 0c793c2
.gitignore
@@ -1,2 +1,3 @@
1
.hugo_build.lock
2
public
3
+bin
Makefile
@@ -0,0 +1,26 @@
+PORT=1313
+HUGO_VERSION=0.134.0
+HUGO_PLATFORM_ARCH=linux-amd64
4
+HUGO_URL=https://github.com/gohugoio/hugo/releases/download/v$(HUGO_VERSION)/hugo_$(HUGO_VERSION)_$(HUGO_PLATFORM_ARCH).tar.gz
5
+
6
+.PHONY: serve
7
+serve: bin/hugo
8
+ bin/hugo server -b localhost:$(PORT)
9
10
+.PHONY: build
11
+hugo: bin/hugo
12
+ bin/hugo --minify
13
14
+setup: bin/hugo
15
16
+bin/hugo: bin/hugo.tar.gz
17
+ tar -xvf bin/hugo.tar.gz -C bin
18
+ touch bin/hugo
19
20
+bin/hugo.tar.gz:
21
+ mkdir -p bin
22
+ wget $(HUGO_URL) -O bin/hugo.tar.gz
23
24
+.PHONY: clean
25
+clean:
26
+ rm -rf bin public
0 commit comments