aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh15
1 files changed, 12 insertions, 3 deletions
diff --git a/build.sh b/build.sh
index 19653ff..4e18dbe 100755
--- a/build.sh
+++ b/build.sh
@@ -84,9 +84,6 @@ for i in *.md; do
if [ "$filename" == "index" ]; then
echo "[build] skipping index file for later..."
-
- cp "$i" ../../web/articles/
-
else
mkdir -p ../../web/articles/"$filename"/
@@ -139,6 +136,14 @@ for i in *.md; do
</article>
EOF
+ touch ../../tmp/articles/gen-articles-tmp-list.md
+ tee -a ../../tmp/articles/gen-articles-tmp-list.md > /dev/null << EOF
+
+## [$WEBMETA_TITLE]($filename)
+###### \`$WEBMETA_DATE\` by $WEBMETA_AUTH
+$WEBMETA_SUMMARY
+EOF
+
touch ../../tmp/articles/gen-articles-tmp-rss.xml
tee -a ../../tmp/articles/gen-articles-tmp-rss.xml > /dev/null << EOF
<item>
@@ -165,6 +170,10 @@ cat ./con/header.html \
./con/footer.html \
> ./web/articles/index.html
+cat ./src/articles/index.md \
+ ./tmp/articles/gen-articles-tmp-list.md \
+ > ./web/articles/index.md
+
cat ./con/rss-header.xml \
./tmp/articles/gen-articles-tmp-rss.xml \
./con/rss-footer.xml \