From 0fedbc5a60e6bb791c16401db73e0c712951ebfc Mon Sep 17 00:00:00 2001 From: rhetenor Date: Mon, 4 May 2026 21:58:16 +0200 Subject: [PATCH] create gemini files --- .gitignore | 1 + Makefile | 15 ++++++++++----- src/pages/blog.html | 10 +++++----- 3 files changed, 16 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index aeea121..8dd6081 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ dist +dist_gemini build .idea diff --git a/Makefile b/Makefile index 257e048..ded21a8 100644 --- a/Makefile +++ b/Makefile @@ -11,17 +11,21 @@ BUILD_DIR = build PAGES = $(notdir $(wildcard $(PAGES_DIR)/*.html)) BLOG_PAGES = $(wildcard $(BLOG_DIR)/*.md) TARGETS = $(addprefix $(DIST_DIR)/,$(PAGES)) -GEMINI_TARGETS = $(addprefix $(GEMINI_DIST_DIR)/,$(patsubst %.html, %.md, $(PAGES))) +GEMINI_TARGETS = $(addprefix $(GEMINI_DIST_DIR)/,$(patsubst %.html, %.gem, $(filter-out blog.html, $(PAGES)))) -all: $(PAGES_DIR)/blog.html $(TARGETS) +all: $(PAGES_DIR)/blog.html $(TARGETS) gemini mkdir_gemini: mkdir -p $(GEMINI_DIST_DIR) + mkdir -p $(GEMINI_DIST_DIR)/blog -$(GEMINI_DIST_DIR)/%.md: $(DIST_DIR)/%.html - pandoc -f html -t markdown $(DIST_DIR)/$*.html -o $(GEMINI_DIST_DIR)/$*.md +$(GEMINI_DIST_DIR)/%.gem: $(DIST_DIR)/%.html | mkdir_gemini + pandoc -f html -t markdown $(DIST_DIR)/$*.html | md2gemini > $(GEMINI_DIST_DIR)/$*.gem -gemini: all $(GEMINI_TARGETS) | mkdir_gemini +gemini_blog: | mkdir_gemini + find $(BLOG_DIR) -iname "*.md" -exec bash -c 'md2gemini < {} > $(GEMINI_DIST_DIR)/blog/`basename -s .md {}`.gem' \; + +gemini: $(TARGETS) $(GEMINI_TARGETS) gemini_blog watch: find ./$(SRC_DIR) -iname '*.html' -o -name "*.css" | entr -d make -f ./Makefile ; @@ -49,3 +53,4 @@ clean: rm -rf $(DIST_DIR) rm -rf $(BUILD_DIR) rm -rf $(PAGES_DIR)/blog.html + rm -rf $(GEMINI_DIST_DIR) diff --git a/src/pages/blog.html b/src/pages/blog.html index e7839fc..44e3861 100644 --- a/src/pages/blog.html +++ b/src/pages/blog.html @@ -8,16 +8,16 @@ website.

Motivation

The motivation came of course from frustration with modern sites and a bit of nostalgia. But mainly I wanted the now() -and the about() pages. They provide me with -a public place to document what I’m on and what I believe and give me a -correctiv. I can’t remember where I read about it the first time, but I +and the about() pages. They provide me with a +public place to document what I’m on and what I believe and give me a +corrective. I can’t remember where I read about it the first time, but I thought the idea was neat. Especially as more of a private person, it motivates me to keep going with things when I imagine people reading this.

The design of this page is as bad as it is, because for once, it was the style at the time (be happy I don’t include a -<marquee> tag. After all. Why not.) and secondly: I -just suck at it. Deal with it :)

+<marquee> tag. Worst loss of the net…) and secondly: +I just suck at it. Deal with it :)

Having programmed some time with modern JS/TS frameworks I’m a stark oppponent of this whole technology stack. It just adds - layers and layers - of - complexity over complexity - nobody ever got any chance to