use time tag for publish date

This commit is contained in:
Iris Lightshard 2022-02-12 19:47:58 -07:00
parent 13bd631198
commit 439619fd29
Signed by: Iris Lightshard
GPG key ID: 3B7FBC22144E6398
2 changed files with 5 additions and 2 deletions

View file

@ -86,6 +86,9 @@ There is a markup language which makes writing long blog posts, memex entries, e
// shorthand for level 4 heading // shorthand for level 4 heading
{.heading text} {.heading text}
// shorthand for publish date (renders as <time class='publish-date'>)
{+2022-02-22}
``` ```
# configuration # configuration

4
main.c
View file

@ -285,9 +285,9 @@ int fpol(FILE* f, Lexicon* l, char* s) {
} }
int fppublish(FILE* f, char* s) { int fppublish(FILE* f, char* s) {
fputs("<div class='timestamp'>", f); fputs("<time class='publish-date'>", f);
fputs(s, f); fputs(s, f);
fputs("</div>", f); fputs("</time>", f);
return 1; return 1;
} }