From 38037201dbf3f00be325989475299157654ba9da Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Fri, 6 Dec 2019 00:11:31 -0500 Subject: [PATCH] tweak date format, add .gitignore and Makefile --- .gitignore | 1 + Makefile | 21 +++++++++++++++++++++ haunt.scm | 2 +- 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 .gitignore create mode 100644 Makefile diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..45ddf0a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +site/ diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..35f5ebb --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +BASE_DIR = $(CURDIR) +OUT_DIR = $(BASE_DIR)/site + +RSYNC_PARAMS = --exclude-from='.rsync-exclude' --delete -avzP + +SSH_USER = amin@shemshak.org +SSH_DEST = /var/www/bandali.eu.org/ + +all: build + +build: + haunt build + +watch: build + haunt serve --watch + +deploy: + rsync $(RSYNC_PARAMS) $(OUT_DIR) $(SSH_USER):$(SSH_DEST) + +clean: + [ ! -d $(OUT_DIR) ] || rm -rf $(OUT_DIR) diff --git a/haunt.scm b/haunt.scm index c5e13e7..eebcb13 100644 --- a/haunt.scm +++ b/haunt.scm @@ -17,7 +17,7 @@ (define my-url (string-append (symbol->string my-scheme) "://" my-domain)) -(define my-date-format "~B ~d, ~Y") +(define my-date-format "~B ~e, ~Y") (define license-page-title "Licensing Information") (define (stylesheet name) -- 2.20.1