Skip to content

Commit 68d9cde

Browse files
OriolAbriltwiecki
andauthored
change level category look (#610)
* change level category look * Change to names, remove diataxis. --------- Co-authored-by: Thomas Wiecki <[email protected]>
1 parent e2504aa commit 68d9cde

File tree

1 file changed

+7
-25
lines changed

1 file changed

+7
-25
lines changed

_templates/postcard_categories.html

Lines changed: 7 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,10 @@
1111
{% endif %}
1212
{%- endmacro -%}
1313

14-
15-
{%- macro category_item(name, icon, active) -%}
14+
{%- macro category_item(name, active) -%}
1615
<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>
2018
{%- endmacro -%}
2119

2220
<!-- {% set post = "" %} -->
@@ -33,32 +31,16 @@ <h3>
3331
{% set b_bool = "beginner" in post.category|map('string') %}
3432
{% set a_bool = "advanced" in post.category|map('string') %}
3533
<div class="container">
36-
<div class="row">
34+
<div class="row sd-fs-6">
3735
<div class="col">
38-
{{ category_item("beginner", "fa-crow", b_bool) }}
36+
{{ category_item("beginner", b_bool) }}
3937
</div>
4038
<div class="col">
41-
{{ category_item("intermediate", "fa-dove", i_bool) }}
39+
{{ category_item("intermediate", i_bool) }}
4240
</div>
4341
<div class="col">
44-
{{ category_item("advanced", "fa-dragon", a_bool) }}
42+
{{ category_item("advanced", a_bool) }}
4543
</div>
4644
</div>
4745
</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-
6446
</div>

0 commit comments

Comments
 (0)