From 43f092aeba8ff4b345efbfedece63cb437fc1518 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Thu, 12 Dec 2024 17:07:39 +0800 Subject: update --- www/scripts/build.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'www') diff --git a/www/scripts/build.sh b/www/scripts/build.sh index f5f50c9..e3757ac 100755 --- a/www/scripts/build.sh +++ b/www/scripts/build.sh @@ -195,6 +195,9 @@ for file in $files; do # make html file for draft h1="$(<<<"$content" get_frontmatter | sed -n 's/^title *//p')" comment="$(<<<"$content" get_frontmatter | sed -n 's/^comment *//p')" + + # add original content to $output_dir + # and generate html file with

echo "$content" \ | tee $output_dir/${file#${input_dir}/} \ | { [ -n "$h1" ] && echo "# $h1"; cat; } \ -- cgit v1.2.3-70-g09d2