I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 63133d53 authored by str4d's avatar str4d
Browse files

Convert underscores to spaces when using blog entry slugs as link text

parent 416cf769
No related branches found
No related tags found
No related merge requests found
......@@ -310,7 +310,8 @@ def blog_index(page=0):
entries= []
for slug in slugs:
date = get_date_from_slug(slug)
title = slug.rsplit('/', 1)[1]
titlepart = slug.rsplit('/', 1)[1]
title = ' '.join(titlepart.split('_'))
entries.append((slug, date, title))
return render_template('blog/index.html', entries=entries)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment