summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2018-09-23 02:15:57 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2018-09-23 02:15:57 -0700
commit102b03ef3474e21cba164a6bcd8e950874cfef37 (patch)
tree607f07b3d5cfd0841d6343d6146ad66cf629bd05
parentd6cdea0624fe3da9f6de3ba73cb2ec3515633288 (diff)
downloadjournal-102b03ef3474e21cba164a6bcd8e950874cfef37.tar.gz
journal-102b03ef3474e21cba164a6bcd8e950874cfef37.tar.xz
bold dates via HTML for better rendering in links
-rw-r--r--journal.c2
-rw-r--r--style.css4
2 files changed, 1 insertions, 5 deletions
diff --git a/journal.c b/journal.c
index bc7aa3f..c2e6249 100644
--- a/journal.c
+++ b/journal.c
@@ -41,7 +41,7 @@ static void print_entry(char *path, char *ts)
struct tm tm;
strptime(ts, "%s", &tm);
printf(
- "<div class='entry'><p><span class='date'>%d/%02d/%02d</span>&emsp;",
+ "<div class='entry'><p><strong>%d/%02d/%02d</strong>&emsp;",
tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday);
for (int c = getc(f), nl = 0; c != EOF; c = getc(f)) {
diff --git a/style.css b/style.css
index e2797ce..465571a 100644
--- a/style.css
+++ b/style.css
@@ -25,7 +25,3 @@ h1 {
line-height: 1.4;
margin: 0.5em 0;
}
-
-.entry p .date {
- font-weight: bold;
-}