From 078612400d287e74d5d6826c7bace924b1a64492 Mon Sep 17 00:00:00 2001 From: Pagwin Date: Wed, 23 Oct 2024 21:20:35 -0400 Subject: [PATCH] minor styling changes, tags done correctly and horizontal line after title --- TODO | 6 ++++-- posts/HackBU2024.md | 2 +- static/css/default.css | 10 ++++++++++ templates/default.html | 4 +++- templates/feed.xml | 9 ++++----- templates/post.html | 12 ++++++++---- 6 files changed, 30 insertions(+), 13 deletions(-) diff --git a/TODO b/TODO index fb0dec9..40b5519 100644 --- a/TODO +++ b/TODO @@ -2,10 +2,12 @@ get RSS feed up and running handle dark/light theming correctly (https://www.joshwcomeau.com/react/dark-mode/) seems useful for that -get code blocks working properly, namely get them colored (probably with https://highlightjs.org/), maybe add a red border, consider https://github.com/highlightjs/highlight.js?tab=readme-ov-file#using-web-workers of course this assumes that can't be fixed in typst due to pandoc +get code blocks working properly, namely get them colored (probably with https://highlightjs.org/), maybe add a red border, consider https://github.com/highlightjs/highlight.js?tab=readme-ov-file#using-web-workers ico? ~~add CSS styling rule(s) so headers don't get link colors~~ -center titles properly +~~center titles properly~~ + +center content box properly diff --git a/posts/HackBU2024.md b/posts/HackBU2024.md index 06378b6..08a183f 100644 --- a/posts/HackBU2024.md +++ b/posts/HackBU2024.md @@ -96,7 +96,7 @@ services: - backend ``` and here's an nginx config -``` +```nginx worker_processes 1; events { diff --git a/static/css/default.css b/static/css/default.css index 1b459ca..9dad34d 100644 --- a/static/css/default.css +++ b/static/css/default.css @@ -87,3 +87,13 @@ a:hover { border: 0.5em solid var(--content-border-color); border-radius: 0.5em; } + +pre { + min-height: 2em; + max-width: calc(100% - 2em); + width: fit-content; + overflow:scroll; + background: #444; + border-radius: 0.5em; + padding: 1em; +} diff --git a/templates/default.html b/templates/default.html index 4b58d06..a39bdc8 100644 --- a/templates/default.html +++ b/templates/default.html @@ -16,7 +16,9 @@ Links
-

{{{title}}}

+

+ {{{title}}}

{{{content}}}