From b0524c148b80e4f07bceb74a0f320722221d5bfa Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Sun, 6 Dec 2020 18:26:32 +0100 Subject: Added rss generator --- generate | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'generate') diff --git a/generate b/generate index 1bea8d3..6bb22fb 100755 --- a/generate +++ b/generate @@ -36,6 +36,8 @@ base_template < school.template.html | base_template_link 'favicon.png' | base_template_link 'style.css' > school.html +cp rss.template.xml rss.xml + # Generate blog posts for post_path in "$blog_path"/*.md do @@ -53,6 +55,16 @@ do sed -i "// a\
  • $title
  • " index.html + post_date=$(date '+%a, %d %b %Y %H:%M:%S %z' -d "$(stat -c '%w' "$post_path")") + sed -i "// a\ + \ + $title \ + $post_date \ + https://cacharle.xyz/$post_dst_path \ + https://cacharle.xyz/$post_dst_path \ + Open this entry in your browser to see the content \ + " rss.xml + echo "Generated post at $post_dst_path" done -- cgit