Skip to content

Commit f647cfa

Browse files
committed
Write episode files in build.sh
1 parent 1ea0c1a commit f647cfa

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

scripts/build.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,13 @@ for episode in $(echo "${episodes}" | jq -r '.collection[] | @base64'); do
2121
}
2222

2323
echo "* [$(_jq '.title')](https://spec.fm/podcasts/swift-unwrapped/$(_jq '.token'))" >> index.md
24+
25+
episode_file="$(_jq '.token').md"
26+
echo "layout: page" > "$episode_file"
27+
echo "title: \"$(_jq '.title')\"" >> "$episode_file"
28+
echo "permalink: /episodes/$(_jq '.token')/" >> "$episode_file"
29+
echo "" >> "$episode_file"
30+
echo "# $(_jq '.title')" >> "$episode_file"
31+
echo "" >> "$episode_file"
32+
echo "$(_jq '.long_description')" >> "$episode_file"
2433
done

0 commit comments

Comments
 (0)