Skip to content

Commit ec9f1ab

Browse files
committed
add check_file for categories and covert them to links.
1 parent ea1d152 commit ec9f1ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

templates/blog-post.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ <h2 class="mb-0">{{ this.title }}</h2>
1010
<p class="meta mt-0 mb-0"><span class="text-muted">Categories: </span>
1111
{% if this.categories|length %}
1212
{% for category in this.categories %}
13-
<strong>{{ category }}</strong>{{ "," if not loop.last }}
13+
{{ check_file('content' + this.parent.parent.path + '/categories/' + category + '/contents.lr') }}
14+
<a href=" {{ this.parent.parent.path + '/categories/' + category }} ">{{ category }}</a>{{ "," if not loop.last }}
1415
{% endfor %}
1516
{% else %}
1617
none

0 commit comments

Comments
 (0)