forked from website/openpower.foundation
commit
2389cfa067
2 changed files with 65 additions and 0 deletions
@ -0,0 +1,36 @@
@@ -0,0 +1,36 @@
|
||||
#!.gitignore |
||||
|
||||
### Hugo ### |
||||
# https://github.com/github/gitignore/tree/master/community/Golang |
||||
# gitginore template for Hugo projects |
||||
# website: https://gohugo.io |
||||
|
||||
# generated files by hugo |
||||
/public/ |
||||
/resources/_gen/ |
||||
|
||||
# executable may be added to repository |
||||
hugo.exe |
||||
hugo.darwin |
||||
hugo.linux |
||||
|
||||
## Vim |
||||
# https://github.com/github/gitignore/blob/master/Global/Vim.gitignore |
||||
|
||||
# Swap |
||||
[._]*.s[a-v][a-z] |
||||
[._]*.sw[a-p] |
||||
[._]s[a-rt-v][a-z] |
||||
[._]ss[a-gi-z] |
||||
[._]sw[a-p] |
||||
|
||||
# Session |
||||
Session.vim |
||||
|
||||
# Temporary |
||||
.netrwhist |
||||
*~ |
||||
# Auto-generated tag files |
||||
tags |
||||
# Persistent undo |
||||
[._]*.un~ |
@ -0,0 +1,29 @@
@@ -0,0 +1,29 @@
|
||||
#!Makefile |
||||
|
||||
HUGO=hugo |
||||
|
||||
.PHONY: build serve draft clean travis netlify |
||||
|
||||
default all: build |
||||
|
||||
build: |
||||
$(HUGO) --minify |
||||
@find public/ -name '*.html' ! -name '*.gz' -type f -exec sh -c "gzip -c -9 < {} > {}.gz" \; |
||||
@find public/ -name '*.css' ! -name '*.gz' -type f -exec sh -c "gzip -c -9 < {} > {}.gz" \; |
||||
@find public/ -name '*.js' ! -name '*.gz' -type f -exec sh -c "gzip -c -9 < {} > {}.gz" \; |
||||
|
||||
travis: |
||||
$(MAKE) HUGO=./hugo build |
||||
|
||||
netlify: |
||||
$(HUGO) --minify --quiet --baseURL="$DEPLOY_PRIME_URL" |
||||
|
||||
draft: |
||||
$(HUGO) --minify --buildDrafts --buildFuture --buildExpired |
||||
|
||||
serve: |
||||
$(HUGO) server --disableFastRender --watch |
||||
|
||||
clean: |
||||
@rm -rf public/ |
||||
@rm -rf resources/ |
Loading…
Reference in new issue