From 51265f08cb9b19ebb01375d05057fdbc338b6355 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Thu, 12 Dec 2024 17:07:16 +0800 Subject: add build for rss feeds --- www/Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'www/Makefile') diff --git a/www/Makefile b/www/Makefile index 699abb2..d54081b 100644 --- a/www/Makefile +++ b/www/Makefile @@ -4,10 +4,15 @@ ROOT_DIR := $(dir $(realpath $(lastword $(MAKEFILE_LIST)))) # build html files for public/ build: cd $(ROOT_DIR) - @input_dir=~/log/public \ - output_dir=/srv/http \ - scripts/build.sh + export input_dir=~/log/public + export output_dir=/srv/http + @scripts/build.sh # Migrage frontmatter from '---' to HTML comment '' frontmatter: find content -type f -name '*.md' | xargs sed -i ':frontmatter { 1s/^---//; 1!b}; /^---/ {1b frontmatter}' + +rss: + cd /srv/rss + export LIST=~/log/public/links/rss.list + $(ROOT_DIR)/scripts/update-feeds.sh -- cgit v1.2.3-70-g09d2