1
Fork 0

Remove duplicate filter

This commit is contained in:
Jake Howard 2016-08-26 22:19:55 +01:00
parent e62d62b82f
commit cf0fc64bd4
Signed by: jake
GPG key ID: 57AFB45680EDD477
3 changed files with 1 additions and 7 deletions

View file

@ -98,5 +98,4 @@ JINJA_FILTERS = {
"datetime": filters.format_datetime, "datetime": filters.format_datetime,
"category_find": filters.category_find, "category_find": filters.category_find,
"limit": filters.limit, "limit": filters.limit,
"format_title": filters.format_title
} }

View file

@ -19,8 +19,3 @@ def limit(line, length):
return " ".join(line.split(" ")[:length]) + '...' return " ".join(line.split(" ")[:length]) + '...'
elif isinstance(line, list): elif isinstance(line, list):
return line[:length] return line[:length]
def format_title(value):
space_split = " ".join(value.split("-"))
return space_split.title()

View file

@ -13,7 +13,7 @@
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="col-lg-8 col-lg-offset-2 text-center"> <div class="col-lg-8 col-lg-offset-2 text-center">
<h1 class="section-heading">{{ category.name|format_title }}</h1> <h1 class="section-heading">{{ category.name }}</h1>
<hr class="light"> <hr class="light">
</div> </div>
</div> </div>