diff options
author | Derek Stevens <nilix@nilfm.cc> | 2022-02-12 19:47:58 -0700 |
---|---|---|
committer | Derek Stevens <nilix@nilfm.cc> | 2022-02-12 19:47:58 -0700 |
commit | 439619fd297237592815b8f6dbc0e6564fd88af0 (patch) | |
tree | 34ae80c3ce4cad7d25a621174b4e12ef54f49f13 | |
parent | 13bd6311982a59e1e13830ffa97e4a054ee795af (diff) |
use time tag for publish date
-rw-r--r-- | README.md | 3 | ||||
-rw-r--r-- | main.c | 4 |
2 files changed, 5 insertions, 2 deletions
@@ -86,6 +86,9 @@ There is a markup language which makes writing long blog posts, memex entries, e // shorthand for level 4 heading {.heading text} + +// shorthand for publish date (renders as <time class='publish-date'>) +{+2022-02-22} ``` # configuration @@ -285,9 +285,9 @@ int fpol(FILE* f, Lexicon* l, char* s) { } int fppublish(FILE* f, char* s) { - fputs("<div class='timestamp'>", f); + fputs("<time class='publish-date'>", f); fputs(s, f); - fputs("</div>", f); + fputs("</time>", f); return 1; } |