mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-09-19 18:22:10 +08:00
修复BUG
This commit is contained in:
@@ -43,7 +43,7 @@ func (c *BaseController) Prepare() {
|
|||||||
c.Option = make(map[string]string, len(options))
|
c.Option = make(map[string]string, len(options))
|
||||||
for _, item := range options {
|
for _, item := range options {
|
||||||
c.Data[item.OptionName] = item.OptionValue
|
c.Data[item.OptionName] = item.OptionValue
|
||||||
c.Option[item.OptionName] = string(blackfriday.MarkdownBasic([]byte(item.OptionValue)))
|
c.Option[item.OptionName] = item.OptionValue
|
||||||
|
|
||||||
if strings.EqualFold(item.OptionName, "ENABLE_ANONYMOUS") && item.OptionValue == "true" {
|
if strings.EqualFold(item.OptionName, "ENABLE_ANONYMOUS") && item.OptionValue == "true" {
|
||||||
c.EnableAnonymous = true
|
c.EnableAnonymous = true
|
||||||
|
@@ -49,7 +49,7 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label>网站描述</label>
|
<label>网站描述</label>
|
||||||
<textarea rows="3" class="form-control" name="site_description" style="height: 90px" placeholder="网站描述">{{.site_description.OptionValue}}</textarea>
|
<textarea rows="3" class="form-control" name="site_description" style="height: 90px" placeholder="网站描述">{{.site_description.OptionValue}}</textarea>
|
||||||
<p class="text">描述信息不超过500个字符,支持Markdown语法</p>
|
<p class="text">描述信息不超过500个字符</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label>启用匿名访问</label>
|
<label>启用匿名访问</label>
|
||||||
|
Reference in New Issue
Block a user