mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Use better titles than None for Tumblr posts without title
This commit is contained in:
parent
75263fa852
commit
241ac2400a
1 changed files with 1 additions and 1 deletions
|
|
@ -355,7 +355,7 @@ def tumblr2fields(api_key, blogname):
|
|||
posts = get_tumblr_posts(api_key, blogname, offset)
|
||||
while len(posts) > 0:
|
||||
for post in posts:
|
||||
title = post.get('title') or post.get('source_title')
|
||||
title = post.get('title') or post.get('source_title') or post.get('type').capitalize()
|
||||
slug = post.get('slug') or slugify(title)
|
||||
tags = post.get('tags')
|
||||
timestamp = post.get('timestamp')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue