about summary refs log tree commit diff homepage
path: root/utils.jl
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2021-11-14 14:40:04 +0700
committerNguyễn Gia Phong <mcsinyx@disroot.org>2021-11-14 14:40:04 +0700
commit789398fabdae29116cca5e9da42b34dbb6d81705 (patch)
tree27464008691a2100ab737282b0e7003ba7124346 /utils.jl
parenta1195ebf022cb72e8e49c2e248ce18b7f3db7425 (diff)
downloadsite-789398fabdae29116cca5e9da42b34dbb6d81705.tar.gz
Fix deployment
Diffstat (limited to 'utils.jl')
-rw-r--r--utils.jl4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils.jl b/utils.jl
index 0569335..86b16c5 100644
--- a/utils.jl
+++ b/utils.jl
@@ -1,5 +1,9 @@
 using Printf
 
+function hfun_author_date()
+  return readchomp(`git log -1 --date=short --format=%ad $(locvar(:fd_rpath))`)
+end
+
 function hfun_abslink(args)
   path = args[1]
   return @sprintf("<a href=/%s>%s</a>", path, pagevar(path, "title"))