chore: Rename option index_page_allow_indexing to allow_web_indexing

This commit is contained in:
theS1LV3R 2026-03-18 16:50:44 +01:00 committed by Ginger
parent 4af4110f6d
commit ca21a885d5
No known key found for this signature in database
3 changed files with 3 additions and 3 deletions

View file

@ -1802,7 +1802,7 @@
# Allow or disallow search engine crawling by adding # Allow or disallow search engine crawling by adding
# `<meta name="robots" content="noindex" />` to the index page. # `<meta name="robots" content="noindex" />` to the index page.
# #
#index_page_allow_indexing = false #allow_web_indexing = false
[global.tls] [global.tls]

View file

@ -2098,7 +2098,7 @@ pub struct Config {
/// ///
/// default: false /// default: false
#[serde(default)] #[serde(default)]
pub index_page_allow_indexing: bool, pub allow_web_indexing: bool,
/// display: nested /// display: nested
#[serde(default)] #[serde(default)]

View file

@ -11,7 +11,7 @@ pub(crate) struct TemplateContext {
impl From<&crate::State> for TemplateContext { impl From<&crate::State> for TemplateContext {
fn from(state: &crate::State) -> Self { fn from(state: &crate::State) -> Self {
Self { Self {
allow_indexing: state.config.index_page_allow_indexing, allow_indexing: state.config.allow_web_indexing,
} }
} }
} }