jekyll334 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/_layouts/project_list.html +26 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6cfa691dbe16ffbd1f479140b36a4fc3d9fa5e1e
|
4
|
+
data.tar.gz: 6b16c95ba2cbf4486b6d3120e21dfaed3ba4f660
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd2278261afe6437c7a50d91e487ff3eb631595c383b0c1ff1485c357d75a39ee912afbd08374259b175c606e45b834741233543065510f9f29049f0e2fa3dc8
|
7
|
+
data.tar.gz: 35bdd44d159a0d376d4a8dd306ec3ca39cb8b504d71ab63a88bb7ffeb45f96c2f69eb1887a5af9c888a7c5b0c48f24b3ea7ccddf70aa9891ecdcd2e3d96dc499
|
data/_layouts/project_list.html
CHANGED
@@ -2,7 +2,32 @@
|
|
2
2
|
layout: default
|
3
3
|
---
|
4
4
|
<section class="flex flex-wrap w-100">
|
5
|
-
{
|
5
|
+
{% assign items = site.projects | sort: 'date' | reverse %}
|
6
|
+
{% assign years = items | group_by_exp: "item", "item.date | date : '%Y'" %}
|
7
|
+
|
8
|
+
{%- for year in years -%}
|
9
|
+
<h2 class="h2 tl ph2 f3 w-100 black-50 bb">{{year.name}}</h2>
|
10
|
+
</article>
|
11
|
+
{%- for project in year.items -%}
|
12
|
+
<article class="fl w-100 w-50-m w-25-ns pa2-ns">
|
13
|
+
<div class="aspect-ratio aspect-ratio--1x1 z-1">
|
14
|
+
{%- assign thumbnail = project.thumbnail | default: "/assets/projects/no_thumbnail.png" -%}
|
15
|
+
<img style="background-image:url({{thumbnail | relative_url}});"
|
16
|
+
class="db bg-center cover aspect-ratio--object" />
|
17
|
+
</div>
|
18
|
+
<div class="ph2 ph0-ns pb3 db dim">
|
19
|
+
<a href="{{ project.url | relative_url}}" class="dim link">
|
20
|
+
<h3 class="f5 f4-ns mb0 black-90">{{project.title}}</h3>
|
21
|
+
<h3 class="f6 f5 fw4 mt2 black-60">{{project.subtitle}}</h3>
|
22
|
+
</a>
|
23
|
+
</div>
|
24
|
+
</article>
|
25
|
+
{%- endfor -%}
|
26
|
+
|
27
|
+
{%- endfor -%}
|
28
|
+
|
29
|
+
|
30
|
+
{%- for project in items -%}
|
6
31
|
|
7
32
|
<article class="fl w-100 w-50-m w-25-ns pa2-ns">
|
8
33
|
<div class="aspect-ratio aspect-ratio--1x1 z-1">
|