mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-09-20 02:37:59 +08:00
实现设置第一篇文章为项目默认打开的页面
This commit is contained in:
@@ -173,6 +173,9 @@ func RegisterFunction() {
|
||||
beego.AddFuncMap("cdnimg", conf.URLForWithCdnImage)
|
||||
//重写url生成,支持配置域名以及域名前缀
|
||||
beego.AddFuncMap("urlfor", conf.URLFor)
|
||||
beego.AddFuncMap("date_format", func(t time.Time,format string) string {
|
||||
return t.Local().Format(format)
|
||||
})
|
||||
}
|
||||
|
||||
//解析命令
|
||||
|
Reference in New Issue
Block a user