cld-ssg

The static site generator (to be) used for hellocld.com
git clone git://git.hellocld.com/cld-ssg
Log | Files | Refs | README

commit 89cf18a245f5dbe2843d7ad834841052d9844de5
parent 5540f83c5f80cd5c5007d11871a72d4fdf1cf82a
Author: Christopher Ray Langford <chris@hellocld.com>
Date:   Thu,  3 Oct 2019 16:05:31 -0400

Fixed day specification in post date

Diffstat:
Mfiles/style.css | 7+++++++
Mmain.c | 2+-
2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/files/style.css b/files/style.css @@ -101,6 +101,13 @@ nav li a:hover { background-color: #d0c3b4; } +article .postdate { + font-family: 'junicodeitaliccondensed'; + font-size: 1.2em; + margin: 0; + padding: 0; +} + article { padding: 0.5em; } diff --git a/main.c b/main.c @@ -202,7 +202,7 @@ int insert_post_time(struct cmark_node *root, struct tm *time) cmark_node *t_date_block = cmark_node_new(CMARK_NODE_HTML_BLOCK); /* Create the date string */ char timebuf[MAX_URL_CHARS]; - strftime(timebuf, MAX_URL_CHARS, "%A, %B %d, %Y", time); + strftime(timebuf, MAX_URL_CHARS, "%A, %B %e, %Y", time); sprintf(buf, "<p class=\"postdate\">%s</p>", timebuf); if(!cmark_node_set_literal(t_date_block, buf)) return -1;