Use hugo-wrapper for demo target of exampleSite (#74)

hugow is a platform independent wrapper for hugo binary
and it removes the need to actually have the correct
binary installed, rather than controlling the required
version through a version file checked in the repo.
This commit is contained in:
Khosrow Moossavi
2018-09-10 13:32:15 -04:00
committed by Luiz F. A. de Prá
parent 1114bddcd3
commit ce21f192aa
4 changed files with 436 additions and 3 deletions

View File

@@ -1,10 +1,10 @@
.PHONY: demo clear
.PHONY: demo clean
demo:
mkdir -p demo/themes/hugo-coder
rsync -av exampleSite/* demo
rsync -av exampleSite/ demo
rsync -av --exclude='demo' --exclude='exampleSite' --exclude='.git' . demo/themes/hugo-coder
cd demo && hugo serve -D
cd demo && ./hugow serve -D
clean:
rm -rf demo