From 536c8101c5c1304c260f188fac73dea2e1217d99 Mon Sep 17 00:00:00 2001 From: Christophe HENRY Date: Tue, 23 Aug 2022 10:49:19 +0200 Subject: [PATCH 1/2] Updates CHANGELOG and index.gmi --- CHANGELOG.gmi | 17 +++++++++++++++++ index.gmi | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.gmi b/CHANGELOG.gmi index a15a7cd..a1ee0f9 100644 --- a/CHANGELOG.gmi +++ b/CHANGELOG.gmi @@ -4,6 +4,23 @@ All notable changes to this project will be documented in this file. => https://keepachangelog.com/en/1.0.0/ The format is based on keep a Changelog. => https://semver.org/spec/v2.0.0.html And this project adheres to Semantic Versioning. +## [Unreleased] v2 +* cgi-bin? Handle user input +* Page caching: don’t generate twice an unmodified file. + +## [Unreleased] v1 + +### Security +∅ + +### Development +* Proxy: https:/​/thewebsite.tld/htmgem/proxy/[gemini:/​/]capsule.tld/path/file.gmi + +### User interface +* Images: click to load and display. +* Be able to change the page style on the top bar. +* Be able to change the font size. + ## [1.5.0] - 2022-08-23 * Adds the Lagrange style, thanks to Eric * Adds circumlunar css diff --git a/index.gmi b/index.gmi index 13b6ac5..738b3e6 100644 --- a/index.gmi +++ b/index.gmi @@ -1,6 +1,6 @@ ``` __ __ __ ______ -|\ \ |\ \ |\ \ /\ \ v1.5.0 +|\ \ |\ \ |\ \ /\ \ v1.5.0+ | ▓▓ | ▓▓_| ▓▓_ ______ ____ | ▓▓▓▓▓▓\ | ▓▓__| ▓▓ ▓▓ \ |\ \ \| ▓▓ __\▓▓/\ \| \ \ | ▓▓ ▓▓\▓▓▓▓▓▓ | ▓▓▓▓▓▓\▓▓▓▓\ ▓▓| \ ▓▓▓▓▓▓\ ▓▓▓▓▓▓\▓▓▓▓\ From 511abab032a93f0e8e48d1a334367c80eee8f123 Mon Sep 17 00:00:00 2001 From: Christophe HENRY Date: Thu, 27 Oct 2022 23:29:18 +0200 Subject: [PATCH 2/2] Fixes a bug on CSS when hosted on filesystem root --- index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/index.php b/index.php index c0b9a8b..2088147 100644 --- a/index.php +++ b/index.php @@ -122,6 +122,7 @@ if (empty($style)) { $gt_html->addCss($php_self_dir.DEFAULT_CSS); } else { $style = preg_replace("/,/", "/", $style); + if ("/" == $php_self_dir) $php_self_dir = ""; # dirname() never use a final slash except for the root $gt_html->addCss("$php_self_dir/css/$style"); }