mirror of
https://github.com/eiblog/eiblog.git
synced 2026-03-01 00:34:58 +08:00
chore: imgtonormal add at xmlTmpl
This commit is contained in:
1 parent
4bfff2e5e9
commit
445b188517
2 files changed
+2
-2
No files matched your search
@@ -21,7 +21,8 @@ func init() {
|
|||||||
|
|
||||||
var err error
|
var err error
|
||||||
xmlTmpl, err = template.New("").Funcs(template.FuncMap{
|
xmlTmpl, err = template.New("").Funcs(template.FuncMap{
|
||||||
"dateformat": tools.DateFormat,
|
"dateformat": tools.DateFormat,
|
||||||
|
"imgtonormal": tools.ImgToNormal,
|
||||||
}).ParseGlob(root)
|
}).ParseGlob(root)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
|
|||||||
@@ -25,7 +25,6 @@ func init() {
|
|||||||
TplFuncMap["join"] = Join
|
TplFuncMap["join"] = Join
|
||||||
TplFuncMap["isnotzero"] = IsNotZero
|
TplFuncMap["isnotzero"] = IsNotZero
|
||||||
TplFuncMap["getavatar"] = GetAvatar
|
TplFuncMap["getavatar"] = GetAvatar
|
||||||
TplFuncMap["imgtonormal"] = ImgToNormal
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Str2html string to html
|
// Str2html string to html
|
||||||
|
|||||||
Reference in new issue
Block a user