summaryrefslogtreecommitdiff
path: root/_pages/projects.md
diff options
context:
space:
mode:
authorKarl Hallsby <karl@hallsby.com>2021-10-03 00:35:46 -0500
committerKarl Hallsby <karl@hallsby.com>2021-10-03 02:16:55 -0500
commite2c06d2681e18946ab6c3e3e6075aed92a4d13be (patch)
treeb30dce94387f4717394277932f691519e0281c44 /_pages/projects.md
parenta10ad0a99ba6e44a35253c3bcaff80c90e99348e (diff)
Change to al-folio theme
Theme at: https://github.com/alshedivat/al-folio
Diffstat (limited to '_pages/projects.md')
-rw-r--r--_pages/projects.md57
1 files changed, 57 insertions, 0 deletions
diff --git a/_pages/projects.md b/_pages/projects.md
new file mode 100644
index 0000000..9308732
--- /dev/null
+++ b/_pages/projects.md
@@ -0,0 +1,57 @@
+---
+layout: page
+title: projects
+permalink: /projects/
+description: A growing collection of your cool projects.
+nav: true
+display_categories: [work, fun]
+horizontal: false
+---
+<div class="projects">
+ {% if site.enable_project_categories and page.display_categories %}
+ <!-- Display categorized projects -->
+ {% for category in page.display_categories %}
+ <h2 class="category">{{category}}</h2>
+ {% assign categorized_projects = site.projects | where: "category", category %}
+ {% assign sorted_projects = categorized_projects | sort: "importance" %}
+ <!-- Generate cards for each project -->
+ {% if page.horizontal %}
+ <div class="container">
+ <div class="row row-cols-2">
+ {% for project in sorted_projects %}
+ {% include projects_horizontal.html %}
+ {% endfor %}
+ </div>
+ </div>
+ {% else %}
+ <div class="grid">
+ {% for project in sorted_projects %}
+ {% include projects.html %}
+ {% endfor %}
+ </div>
+ {% endif %}
+ {% endfor %}
+
+ {% else %}
+ <!-- Display projects without categories -->
+ {% assign sorted_projects = site.projects | sort: "importance" %}
+ <!-- Generate cards for each project -->
+ {% if page.horizontal %}
+ <div class="container">
+ <div class="row row-cols-2">
+ {% for project in sorted_projects %}
+ {% include projects_horizontal.html %}
+ {% endfor %}
+ </div>
+ </div>
+ {% else %}
+ <div class="grid">
+ {% for project in sorted_projects %}
+ {% include projects.html %}
+ {% endfor %}
+ </div>
+ {% endif %}
+
+ {% endif %}
+
+</div>