]> git.bts.cx Git - cx.git/commitdiff
Small fixes
authorBen Sherratt <redacted>
Fri, 3 Jul 2026 18:19:05 +0000 (19:19 +0100)
committerBen Sherratt <redacted>
Fri, 3 Jul 2026 18:19:05 +0000 (19:19 +0100)
cx/cx.php
public/design/css/style.css

index 35b2722d4c400e145697a0ff683ed5e4830f02c4..74bd42edd64130c4bb0357b770ea04a0658bcd3d 100644 (file)
--- a/cx/cx.php
+++ b/cx/cx.php
@@ -176,7 +176,7 @@ function cx_route($path) {
                        $page_id = cx_posts_find_page_id($slug);
                        if ($page_id) {
                                $template = 'post';
-                               $template_variables['post_id'] = cx_posts_find_page_id($slug);
+                               $template_variables['post_id'] = $page_id;
                        }
                }
 
@@ -187,7 +187,7 @@ function cx_route($path) {
                        $post_id = cx_posts_find_article_id($slug);
                        if ($post_id) {
                                $template = 'post';
-                               $template_variables['post_id'] = cx_posts_find_article_id($slug);
+                               $template_variables['post_id'] = $post_id;
                        }
                }
        }
index a5c06ec02b33420c6a10a5dd521e8d556529fcb8..1c70b7b026020d2d485a7261fceb96e44b882e2b 100644 (file)
@@ -153,7 +153,7 @@ article + article {
        padding-top: var(--layout-spacing);
 }
 
-article img {
+article img:not(a *) {
        display: block;
        width: 100%;
        aspect-ratio: 640 / 360;