aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Stevens <nilix@nilfm.cc>2022-02-12 19:47:58 -0700
committerDerek Stevens <nilix@nilfm.cc>2022-02-12 19:47:58 -0700
commit439619fd297237592815b8f6dbc0e6564fd88af0 (patch)
tree34ae80c3ce4cad7d25a621174b4e12ef54f49f13
parent13bd6311982a59e1e13830ffa97e4a054ee795af (diff)
use time tag for publish date
-rw-r--r--README.md3
-rw-r--r--main.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/README.md b/README.md
index 440fe21..95c515f 100644
--- a/README.md
+++ b/README.md
@@ -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
diff --git a/main.c b/main.c
index 49cade3..039b8dd 100644
--- a/main.c
+++ b/main.c
@@ -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;
}