From b1df4ce0edd78e53f84fea1db8e4fe52cde8dfb7 Mon Sep 17 00:00:00 2001 From: trisua Date: Fri, 25 Jul 2025 20:53:01 -0400 Subject: [PATCH] fix: option_disable_search_engine --- app/public/style.css | 3 ++- src/model.rs | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app/public/style.css b/app/public/style.css index c5c8218..0be8b47 100644 --- a/app/public/style.css +++ b/app/public/style.css @@ -425,7 +425,8 @@ hr { border-right: 0; } -hr.margin { +hr.margin, +.container hr { margin: var(--pad-4) 0; } diff --git a/src/model.rs b/src/model.rs index ab8c369..8babf56 100644 --- a/src/model.rs +++ b/src/model.rs @@ -92,7 +92,7 @@ pub struct EntryMetadata { /// If views are counted and shown for this entry. #[serde(default, alias = "OPTION_DISABLE_VIEWS")] pub option_disable_views: bool, - /// If this entry shows up in search engines. + /// Hides this entry for search results. #[serde(default, alias = "OPTION_DISABLE_SEARCH_ENGINE")] pub option_disable_search_engine: bool, /// The password that is required to view this entry. @@ -485,6 +485,10 @@ impl EntryMetadata { )); } + if self.option_disable_search_engine { + output.push_str(""); + } + output }