aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Dessaux2021-03-22 22:06:21 +0100
committerJulien Dessaux2021-03-22 22:06:21 +0100
commite960153727b71da8f7dcb300db1f49775fd64e4c (patch)
treeeab2cf76a334288ef23b2ccaf97f028061671bad
parentContinued importing some old wiki content (diff)
downloadwww-e960153727b71da8f7dcb300db1f49775fd64e4c.tar.gz
www-e960153727b71da8f7dcb300db1f49775fd64e4c.tar.bz2
www-e960153727b71da8f7dcb300db1f49775fd64e4c.zip
Added a hugo markdown shortcode to automatically calculate my age
Diffstat (limited to '')
-rw-r--r--content/docs/about-me/_index.md2
-rw-r--r--layouts/shortcodes/age.html1
2 files changed, 2 insertions, 1 deletions
diff --git a/content/docs/about-me/_index.md b/content/docs/about-me/_index.md
index fe2c202..d0c2bd3 100644
--- a/content/docs/about-me/_index.md
+++ b/content/docs/about-me/_index.md
@@ -5,7 +5,7 @@ description: Information about the author of this website
## Who am I?
-Hello, and thanks for asking! My name is Julien Dessaux, and I am a 34 years old guy working in IT. Adyxax is the nickname I use on IRC, github, etc.
+Hello, and thanks for asking! My name is Julien Dessaux, and I am a {{< age >}} years old guy working in IT. Adyxax is the nickname I use on IRC, github, etc.
## Online presence
diff --git a/layouts/shortcodes/age.html b/layouts/shortcodes/age.html
new file mode 100644
index 0000000..fcf6d13
--- /dev/null
+++ b/layouts/shortcodes/age.html
@@ -0,0 +1 @@
+{{ div (sub now.Unix 493473600 ) 31556926 }}