with the makefile the theme development should be easier checking for html errors (missing closing tag ...) in the generated pages can be done with html-tidy http://www.html-tidy.org/devForUpstream
parent
54613cc4fd
commit
feec5de559
@ -0,0 +1 @@
|
||||
build
|
@ -0,0 +1,21 @@
|
||||
|
||||
check: example
|
||||
# run html-tidy to check for errors http://www.html-tidy.org/
|
||||
find ./build/public *.html -printf '%p' -exec tidy -eq {} \;
|
||||
|
||||
serve: prep_example
|
||||
# build the example site and serve
|
||||
cd build && hugo serve
|
||||
|
||||
example: prep_example
|
||||
# build the example
|
||||
cd build && hugo
|
||||
|
||||
prep_example: clean
|
||||
# prepare the example site
|
||||
mkdir -p build/themes
|
||||
cp -r exampleSite/* build
|
||||
cd build/themes && ln -s ../../ hugo-dusk
|
||||
|
||||
clean:
|
||||
rm -rf build
|
Loading…
Reference in new issue