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:
杨光富 2022-12-23 03:10:58 +00:00
commit ff79cc9bf5
1 changed files with 1 additions and 0 deletions

View File

@ -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)
}
}