tweak date format, add .gitignore and Makefile
authorAmin Bandali <bandali@gnu.org>
Fri, 6 Dec 2019 05:11:31 +0000 (00:11 -0500)
committerAmin Bandali <bandali@gnu.org>
Fri, 6 Dec 2019 05:11:31 +0000 (00:11 -0500)
.gitignore [new file with mode: 0644]
Makefile [new file with mode: 0644]
haunt.scm

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..45ddf0a
--- /dev/null
@@ -0,0 +1 @@
+site/
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
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)
index c5e13e7..eebcb13 100644 (file)
--- 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)