Compare commits

..

No commits in common. "9836cd5cd73b1c920b21f705dcd04fd5279a5361" and "9948cd85ae539995868a45558a3058ba5a2e8b48" have entirely different histories.

View File

@ -9,23 +9,19 @@ def create_rss():
<rss version="2.0"> <rss version="2.0">
<channel> <channel>
<title>{config.site_name}</title> <title>{config.site_name}</title>
<link>{config.site_url}</link> <link>{config.site_url}</title>
<description>{config.site_description}</description> <description>{config.site_description}</description>
<pubDate>{datetime.now().strftime("%a, %d %b %Y %H:%M:%S %z")}</pubDate> <pubDate>{datetime.now().strftime("%a, %d %b %Y %H:%M:%S %z")}</pubDate>
<lastBuildDate>{datetime.now().strftime("%a, %d %b %Y %H:%M:%S %z")}</lastBuildDate> <lastBuildDate>{datetime.now().strftime("%a, %d %b %Y %H:%M:%S %z")}</lastBuildDate>
''' '''
for current_post_index in range(len(posts.posts)-1,-1,-1): for current_post_index in range(len(posts.posts)):
file_content += f''' file_content += f'''
<item> <item>
<title>{posts.posts[current_post_index]["title"]}</title> <title>{posts.posts[current_post_index]["title"]}</title>
<link>{config.site_url}/post/{current_post_index}.{config.file_extension}</link> <link>{config.site_url}/post/{current_post_index}.{config.file_extension}</link>
<description>{posts.posts[current_post_index]["content"]}</description> <description>{posts.posts[current_post_index]["content"]}</descriptiont>
<pubDate> <pubDate>{posts.posts[current_post_index]["pubdate"]}</pubDate>
{datetime.strptime(posts.posts[current_post_index]["pubdate"],"%d%m%YZ%H%M%ST").strftime("%a, %d %b %Y %H:%M:%S %z")} <editDate>{posts.posts[current_post_index]["editdate"]}</editDate>
</pubDate>
<editDate>
{datetime.strptime(posts.posts[current_post_index]["editdate"],"%d%m%YZ%H%M%ST").strftime("%a, %d %b %Y %H:%M:%S %z")}
</editDate>
</item>''' </item>'''
file_content += ''' file_content += '''
</channel> </channel>