mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
fixed slug would not work
This commit is contained in:
parent
e91a47acbb
commit
4167087e38
1 changed files with 3 additions and 3 deletions
|
|
@ -21,10 +21,10 @@ def create_template(args):
|
|||
exit(error)
|
||||
|
||||
title = args.title.decode('utf-8')
|
||||
slug = slugify(title)
|
||||
slug = args.slug if args.slug else slugify(title)
|
||||
date = datetime.datetime.now().strftime("%Y-%m-%d %H:%M")
|
||||
categories = args.categories.split('\W+') if args.categories else None
|
||||
tags = args.tags.split('\W+') if args.tags else None
|
||||
categories = args.categories.split('\W+') if args.categories else ''
|
||||
tags = args.tags.split('\W+') if args.tags else ''
|
||||
|
||||
if (args.markup == 'markdown') or (args.markup == 'md') :
|
||||
ext = '.md'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue