From 47fe10e00a76bb9d5f60758b24231135e20906bf Mon Sep 17 00:00:00 2001 From: alex Date: Sun, 15 Feb 2026 20:16:44 +0100 Subject: Migrate to coppewebite --- blog/build.sh | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100755 blog/build.sh (limited to 'blog/build.sh') diff --git a/blog/build.sh b/blog/build.sh new file mode 100755 index 00000000..27371f6c --- /dev/null +++ b/blog/build.sh @@ -0,0 +1,32 @@ +#!/bin/sh + +set -ue + +TARGET=$1 +HERE=$(pwd) + +rm -rf $TARGET +cp -a content/ $TARGET + +echo Converting gmi to html... + +cd $TARGET +find . -name '*.gmi' -print0 | xargs -0 coppewebite-to-html --css $HERE/style.css + +echo Generating index... +cat >index.gmi <>index.gmi + +echo Generating RSS... +coppewebite-to-rss index.rss + +echo Converting index to HTML... +coppewebite-to-html index.gmi --feed-title "El blog es mío" --feed-href index.rss --css $HERE/style.css + +echo Done -- cgit v1.2.3