Skip to content

Commit c0508b5

Browse files
committed
feat(ai-notice): Hide empty AI notice elements
Add CSS rule to hide .ai-notice elements when empty to prevent unwanted visual gaps. Enhances UI consistency and avoids displaying superfluous containers. Also update post metadata to indicate AI-generated content, improving transparency for readers.
1 parent 023122b commit c0508b5

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

assets/style.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -832,6 +832,10 @@ blockquote p {
832832

833833
/* -- AI Notice -- */
834834

835+
.ai-notice:empty {
836+
display: none;
837+
}
838+
835839
.ai-notice {
836840
margin: 1.5rem 0;
837841
padding: 0.875rem 1.25rem;

content/post/2026-04-16-zig-stm32f103-booting.smd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
.author = "maldus512 (翻译)",
55
.layout = "post.shtml",
66
.draft = false,
7+
.custom = {
8+
.ai_generated = true,
9+
},
710
---
811

912
> 原文:https://maldus512.medium.com/zig-bare-metal-programming-on-stm32f103-booting-up-b0ecdcf0de35

0 commit comments

Comments
 (0)