From cf0fc64bd40564bf009ac3bdd486839f39f5bfb8 Mon Sep 17 00:00:00 2001 From: TheOrangeOne Date: Fri, 26 Aug 2016 22:19:55 +0100 Subject: [PATCH] Remove duplicate filter --- pelicanconf.py | 1 - plugins/filters.py | 5 ----- theme/templates/category.html | 2 +- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/pelicanconf.py b/pelicanconf.py index e94ad35..e880f4e 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -98,5 +98,4 @@ JINJA_FILTERS = { "datetime": filters.format_datetime, "category_find": filters.category_find, "limit": filters.limit, - "format_title": filters.format_title } diff --git a/plugins/filters.py b/plugins/filters.py index 12292ec..2950233 100644 --- a/plugins/filters.py +++ b/plugins/filters.py @@ -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() diff --git a/theme/templates/category.html b/theme/templates/category.html index 8b4f178..2fd4adf 100644 --- a/theme/templates/category.html +++ b/theme/templates/category.html @@ -13,7 +13,7 @@
-

{{ category.name|format_title }}

+

{{ category.name }}