|
|
@ -61,13 +61,20 @@ def create_frontmatter(entry): |
|
|
|
else: |
|
|
|
author = '' |
|
|
|
|
|
|
|
if 'tags' in entry: |
|
|
|
#TODO finish categories |
|
|
|
tags = [] |
|
|
|
for t in entry.tags: |
|
|
|
tags.append(t['term']) |
|
|
|
|
|
|
|
frontmatter = { |
|
|
|
'title':entry.title, |
|
|
|
'date': published.format(), |
|
|
|
'summary': '', |
|
|
|
'author': author, |
|
|
|
'original_link': entry.link, |
|
|
|
'feed_name': entry['feed_name'] |
|
|
|
'feed_name': entry['feed_name'], |
|
|
|
'tags': str(tags) |
|
|
|
} |
|
|
|
|
|
|
|
return frontmatter |
|
|
@ -198,7 +205,10 @@ for feed_url in feed_urls: |
|
|
|
if data: |
|
|
|
for entry in data.entries: |
|
|
|
# if 'tags' in entry: |
|
|
|
# print(entry.title, entry.tags) |
|
|
|
# for tag in entry.tags: |
|
|
|
# for x in ['lumbung.space', 'D15', 'lumbung']: |
|
|
|
# if x in tag['term']: |
|
|
|
# print(entry.title) |
|
|
|
entry['feed_name'] = feed_name |
|
|
|
|
|
|
|
post_name = slugify(entry.title) |
|
|
|