From 8a40b7c38579d3d32af07337f0fde97289b80b5d Mon Sep 17 00:00:00 2001 From: lemurianmage Date: Mon, 1 Dec 2025 19:38:08 +0100 Subject: add head.html --- build-site.el | 4 +++- head.html | 2 ++ post.sh | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 head.html 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 "") + 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 @@ + + 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" -- cgit v1.2.3