cripslock

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit a4c465e3917f2d4c07ef4b927763cdb2f0bc37f9
parent 4ff634f53f5aa4533edbd2d923c6663a92fef410
Author: Daniel Barlow <dan@telent.net>
Date:   Fri,  8 Aug 2025 22:18:44 +0100

fix floating images

Diffstat:
Mmain.fnl | 4++--
Msite.fnl | 2+-
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/main.fnl b/main.fnl @@ -83,7 +83,7 @@ <link href=\"/news.rss\" rel=\"alternate\" title=\"RSS\" type=\"application/rss+xml\"><title>%s @ telent</title> <script src=\"/static/boxy.js\" ></script> <style> -img.floated { width: 40%%; float: right; border: 1px #555 solid; background-color: #eee; padding: 2px; } +img.floated { width: 40%%; float: right; clear: right; border: 1px #555 solid; background-color: #eee; padding: 2px; } </style> </head> <body> @@ -95,7 +95,7 @@ img.floated { width: 40%%; float: right; border: 1px #555 solid; background-colo (fn page-footer [stream] (stream:write_chunk - "<footer><div>Powered by <a href=\"https://gti.telent.net/dan/cripslock\">cripslock</a>. Copyright &copy; 2001-2025 Daniel Barlow</div></footer></body></html>")) + "<footer style=\"margin-top: 1em; clear: both;\"/><div>Powered by <a href=\"https://gti.telent.net/dan/cripslock\">cripslock</a>. Copyright &copy; 2001-2025 Daniel Barlow</div></footer></body></html>")) (fn month-name [m] (. ["Jan" "Feb" "Mar" "Apr" "May" "Jun" diff --git a/site.fnl b/site.fnl @@ -65,7 +65,7 @@ (fn post-header [post stream] (stream:write (string.format - "<div class=\"entry\"> + "<div style=\"clear: both\" class=\"entry\"> <h1 class=\"title\">%s<span class=\"permalink\"><a href=%q>#</a></span></h1> <h2 class=\"date\">%s</h2> "