chore: Rename option index_page_allow_indexing to allow_web_indexing
This commit is contained in:
parent
4af4110f6d
commit
ca21a885d5
3 changed files with 3 additions and 3 deletions
|
|
@ -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]
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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)]
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue