diff options
author | Digital Otter <chehaojia@gmail.com> | 2019-12-27 09:16:08 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-27 09:16:08 +0300 |
commit | 19db32cee847effbe475aed2e71a91a8f75d2e2c (patch) | |
tree | a59ed3841b82271baca2ed306d27a06dfa38b58e | |
parent | 18433f248c2b76415626775b0912edc777353b45 (diff) |
add safeHTML to customFooter
备案要求备案号为指向工信部网站的链接,修改以便可以使用以下的形式可以添加链接
```
customFooter = '<a href="http://beian.miit.gov.cn/" target="_blank">京 ICP 备XXXXXX 号 - 1</a>'
```
-rw-r--r-- | layouts/partials/footer.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 9503f47..e0d1a94 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -42,7 +42,7 @@ {{ if .Site.Params.customFooter }} <span> - {{ .Site.Params.customFooter }} + {{ .Site.Params.customFooter | safeHTML }} </span> {{ end }} </div> |