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:
entry.content = None
content += u'''<h1 style="page-break-before: always">{}</h1>
<div class="_parsed-content">{}</div>'''.format(entry.title, entry.content)
content += u'''
<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 = {
'entry_id': entry.id,
@ -183,7 +186,7 @@ class RssUpdates(HttpRequest):
<title>{title}</title>
<style>{style}</style>
</head>
<body>{{content}}</body>
<body>{content}</body>
</html>
'''.format(title=self.title, style=style, content=content)