Skip to content

Commit 33fca8e

Browse files
committed
fix highlighting of diataxis categories
1 parent 708c9c0 commit 33fca8e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

_templates/postcard_categories.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ <h3>
5050
<div class="container sd-fs-6 sd-font-weight-bold">
5151
<div class="row border-top border-bottom">
5252
{% set t_bool = "tutorial" in post.category|map('string') %}
53-
<div class="col {{ setcolorclass(t_bool) }}"><a href="{{ pathtocategory('tutorial') }}">Tutorial</a></div>
53+
<div class="col"><a class="{{ setcolorclass(t_bool) }}" href="{{ pathtocategory('tutorial') }}">Tutorial</a></div>
5454
{% set h_bool = "how-to" in post.category|map('string') %}
55-
<div class="col {{ setcolorclass(h_bool) }}"><a href="{{ pathtocategory('how-to') }}">How-to</a></div>
55+
<div class="col"><a class="{{ setcolorclass(h_bool) }}" href="{{ pathtocategory('how-to') }}">How-to</a></div>
5656
<div class="w-100"></div>
5757
{% set e_bool = "explanation" in post.category|map('string') %}
58-
<div class="col {{ setcolorclass(e_bool) }}"><a href="{{ pathtocategory('explanation') }}">Explanation</a></div>
58+
<div class="col"><a class="{{ setcolorclass(e_bool) }}" href="{{ pathtocategory('explanation') }}">Explanation</a></div>
5959
{% set r_bool = "reference" in post.category|map('string') %}
60-
<div class="col {{ setcolorclass(r_bool) }}"><a href="{{ pathtocategory('reference') }}">Reference</a></div>
60+
<div class="col"><a class="{{ setcolorclass(r_bool) }}" href="{{ pathtocategory('reference') }}">Reference</a></div>
6161
</div>
6262
</div>
6363

0 commit comments

Comments
 (0)