From 90032a4471091cdde7d6a7d78e0eada13f05f521 Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Fri, 29 Dec 2023 23:06:09 +0800 Subject: [PATCH] :bug: Fix: fix collection aside style --- assets/css/_core/_layout.scss | 4 ++++ layouts/posts/single.html | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/assets/css/_core/_layout.scss b/assets/css/_core/_layout.scss index 656a5559..ac175662 100644 --- a/assets/css/_core/_layout.scss +++ b/assets/css/_core/_layout.scss @@ -11,6 +11,10 @@ aside { flex: 1; padding: 0.5rem; + + &:not(:has(~ aside)) { + display: none; + } } &.container { diff --git a/layouts/posts/single.html b/layouts/posts/single.html index d3c3d1c0..3a24a7de 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -8,7 +8,7 @@ {{- $toc := .Scratch.Get "toc" -}} {{- $tocEmpty := eq .TableOfContents `` -}} -