fix: feed.xml generation

This commit is contained in:
Michal Szczepanski 2023-06-12 18:50:03 +02:00
parent 3c5f841e7f
commit b9ff44e4e1
2 changed files with 2 additions and 7 deletions

@ -1,8 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import urllib.parse
import lib.helper
from datetime import datetime
import lib.helper
from lib.generator import md
@ -34,9 +33,6 @@ def generate(posts, config, output, generator='vane.pl', generator_url='https://
<published>{published}</published>
<updated>{published}</updated>
<id>{url}</id>
<content type="html" xml:base="{url}">
{content}
</content>
<author>
<name>{author}</name>
</author>
@ -47,7 +43,6 @@ def generate(posts, config, output, generator='vane.pl', generator_url='https://
""".format(**{
'url': config['url']+'/'+p.url,
'title': p.title,
'content': urllib.parse.quote(p.content),
'published': p.date.isoformat(),
'category': category,
'author': p.author,

@ -1,7 +1,7 @@
csscompressor==0.9.5
Jinja2==3.1.2
libsass==0.22.0
liquidpy==0.7.6
liquidpy==0.0.7
Markdown==3.4.1
MarkupSafe==2.1.1
Pygments==2.13.0