From 808bf6f8d3c3878c38722d6afe899c7c57413830 Mon Sep 17 00:00:00 2001 From: deadvey Date: Fri, 30 May 2025 20:22:30 +0100 Subject: [PATCH] finalised the rss blog creation system --- .parse_post.py.swo | Bin 0 -> 12288 bytes create_feeds.py | 14 +++++++++----- 2 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 .parse_post.py.swo diff --git a/.parse_post.py.swo b/.parse_post.py.swo new file mode 100644 index 0000000000000000000000000000000000000000..efcca6ddce4d3a1b53b3521dbd2db79bc910a7d9 GIT binary patch literal 12288 zcmeI2&ubGw6vtnS7k|`>p1f_hEF@4it%6{|lL{5AhyD<1Ez30fHd)O6U}gd-A$s@f z#ec&e|AC?>MZud#ubw=3_RZ|ZrY31h>!t7pzM0MB{rt@25Hh=q5AUryH~l4`aS7n} z^m6mnxwp{lO+z9&W_997FpR}SD}bjIu-0g0jRwkEE~LUB&y@D_y(2iY2@_xfCnPWf z*RL%tnjrJ;oO9*!<_Y7mI}>06On?b60Vco%m;e)C0;h?9&ZpoR6+B%QeYKpY{+Y|S zJTU<#zyz286JP>NfC(@GCcp%k025#Wr;vaM0oKj~d?uOy|NFoHf6W4XBYh-&AiW?x zA>AOIAw9ncFiZMA1JEPQk$zqPcu#sqdP90mdP#arnkW6B9A8Oa%6y+pP998v2`~XB zzyz286JP>NfC(Ivz*zu?hD6<#snbLeqO>c;qjRfV^CjjjQOAnw?YRq18pRD? z#TtVURb9rpjeZxDlr+T1DXs_?rB{lnx_qERbA7m2 zFi+H;y-&Q~+ylzdRwzwHMI)o_R>ss)c0bx_bBvQoSnKxF_WVBEC~jeZ9gV3PAUitt z{V}nPb**b&gE$SbbG+!cDY}gj3N5x>+IuQWyE}&=x=TJ}jyg`zS6b5XNU%Z=m4Qff z5nLN13bo*Rp_h1DkGvIc)mz_itHvv`UgcpkmO+%sMCj^asqY*mb>80n|Cu)qg3_^W zncnPI!n8en;?~KdY|nC0n4=Urllx8q)hS9( {config.site_name} - {config.site_url} + {config.site_url} {config.site_description} {datetime.now().strftime("%a, %d %b %Y %H:%M:%S %z")} {datetime.now().strftime("%a, %d %b %Y %H:%M:%S %z")} ''' - for current_post_index in range(len(posts.posts)): + for current_post_index in range(len(posts.posts)-1,-1,-1): file_content += f''' {posts.posts[current_post_index]["title"]} {config.site_url}/post/{current_post_index}.{config.file_extension} - {posts.posts[current_post_index]["content"]} - {posts.posts[current_post_index]["pubdate"]} - {posts.posts[current_post_index]["editdate"]} + {posts.posts[current_post_index]["content"]} + + {datetime.strptime(posts.posts[current_post_index]["pubdate"],"%d%m%YZ%H%M%ST").strftime("%a, %d %b %Y %H:%M:%S %z")} + + + {datetime.strptime(posts.posts[current_post_index]["editdate"],"%d%m%YZ%H%M%ST").strftime("%a, %d %b %Y %H:%M:%S %z")} + ''' file_content += '''