Added titleCase filter.
This is necessary for some book titles, like 1 and 2 Corinthians, since the existing capitalize filter would otherwise ignore the title casing on the book name.
This commit is contained in:
parent
b000665603
commit
8de8227bb3
3 changed files with 13 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ pagination:
|
|||
|
||||
{%- if item !== 'notes' -%}
|
||||
|
||||
<span class="category bg-{%- if post.data.scripture_category %}{{ post.data.scripture_category }} {%- else %}secondary {%- endif %} color-primary text-300">{{ item | capitalize }}</span>
|
||||
<span class="category bg-{%- if post.data.scripture_category %}{{ post.data.scripture_category }} {%- else %}secondary {%- endif %} color-primary text-300">{{ item | titleCase }}</span>
|
||||
|
||||
{%- endif -%}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue