tangled
alpha
login
or
join now
dunkirk.sh
/
zera
5
fork
atom
the home site for me: also iteration 3 or 4 of my site
5
fork
atom
overview
issues
pulls
pipelines
bug: fix age bug
Kieran Klukas
11 months ago
f6d0c855
4af8188a
+4
-4
2 changed files
expand all
collapse all
unified
split
content
_index.md
templates
shortcodes
age.md
+3
-3
content/_index.md
···
14
14
> init.ts
15
15
```ts
16
16
const kieran = {
17
17
-
name: "kieran klukas"
18
18
-
age: {{ age(length=2) }}
19
19
-
education: ["Homeschooled", "Dual Enrollment"]
17
17
+
name: "kieran klukas",
18
18
+
age: {{ age(length=2 comma=true) }}
19
19
+
education: ["Homeschooled", "Dual Enrollment"],
20
20
favFoods: ["lo mein", "bacon fried rice", "pretty much any meat"]
21
21
}
22
22
```
+1
-1
templates/shortcodes/age.md
···
1
1
-
{% set time = now() | date(format="%s") | int - 1209254400 %}{{ (time / 31536000) | round(method="floor", precision=length) }}
1
1
+
{% set time = now() | date(format="%s") | int - 1209254400 %}{{ (time / 31536000) | round(method="floor", precision=length) }}{% if comma %},{% endif %}