Remove duplicate filter
This commit is contained in:
parent
e62d62b82f
commit
cf0fc64bd4
3 changed files with 1 additions and 7 deletions
|
@ -98,5 +98,4 @@ JINJA_FILTERS = {
|
|||
"datetime": filters.format_datetime,
|
||||
"category_find": filters.category_find,
|
||||
"limit": filters.limit,
|
||||
"format_title": filters.format_title
|
||||
}
|
||||
|
|
|
@ -19,8 +19,3 @@ def limit(line, length):
|
|||
return " ".join(line.split(" ")[:length]) + '...'
|
||||
elif isinstance(line, list):
|
||||
return line[:length]
|
||||
|
||||
|
||||
def format_title(value):
|
||||
space_split = " ".join(value.split("-"))
|
||||
return space_split.title()
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<div class="container">
|
||||
<div class="row">
|
||||
<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">
|
||||
</div>
|
||||
</div>
|
||||
|
|
Reference in a new issue