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