use time tag for publish date
This commit is contained in:
parent
13bd631198
commit
439619fd29
2 changed files with 5 additions and 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
|
// 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
4
main.c
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue