|
11 | 11 | {% endif %} |
12 | 12 | {%- endmacro -%} |
13 | 13 |
|
14 | | - |
15 | | -{%- macro category_item(name, icon, active) -%} |
| 14 | +{%- macro category_item(name, active) -%} |
16 | 15 | <a href="{{ pathtocategory(name) }}" class="{{ setcolorclass(active) }}" title="{{ name }}"> |
17 | | - <span class="fas {{ icon }}"></span> |
18 | | - <label class="sr-only">{{ name }}</label> |
19 | | - </a> |
| 16 | + <b>{{ name }}</b> |
| 17 | +</a> |
20 | 18 | {%- endmacro -%} |
21 | 19 |
|
22 | 20 | <!-- {% set post = "" %} --> |
|
33 | 31 | {% set b_bool = "beginner" in post.category|map('string') %} |
34 | 32 | {% set a_bool = "advanced" in post.category|map('string') %} |
35 | 33 | <div class="container"> |
36 | | - <div class="row"> |
| 34 | + <div class="row sd-fs-6"> |
37 | 35 | <div class="col"> |
38 | | - {{ category_item("beginner", "fa-crow", b_bool) }} |
| 36 | + {{ category_item("beginner", b_bool) }} |
39 | 37 | </div> |
40 | 38 | <div class="col"> |
41 | | - {{ category_item("intermediate", "fa-dove", i_bool) }} |
| 39 | + {{ category_item("intermediate", i_bool) }} |
42 | 40 | </div> |
43 | 41 | <div class="col"> |
44 | | - {{ category_item("advanced", "fa-dragon", a_bool) }} |
| 42 | + {{ category_item("advanced", a_bool) }} |
45 | 43 | </div> |
46 | 44 | </div> |
47 | 45 | </div> |
48 | | - |
49 | | - <!-- diataxis type categories --> |
50 | | - <div class="container sd-fs-6 sd-font-weight-bold"> |
51 | | - <div class="row border-top border-bottom"> |
52 | | - {% set t_bool = "tutorial" in post.category|map('string') %} |
53 | | - <div class="col"><a class="{{ setcolorclass(t_bool) }}" href="{{ pathtocategory('tutorial') }}">Tutorial</a></div> |
54 | | - {% set h_bool = "how-to" in post.category|map('string') %} |
55 | | - <div class="col"><a class="{{ setcolorclass(h_bool) }}" href="{{ pathtocategory('how-to') }}">How-to</a></div> |
56 | | - <div class="w-100"></div> |
57 | | - {% set e_bool = "explanation" in post.category|map('string') %} |
58 | | - <div class="col"><a class="{{ setcolorclass(e_bool) }}" href="{{ pathtocategory('explanation') }}">Explanation</a></div> |
59 | | - {% set r_bool = "reference" in post.category|map('string') %} |
60 | | - <div class="col"><a class="{{ setcolorclass(r_bool) }}" href="{{ pathtocategory('reference') }}">Reference</a></div> |
61 | | - </div> |
62 | | - </div> |
63 | | - |
64 | 46 | </div> |
0 commit comments