Skip to content

Commit c0a2a97

Browse files
authored
Update about.liquid
1 parent d1eb6db commit c0a2a97

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

_layouts/about.liquid

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,66 @@ layout: default
111111
{% if site.newsletter.enabled and site.footer_fixed %}
112112
{% include scripts/newsletter.liquid center=true %}
113113
{% endif %}
114+
115+
116+
117+
<---!
118+
-->
119+
120+
121+
<div class="projects">
122+
{% if site.enable_project_categories and page.display_categories %}
123+
<!-- Display categorized projects -->
124+
{% for category in page.display_categories %}
125+
<a id="{{ category }}" href=".#{{ category }}">
126+
<h2 class="category">{{ category }}</h2>
127+
</a>
128+
{% assign categorized_projects = site.projects | where: "category", category %}
129+
{% assign sorted_projects = categorized_projects | sort: "importance" %}
130+
<!-- Generate cards for each project -->
131+
{% if page.horizontal %}
132+
<div class="container">
133+
<div class="row row-cols-1 row-cols-md-2">
134+
{% for project in sorted_projects %}
135+
{% include projects_horizontal.liquid %}
136+
{% endfor %}
137+
</div>
138+
</div>
139+
{% else %}
140+
<div class="row row-cols-1 row-cols-md-3">
141+
{% for project in sorted_projects %}
142+
{% include projects.liquid %}
143+
{% endfor %}
144+
</div>
145+
{% endif %}
146+
{% endfor %}
147+
148+
{% else %}
149+
150+
<!-- Display projects without categories -->
151+
152+
{% assign sorted_projects = site.projects | sort: "importance" %}
153+
154+
<!-- Generate cards for each project -->
155+
156+
{% if page.horizontal %}
157+
158+
<div class="container">
159+
<div class="row row-cols-1 row-cols-md-2">
160+
{% for project in sorted_projects %}
161+
{% include projects_horizontal.liquid %}
162+
{% endfor %}
163+
</div>
164+
</div>
165+
{% else %}
166+
<div class="row row-cols-1 row-cols-md-3">
167+
{% for project in sorted_projects %}
168+
{% include projects.liquid %}
169+
{% endfor %}
170+
</div>
171+
{% endif %}
172+
{% endif %}
173+
</div>
114174
</article>
115175
</div>
116176
<!-- </div> -->

0 commit comments

Comments
 (0)