From b9ff44e4e100cdaca6176a8d87fa7b1b38705572 Mon Sep 17 00:00:00 2001 From: Michal Szczepanski Date: Mon, 12 Jun 2023 18:50:03 +0200 Subject: [PATCH] fix: feed.xml generation --- lib/generator/rss.py | 7 +------ requirements.txt | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/lib/generator/rss.py b/lib/generator/rss.py index d036218..16df372 100644 --- a/lib/generator/rss.py +++ b/lib/generator/rss.py @@ -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} {url} - -{content} - {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, diff --git a/requirements.txt b/requirements.txt index 545ae74..1caa3ee 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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