mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-04-05 20:17:53 +08:00
fix:修复备案号错误
This commit is contained in:
parent
2afc88c31f
commit
a9a4018711
@ -68,12 +68,8 @@ func (c *BaseController) Prepare() {
|
|||||||
c.Data[item.OptionName] = item.OptionValue
|
c.Data[item.OptionName] = item.OptionValue
|
||||||
c.Option[item.OptionName] = item.OptionValue
|
c.Option[item.OptionName] = item.OptionValue
|
||||||
|
|
||||||
if strings.EqualFold(item.OptionName, "ENABLE_ANONYMOUS") && item.OptionValue == "true" {
|
c.EnableAnonymous = strings.EqualFold(item.OptionName, "ENABLE_ANONYMOUS") && item.OptionValue == "true"
|
||||||
c.EnableAnonymous = true
|
c.EnableDocumentHistory = strings.EqualFold(item.OptionName, "ENABLE_DOCUMENT_HISTORY") && item.OptionValue == "true"
|
||||||
}
|
|
||||||
if strings.EqualFold(item.OptionName, "ENABLE_DOCUMENT_HISTORY") && item.OptionValue == "true" {
|
|
||||||
c.EnableDocumentHistory = true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
c.Data["HighlightStyle"] = beego.AppConfig.DefaultString("highlight_style","github")
|
c.Data["HighlightStyle"] = beego.AppConfig.DefaultString("highlight_style","github")
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
<span> · </span>
|
<span> · </span>
|
||||||
<span><a href="https://www.iminho.me/wiki/docs/mindoc/" target="_blank">使用手册</a></span>
|
<span><a href="https://www.iminho.me/wiki/docs/mindoc/" target="_blank">使用手册</a></span>
|
||||||
</div>
|
</div>
|
||||||
{{if ne .site_beian ""}}
|
{{if .site_beian}}
|
||||||
<div class="row text-center">
|
<div class="row text-center">
|
||||||
<a href="http://www.miitbeian.gov.cn" target="_blank">{{.site_beian}}</a>
|
<a href="http://www.miitbeian.gov.cn" target="_blank">{{.site_beian}}</a>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user