中文目录链接 uri decode

This commit is contained in:
ehlxr 2018-10-11 14:45:47 +08:00
parent 627b358901
commit 3790ae68a5

View File

@ -67,7 +67,11 @@
{{ with .Permalink }} {{ with .Permalink }}
<p class="copyright-item"> <p class="copyright-item">
<span>Link:</span> <span>Link:</span>
<a href={{ . }}>{{ . }}</span> <a href={{ . }}>
<script>
document.write(decodeURI(location))
</script>
</a>
</p> </p>
{{ end }} {{ end }}
{{ with .Site.Params.license }} {{ with .Site.Params.license }}