forked from 00dani/lemoncurry
Render the entry content to HTML when syndicating it as Atom or RSS
This commit is contained in:
parent
730a2bcb9d
commit
5555cdfd1e
1 changed files with 2 additions and 1 deletions
|
@ -3,6 +3,7 @@ from django.contrib.syndication.views import Feed
|
||||||
from django.urls import reverse
|
from django.urls import reverse
|
||||||
from django.utils.feedgenerator import Atom1Feed
|
from django.utils.feedgenerator import Atom1Feed
|
||||||
from urllib.parse import urljoin
|
from urllib.parse import urljoin
|
||||||
|
from lemoncurry.templatetags.markdown import markdown
|
||||||
from .models import Entry
|
from .models import Entry
|
||||||
|
|
||||||
|
|
||||||
|
@ -11,7 +12,7 @@ class EntriesFeed(Feed):
|
||||||
return entry.title
|
return entry.title
|
||||||
|
|
||||||
def item_description(self, entry):
|
def item_description(self, entry):
|
||||||
return entry.content
|
return markdown(entry.content)
|
||||||
|
|
||||||
def item_author_name(self, entry):
|
def item_author_name(self, entry):
|
||||||
return entry.author.name
|
return entry.author.name
|
||||||
|
|
Loading…
Reference in a new issue