summaryrefslogtreecommitdiffhomepage
path: root/www/Makefile
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2024-12-12 17:07:16 +0800
committerHsieh Chin Fan <pham@topo.tw>2024-12-12 17:07:16 +0800
commit51265f08cb9b19ebb01375d05057fdbc338b6355 (patch)
tree8f02e0c2cab0e0772655133cd67d221594753936 /www/Makefile
parent015923746c4d3db65cb7eef3327b34532a7c1ae9 (diff)
add build for rss feeds
Diffstat (limited to 'www/Makefile')
-rw-r--r--www/Makefile11
1 files changed, 8 insertions, 3 deletions
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))))
4# build html files for public/ 4# build html files for public/
5build: 5build:
6 cd $(ROOT_DIR) 6 cd $(ROOT_DIR)
7 @input_dir=~/log/public \ 7 export input_dir=~/log/public
8 output_dir=/srv/http \ 8 export output_dir=/srv/http
9 scripts/build.sh 9 @scripts/build.sh
10 10
11# Migrage frontmatter from '---' to HTML comment '<!-- -->' 11# Migrage frontmatter from '---' to HTML comment '<!-- -->'
12frontmatter: 12frontmatter:
13 find content -type f -name '*.md' | xargs sed -i ':frontmatter { 1s/^---/<!--/; 1!s/^---/-->/; 1!b}; /^---/ {1b frontmatter}' 13 find content -type f -name '*.md' | xargs sed -i ':frontmatter { 1s/^---/<!--/; 1!s/^---/-->/; 1!b}; /^---/ {1b frontmatter}'
14
15rss:
16 cd /srv/rss
17 export LIST=~/log/public/links/rss.list
18 $(ROOT_DIR)/scripts/update-feeds.sh