aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build-site.el4
-rw-r--r--head.html2
-rwxr-xr-xpost.sh2
3 files changed, 6 insertions, 2 deletions
diff --git a/build-site.el b/build-site.el
index 35d55e6..c220824 100644
--- a/build-site.el
+++ b/build-site.el
@@ -3,7 +3,9 @@
(setq org-html-validation-link nil
org-html-head-include-scripts nil
org-html-head-include-default-style nil
- org-html-head-extra "<link rel=\"icon\" href=\"assets/favicon.ico\">")
+ org-html-head (with-temp-buffer
+ (insert-file-contents "head.html")
+ (buffer-string)))
(setq org-publish-project-alist
(list
diff --git a/head.html b/head.html
new file mode 100644
index 0000000..9270d24
--- /dev/null
+++ b/head.html
@@ -0,0 +1,2 @@
+<link rel="icon" href="assets/favicon.ico">
+<link rel="stylesheet" href="assets/stylesheet.css">
diff --git a/post.sh b/post.sh
index ca43302..5c5613e 100755
--- a/post.sh
+++ b/post.sh
@@ -2,5 +2,5 @@
./build.sh
tmpfile=$(mktemp)
tar -C public/ -cvz . > $tmpfile
+trap "rm $tmpfile" EXIT
curl --oauth2-bearer "$1" -Fcontent=@"$tmpfile" https://pages.sr.ht/publish/lemurianmage.srht.site
-rm "$tmpfile"