Skip to content

Commit 40ea4d1

Browse files
committed
Blog themes: call category.url() as a function
1 parent b22a7d0 commit 40ea4d1

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

themes/blossom/content/post.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
{% endif %}
2525
</a>
2626
{% if module_enabled("categorize") and post.category is defined %}
27-
&bull; <a href="{{ post.category.url }}" rel="tag">{{ post.category.name | oneof("[Untitled]" | translate) }}</a>
27+
&bull; <a href="{{ post.category.url() }}" rel="tag">{{ post.category.name | oneof("[Untitled]" | translate) }}</a>
2828
{% endif %}
2929
{% if module_enabled("likes") %}
3030
{{ post.like_link ? "&bull; " ~ post.like_link : "" }}

themes/blossom/content/sidebar.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
<ul class="navigation sidebar categories" aria-labelledby="label_categories">
5353
{% for category in categorize %}
5454
<li>
55-
<a href="{{ category.url }}">{{ category.name | oneof("[Untitled]" | translate) }}</a>
55+
<a href="{{ category.url() }}">{{ category.name | oneof("[Untitled]" | translate) }}</a>
5656
</li>
5757
{% endfor %}
5858
</ul>

themes/sparrow/content/post.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
</a>
2626
{% if module_enabled("categorize") and post.category is defined %}
2727
&bull;
28-
<a class="category category_{{ post.category.id }}" href="{{ post.category.url }}" rel="tag">
28+
<a class="category category_{{ post.category.id }}" href="{{ post.category.url() }}" rel="tag">
2929
{{ post.category.name | oneof("[Untitled]" | translate) }}
3030
</a>
3131
{% endif %}

themes/topaz/content/post.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
{% endif %}
2525
</a>
2626
{% if module_enabled("categorize") and post.category is defined %}
27-
&bull; <a href="{{ post.category.url }}" rel="tag">{{ post.category.name | oneof("[Untitled]" | translate) }}</a>
27+
&bull; <a href="{{ post.category.url() }}" rel="tag">{{ post.category.name | oneof("[Untitled]" | translate) }}</a>
2828
{% endif %}
2929
{% if module_enabled("likes") %}
3030
{{ post.like_link ? "&bull; " ~ post.like_link : "" }}

themes/topaz/content/sidebar.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
<ul class="navigation sidebar categories" aria-labelledby="label_categories">
5353
{% for category in categorize %}
5454
<li>
55-
<a href="{{ category.url }}">{{ category.name | oneof("[Untitled]" | translate) }}</a>
55+
<a href="{{ category.url() }}">{{ category.name | oneof("[Untitled]" | translate) }}</a>
5656
</li>
5757
{% endfor %}
5858
</ul>

themes/umbra/content/post.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
{% endif %}
2525
</a>
2626
{% if module_enabled("categorize") and post.category is defined %}
27-
<a class="category category_{{ post.category.id }}" href="{{ post.category.url }}" rel="tag">{{ post.category.name | oneof("[Untitled]" | translate) }}</a>
27+
<a class="category category_{{ post.category.id }}" href="{{ post.category.url() }}" rel="tag">{{ post.category.name | oneof("[Untitled]" | translate) }}</a>
2828
{% endif %}
2929
{% if module_enabled("likes") %}
3030
{{ post.like_link ? "&bull; " ~ post.like_link : "" }}

themes/virgula/content/post.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
{% if module_enabled("categorize") and post.category is defined %}
1818
<span class="category">
1919
{% set category_name = post.category.name | oneof("[Untitled]" | translate) %}
20-
{% set category_link = '<a href="' ~ post.category.url ~ '" rel="tag">' ~ category_name ~ '</a>' %}
20+
{% set category_link = '<a href="' ~ post.category.url() ~ '" rel="tag">' ~ category_name ~ '</a>' %}
2121
{{ "Filed in %s." | translate | format(category_link) }}
2222
</span>
2323
{% endif %}

0 commit comments

Comments
 (0)