generated from alshedivat/al-folio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
032600c
commit 281e0b8
Showing
1 changed file
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
--- | ||
layout: page | ||
title: projects | ||
permalink: /projects/ | ||
description: A growing collection of your cool projects. | ||
nav: true | ||
nav_order: 3 | ||
display_categories: [work, fun] | ||
horizontal: false | ||
--- | ||
|
||
<!-- pages/projects.md --> | ||
<div class="projects"> | ||
{% if site.enable_project_categories and page.display_categories %} | ||
<!-- Display categorized projects --> | ||
{% for category in page.display_categories %} | ||
<a id="{{ category }}" href=".#{{ category }}"> | ||
<h2 class="category">{{ category }}</h2> | ||
</a> | ||
{% 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-1 row-cols-md-2"> | ||
{% for project in sorted_projects %} | ||
{% include projects_horizontal.liquid %} | ||
{% endfor %} | ||
</div> | ||
</div> | ||
{% else %} | ||
<div class="row row-cols-1 row-cols-md-3"> | ||
{% for project in sorted_projects %} | ||
{% include projects.liquid %} | ||
{% 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-1 row-cols-md-2"> | ||
{% for project in sorted_projects %} | ||
{% include projects_horizontal.liquid %} | ||
{% endfor %} | ||
</div> | ||
</div> | ||
{% else %} | ||
<div class="row row-cols-1 row-cols-md-3"> | ||
{% for project in sorted_projects %} | ||
{% include projects.liquid %} | ||
{% endfor %} | ||
</div> | ||
{% endif %} | ||
{% endif %} | ||
</div> |