site

A custom static site generator written in C.
git clone https://unitehenry.com/git/site.git
Log | Files | Refs | README

commit 3656da624e06ec6aae7d07bef04dbc207efa662f
parent ce7b5805a15a272a16c3a5e42169bfd0ec74a191
Author: Henry Unite <unitehenry@gmail.com>
Date:   Tue, 14 Apr 2026 05:46:08 +0000

feat: init rss script

Diffstat:
Ascripts/rss | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/scripts/rss b/scripts/rss @@ -0,0 +1,9 @@ +#!/bin/bash + +cat build/blog/index.html | htmlq -a id h2 | while read -r line; do + TITLE=$(cat build/blog/index.html | htmlq -t "#$line") + DATE=$(cat build/blog/index.html | htmlq -t "#$line + p") + DESCRIPTION=$(cat build/blog/index.html | htmlq -t "#$line + p + p") + SLUG=$(cat build/blog/index.html | htmlq -a href "#$line + p + p + p a") + CONTENT=$(cat "build/$SLUG.html" | htmlq main) # TODO: remove main tags +done