mirror of
https://forgejo.ellis.link/continuwuation/continuwuity/
synced 2026-07-18 15:26:23 +00:00
chore: Rename option index_page_allow_indexing to allow_web_indexing
This commit is contained in:
@@ -1802,7 +1802,7 @@
|
||||
# Allow or disallow search engine crawling by adding
|
||||
# `<meta name="robots" content="noindex" />` to the index page.
|
||||
#
|
||||
#index_page_allow_indexing = false
|
||||
#allow_web_indexing = false
|
||||
|
||||
[global.tls]
|
||||
|
||||
|
||||
@@ -2098,7 +2098,7 @@ pub struct Config {
|
||||
///
|
||||
/// default: false
|
||||
#[serde(default)]
|
||||
pub index_page_allow_indexing: bool,
|
||||
pub allow_web_indexing: bool,
|
||||
|
||||
/// display: nested
|
||||
#[serde(default)]
|
||||
|
||||
@@ -9,7 +9,7 @@ pub(crate) struct TemplateContext {
|
||||
impl From<&crate::State> for TemplateContext {
|
||||
fn from(state: &crate::State) -> Self {
|
||||
Self {
|
||||
allow_indexing: state.config.index_page_allow_indexing,
|
||||
allow_indexing: state.config.allow_web_indexing,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user