about summary refs log tree commit diff homepage
path: root/utils.jl
diff options
context:
space:
mode:
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"))