mirror of https://gitee.com/answerdev/answer.git
Merge branch 'fix/seo' into 'test'
fix(seo/render): fixed seo template variable replace: {{v}} || {{ v }} See merge request opensource/answer!379
This commit is contained in:
commit
ff79cc9bf5
|
@ -49,6 +49,7 @@ var funcMap = template.FuncMap{
|
|||
k := converter.InterfaceToString(params[i])
|
||||
v := converter.InterfaceToString(params[i+1])
|
||||
trans = strings.ReplaceAll(trans, "{{ "+k+" }}", v)
|
||||
trans = strings.ReplaceAll(trans, "{{"+k+"}}", v)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue