diff --git a/.parse_post.py.swo b/.parse_post.py.swo new file mode 100644 index 0000000..efcca6d Binary files /dev/null and b/.parse_post.py.swo differ diff --git a/create_feeds.py b/create_feeds.py index 95508e4..5a76dff 100644 --- a/create_feeds.py +++ b/create_feeds.py @@ -9,19 +9,23 @@ def create_rss(): {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 += '''