summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authoruvok cheetah2025-06-22 14:28:33 +0200
committeruvok cheetah2025-06-22 14:28:33 +0200
commitc3e34ca596f0032e707d8563c33bbd7f736ed7ca (patch)
treed1189aac4b9339c106bebc5a0d647459c965a98b /Makefile
parentbaa5612f50704950d483af06bb92c9c8dd8b8ef8 (diff)
Prepare Gemini postings
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 8971d98..bb05be9 100644
--- a/Makefile
+++ b/Makefile
@@ -21,3 +21,20 @@ watch: clean
ipfs: clean
JEKYLL_ENV=ipfs bundle exec jekyll build
cd _site && cp all.html index.html && rm google* && sed -i -e 's|="/|="|g' *.html && tar cvf ../ipfs.tar $$(grep -L redirect *.html) assets index.html
+
+gemini: clean
+ mv _layouts _layouts.bak
+ mv _layouts.gemini _layouts
+ sed -i.bak -e '/import/ d' assets/main.scss
+ sed -i.bak -e '/seo/ d' _includes/head.html
+ cp _config.yml _config.yml.bak
+ awk '/pagination/ {replace=1;} /enabled/ && replace==1 {replace=0; print " enabled: false"; next;} {print;}' _config.yml > x
+ sed -i -e '/theme/ d' x
+ mv x _config.yml
+ JEKYLL_ENV=gemini bundle3.1 exec jekyll build
+ mv _config.yml.bak _config.yml
+ mv assets/main.scss.bak assets/main.scss
+ mv _includes/head.html.bak _includes/head.html
+ mv _layouts _layouts.gemini
+ mv _layouts.bak _layouts
+ rm -rf _site/category