From deb506fb1064d29b17f4c761966ddd4f8e9de479 Mon Sep 17 00:00:00 2001 From: Thomas Letan Date: Thu, 18 May 2023 19:22:08 +0200 Subject: Various tweaks to improve the website --- scripts/md-render.js | 3 --- site/index.md | 4 ++-- style.css | 27 ++++++++++++++++++++++++--- templates/index.xml | 2 ++ templates/main.html | 2 +- 5 files changed, 29 insertions(+), 9 deletions(-) diff --git a/scripts/md-render.js b/scripts/md-render.js index 2be0c32..7f08af8 100755 --- a/scripts/md-render.js +++ b/scripts/md-render.js @@ -81,9 +81,6 @@ fs.readFile(path, 'utf8', (err, data) => { } } - const now = new Date(); - process.stdout.write(span(`${icon('circle-arrow')} Generated on ${datetime(now, 'generated')}`, 'footnote-p full-only narrow')); - process.stdout.write(''); if (series) { diff --git a/site/index.md b/site/index.md index 7b43d35..84aaaff 100644 --- a/site/index.md +++ b/site/index.md @@ -8,11 +8,11 @@ abstract: | # Hi 👋 -My name is Thomas Letan, and this is my little corner of the Internet. +Welcome to my little corner of the Internet. You will find it dusty more often than not, but it’s been there for quite a while now, and its contents might be of interest for you. If that is the case, -I’m thrilled. +I’m thrilled! ## Latest Posts diff --git a/style.css b/style.css index f2986fb..66221a1 100644 --- a/style.css +++ b/style.css @@ -38,7 +38,7 @@ html { } body { - font-family: Inter, sans-serif; + font-family: Inter, Roboto, sans-serif; line-height: 1.8; max-width: var(--body-width); text-align: justify; @@ -78,11 +78,11 @@ figcaption p { /* See {{Note: width}} */ @media (min-width: 82rem) { .fullwidth, figure { - margin-left: calc(-1 * (var(--margin-width) + var(--gutter-width))); + /*margin-left: calc(-1 * (var(--margin-width) + var(--gutter-width)));*/ } figure, figcaption, .fullwidth { - width: var(--body-width); + /*width: var(--body-width);*/ } @@ -400,3 +400,24 @@ th { height: 2em; padding: 0 1em; } + +.running-container { + text-align: center; +} + +.running-container .kilometer { + width: 2em; + height: 2em; + margin: .2em; + display: inline-block; + border-radius: .5em; +} + +.kilometer.race { + box-shadow: 0 0 2px 2px gold; +} + +.running-container p { + text-align: justify; + font-size: smaller; +} diff --git a/templates/index.xml b/templates/index.xml index ecf618e..4dc3bba 100644 --- a/templates/index.xml +++ b/templates/index.xml @@ -9,6 +9,7 @@ {% for article in contents %} + {% if article.date %} {{ article.title | striptags }} {{ base }}{{ article.url }} @@ -20,6 +21,7 @@ {% endif %} + {% endif %} {% endfor %} diff --git a/templates/main.html b/templates/main.html index 3f5cc04..db272a6 100644 --- a/templates/main.html +++ b/templates/main.html @@ -19,7 +19,7 @@ lthms' avatar, a hand drawing looking person, wearing a headset, close to a window on a raining night

- Hi, I’m lthms (he/him). + Hi, I’m Thomas Letan (lthms) (he/him).

-- cgit v1.2.3