blob: 9d7958eaa2729a3f5ecf45ba4998dba44b112341 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
m4_define(ARTICLE, ‘‘li .article {
a href="$1" $2 __FILE_CREATE_DATA($1)
}’’)
m4_define(__FILE_CREATE_DATA, ‘‘
m4_define(‘‘__DT’’, m4_esyscmd(
git log --follow --pretty='format:%cI' $(dirname m4___file__)/$1/index.gsp \
| tail --lines=1
))
m4_ifelse(__DT, ,
span {-No date yet…},
time datetime="__DT" {=
m4_esyscmd(date --date='__DT' '+%-d of %B %Y' \
| ordinal --positions=1)
}
)
’’)
|