@@ -9,49 +9,56 @@ horizontal: false
99---
1010
1111<!-- pages/projects.md -->
12- <div class =" members " >
13- {%- if site.enable_project_categories and page.display_categories %}
12+ <div class =" projects " >
13+ {% if site.enable_project_categories and page.display_categories %}
1414 <!-- Display categorized projects -->
15- {%- for category in page.display_categories %}
16- <h2 class =" category " >{{ category }}</h2 >
17- {%- assign categorized_projects = site.projects | where: "category", category -%}
18- {%- assign sorted_projects = categorized_projects | sort: "importance" %}
15+ {% for category in page.display_categories %}
16+ <a id =" {{ category }} " href =" .#{{ category }} " >
17+ <h2 class="category">{{ category }}</h2>
18+ </a >
19+ {% assign categorized_projects = site.projects | where: "category", category %}
20+ {% assign sorted_projects = categorized_projects | sort: "importance" %}
1921 <!-- Generate cards for each project -->
20- {% if page.horizontal - %}
22+ {% if page.horizontal %}
2123 <div class =" container " >
22- <div class="row row-cols-2">
23- {%- for project in sorted_projects - %}
24- {% include projects_horizontal.html %}
25- {%- endfor %}
24+ <div class="row row-cols-1 row-cols-md- 2">
25+ {% for project in sorted_projects %}
26+ {% include projects_horizontal.liquid %}
27+ {% endfor %}
2628 </div>
2729 </div >
28- {%- else - %}
29- <div class =" grid " >
30- {%- for project in sorted_projects - %}
31- {% include projects.html %}
32- {%- endfor %}
30+ {% else %}
31+ <div class =" row row-cols-1 row-cols-md-3 " >
32+ {% for project in sorted_projects %}
33+ {% include projects.liquid %}
34+ {% endfor %}
3335 </div >
34- {%- endif - %}
36+ {% endif %}
3537 {% endfor %}
3638
37- {%- else -%}
39+ {% else %}
40+
3841<!-- Display projects without categories -->
39- {%- assign sorted_projects = site.projects | sort: "importance" -%}
42+
43+ {% assign sorted_projects = site.projects | sort: "importance" %}
44+
4045 <!-- Generate cards for each project -->
41- {% if page.horizontal -%}
46+
47+ {% if page.horizontal %}
48+
4249 <div class =" container " >
43- <div class="row row-cols-2">
44- {%- for project in sorted_projects - %}
45- {% include projects_horizontal.html %}
46- {%- endfor %}
50+ <div class="row row-cols-1 row-cols-md- 2">
51+ {% for project in sorted_projects %}
52+ {% include projects_horizontal.liquid %}
53+ {% endfor %}
4754 </div>
4855 </div >
49- {%- else - %}
50- <div class =" grid " >
51- {%- for project in sorted_projects - %}
52- {% include projects.html %}
53- {%- endfor %}
56+ {% else %}
57+ <div class =" row row-cols-1 row-cols-md-3 " >
58+ {% for project in sorted_projects %}
59+ {% include projects.liquid %}
60+ {% endfor %}
5461 </div >
55- {%- endif - %}
56- {%- endif - %}
62+ {% endif %}
63+ {% endif %}
5764</div >
0 commit comments