aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuchen Pei <me@ypei.me>2021-08-02 15:28:18 +1000
committerYuchen Pei <me@ypei.me>2021-08-02 15:28:18 +1000
commit74d21f35533e1c2b6ae9874735fa8a030247d3fa (patch)
tree53eebcf774824d18833ac8c6c9872a1aefebf7ac
parent74ca737a9629a58e8a3b5b877cc88d46c3de5558 (diff)
updated post-process to process the correct page
-rwxr-xr-xpost-process.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/post-process.sh b/post-process.sh
index 896a081..1056d7d 100755
--- a/post-process.sh
+++ b/post-process.sh
@@ -11,9 +11,9 @@ for post in $(ls site/posts); do
sed -i 's/href="file:\/\//href="/g' site/posts/$post
done
-for page in $(ls site/pages); do
- sed -i 's/src="file:\/\//src="/g' site/pages/$page
- sed -i 's/href="file:\/\//href="/g' site/pages/$page
+for page in $(ls site); do
+ sed -i 's/src="file:\/\//src="/g' site/$page
+ sed -i 's/href="file:\/\//href="/g' site/$page
done
# fix email address.