mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +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)]
|
||||
|
||||
@@ -11,7 +11,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