Also include the link in an RSS feed digest

This commit is contained in:
Fabio Manganiello 2020-09-05 01:39:16 +02:00
parent 8a1f49a906
commit dc254d6474

View file

@ -140,8 +140,11 @@ class RssUpdates(HttpRequest):
else: else:
entry.content = None entry.content = None
content += u'''<h1 style="page-break-before: always">{}</h1> content += u'''
<div class="_parsed-content">{}</div>'''.format(entry.title, entry.content) <h1 style="page-break-before: always">
<a href="{}" target="_blank">{}</a>
</h1>
<div class="_parsed-content">{}</div>'''.format(entry.title, entry.link, entry.content)
e = { e = {
'entry_id': entry.id, 'entry_id': entry.id,
@ -183,7 +186,7 @@ class RssUpdates(HttpRequest):
<title>{title}</title> <title>{title}</title>
<style>{style}</style> <style>{style}</style>
</head> </head>
<body>{{content}}</body> <body>{content}</body>
</html> </html>
'''.format(title=self.title, style=style, content=content) '''.format(title=self.title, style=style, content=content)