Fixed broken RSS feed URL when no articles are present
This commit is contained in:
parent
7064a4c098
commit
419220c6c9
1 changed files with 4 additions and 1 deletions
|
@ -101,7 +101,10 @@ def rss_route():
|
|||
link=config.link,
|
||||
categories=','.join(config.categories),
|
||||
language=config.language,
|
||||
last_pub_date=pages[0][1]['published'].strftime('%a, %d %b %Y %H:%M:%S GMT'),
|
||||
last_pub_date=(
|
||||
pages[0][1]['published'].strftime('%a, %d %b %Y %H:%M:%S GMT')
|
||||
if pages else ''
|
||||
),
|
||||
items='\n\n'.join([
|
||||
'''
|
||||
<item>
|
||||
|
|
Loading…
Reference in a new issue