Skip to content

Commit bebcc71

Browse files
committed
Updated category styling.
1 parent 7fea066 commit bebcc71

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

templates/blog-post.html

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,18 @@ <h2 class="mb-0">{{ this.title }}</h2>
66
<p class="meta text-muted mt-0">by <a href="/blog/authors/{{ this.author }}">{{ this.author }}</a>
77
on {{ this.pub_date|dateformat('EEEE, yyyy ''MMMM d') }}</p>
88
<div class="body">{{ this.body }}</div>
9-
<hr>
10-
<p class="meta mt-0 mb-0"><span class="text-muted">Categories: </span>
11-
{% if this.categories|length %}
12-
{% for category in this.categories %}
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 }}
15-
{% endfor %}
16-
{% else %}
17-
none
18-
{% endif %}</p>
9+
<div class="card bg-light">
10+
<div class="card-body p-2">
11+
<p class="meta my-0"><span class="mr-2"><strong>Categories:</strong></span>
12+
{% if this.categories|length %}
13+
{% for category in this.categories %}
14+
{{ check_file('content' + this.parent.parent.path + '/categories/' + category + '/contents.lr') }}
15+
<a href=" {{ this.parent.parent.path + '/categories/' + category }} ">{{ category }}</a>{{ "," if not loop.last }}
16+
{% endfor %}
17+
{% else %}
18+
none
19+
{% endif %}
20+
</p>
21+
</div>
22+
</div>
1923
{% endblock %}

0 commit comments

Comments
 (0)