summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--include/lib.m43
1 files changed, 2 insertions, 1 deletions
diff --git a/include/lib.m4 b/include/lib.m4
index 24a911f..345e670 100644
--- a/include/lib.m4
+++ b/include/lib.m4
@@ -24,7 +24,8 @@ m4_define(m4_abbr, ⁨@abbr .m4_translit($1, A-Z2, a-zt) {-$1}⁩)
m4_define(m4_file_create_date, ⁨m4_esyscmd(
git log --reverse --pretty='format:%cI' $(dirname m4___file__)/$1/index.gsp \
| head -n1 \
- | xargs date +'%-d %B %Y' -d
+ | ifne xargs date +'%-d %B %Y' -d \
+ | ifne -n echo 'No date yet…'
)⁩)
m4_define(m4_article, ⁨li .article {