Refine code

This commit is contained in:
nanxiaobei 2019-08-21 12:03:12 +08:00
parent 3b03643a20
commit 6a21a64488

View File

@ -14,7 +14,8 @@
<footer class="post-footer">
<ul class="post-tags">
{{ range .Params.tags }}
<li><a href="{{ "tags/" | absURL }}{{ . | urlize }}/">{{ . }}</a></li>
{{ $href := print (absURL "tags/") (urlize .) }}
<li><a href="{{ $href }}">{{ . }}</a></li>
{{ end }}
</ul>
</footer>