provide author information for the feed and entries

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
This commit is contained in:
2023-12-30 15:25:46 -06:00
parent b26975421c
commit 575e2ad387
3 changed files with 15 additions and 1 deletions

View File

@@ -34,6 +34,7 @@ def serve_feed(feed_type):
fg = FeedGenerator()
fg.id(f'https://{app.config["DOMAIN_NAME"]}/')
fg.title(f'{app.config["TITLE_SUFFIX"]}')
fg.author(app.config["AUTHOR"])
fg.link(href=f'https://{app.config["DOMAIN_NAME"]}/feed/{feed_type}', rel='self')
fg.link(href=f'https://{app.config["DOMAIN_NAME"]}', rel='alternate')
fg.subtitle(f"Blog posts and other dated materials from {app.config['TITLE_SUFFIX']}")
@@ -55,6 +56,7 @@ def serve_feed(feed_type):
fe = fg.add_entry()
fe.id(_generate_feed_id(feed_entry_path))
fe.title(page_name if page_name else page_title)
fe.author(app.config["AUTHOR"])
fe.link(href=link)
fe.content(content, type='html')