mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
WP import: Category is categories[0]
Same behaviour as --dir-cat Fix part of #2239
This commit is contained in:
parent
56a483475b
commit
d6050d829b
1 changed files with 2 additions and 2 deletions
|
|
@ -523,7 +523,7 @@ def build_header(title, date, author, categories, tags, slug,
|
|||
if author:
|
||||
header += ':author: %s\n' % author
|
||||
if categories:
|
||||
header += ':category: %s\n' % ', '.join(categories)
|
||||
header += ':category: %s\n' % categories[0]
|
||||
if tags:
|
||||
header += ':tags: %s\n' % ', '.join(tags)
|
||||
if slug:
|
||||
|
|
@ -545,7 +545,7 @@ def build_markdown_header(title, date, author, categories, tags,
|
|||
if author:
|
||||
header += 'Author: %s\n' % author
|
||||
if categories:
|
||||
header += 'Category: %s\n' % ', '.join(categories)
|
||||
header += 'Category: %s\n' % categories[0]
|
||||
if tags:
|
||||
header += 'Tags: %s\n' % ', '.join(tags)
|
||||
if slug:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue