From 20dbe662b04c184a72efce52e1973d6777fe71c3 Mon Sep 17 00:00:00 2001 From: rattatwinko Date: Fri, 26 Sep 2025 23:19:28 +0200 Subject: [PATCH] updated styling. + syntax highlighter with prism.js trough a CDN + some better styling in general with CSS (now the body md gets placed in a div which you can modify) + first attempt on lazyloading with js for non lazyloadable things --- PyPost.py | 18 +++- css/main.css | 222 +++++++++++++++++++++++++++++++++++---------- js/post/lazyimg.js | 54 +++++++++++ 3 files changed, 243 insertions(+), 51 deletions(-) create mode 100644 js/post/lazyimg.js diff --git a/PyPost.py b/PyPost.py index 882b5bf..899b895 100644 --- a/PyPost.py +++ b/PyPost.py @@ -123,6 +123,19 @@ def render_markdown(md_path: Path): + + + + + + + + + + + + + @@ -136,7 +149,10 @@ def render_markdown(md_path: Path): write_img
Written @{time.asctime(time.localtime())}

- {html_body} +
+ + {html_body} +