lots of fixes and customisations

This commit is contained in:
Jeremy Kidwell 2017-06-27 16:46:06 +01:00
parent a866f96482
commit e969976249
31 changed files with 751 additions and 832 deletions

View file

@ -13,11 +13,14 @@
### minify the CSS, should you keep that step.
SSH_USER = khealy@kieranhealy.org
STAGING_USER = kjhealy@kjhealy.co
DOCUMENT_ROOT = ~/kieranhealy.org
STAGING_ROOT = ~/public/kjhealy.co/public_html
SSH_USER = jeremyki@jeremykidwell.info
STAGING_USER =
DOCUMENT_ROOT = /home/jeremyki/public_html
STAGING_ROOT = ~/public/gits/jeremykidwell.info
PUBLIC_DIR = public/
HUGO_EXECUTABLE = /usr/local/bin/hugo
all: deploy
@ -25,18 +28,21 @@ staging: site
rsync -crzve 'ssh -p 22' $(PUBLIC_DIR) $(STAGING_USER):$(STAGING_ROOT)
server: css
hugo server -ws .
/usr/local/bin/hugo server -ws .
rsync:
rsync -crzve 'ssh -p 22' $(PUBLIC_DIR) $(SSH_USER):$(DOCUMENT_ROOT)
deploy: compress site
rsync -crzve 'ssh -p 22' $(PUBLIC_DIR) $(SSH_USER):$(DOCUMENT_ROOT)
compress: css
java -jar ~/bin/yuicompressor-2.4.8.jar static/css/stylesheet.css -o static/css/stylesheet-min.css --charset utf-8
yuicompressor static/css/stylesheet.css -o static/css/stylesheet-min.css --charset utf-8
site: css .FORCE
hugo
find public -type d -print0 | xargs -0 chmod 755
find public -type f -print0 | xargs -0 chmod 644
$(HUGO_EXECUTABLE)
find $(PUBLIC_DIR) -type d -print0 | xargs -0 chmod 755
find $(PUBLIC_DIR) -type f -print0 | xargs -0 chmod 644
css:
touch static/css/stylesheet.css
@ -46,4 +52,4 @@ css:
clean:
rm -rf public/
.FORCE:
.FORCE: