mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
fix #293: pelican-importer for Wordpress doesn't add tags
This commit is contained in:
parent
9f03a407cb
commit
2db2b671f2
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ def wp2fields(xml):
|
|||
categories = [cat.contents[0] for cat in item.fetch(domain='category')]
|
||||
# caturl = [cat['nicename'] for cat in item.fetch(domain='category')]
|
||||
|
||||
tags = [tag.contents[0].title() for tag in item.fetch(domain='tag', nicename=None)]
|
||||
tags = [tag.contents[0] for tag in item.fetch(domain='post_tag')]
|
||||
|
||||
yield (title, content, filename, date, author, categories, tags, "html")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue