修复 hits url tag 参数被二次编码的问题 (#452)
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
neveler 2026-04-20 11:26:21 +08:00 committed by GitHub
parent 8b05643a2f
commit e0303cb44a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,6 +9,6 @@ layout: single
<script> <script>
{%- if page.author %}appendMeta("{{ page.author }}", "fas fa-user-pen");{% endif -%} {%- if page.author %}appendMeta("{{ page.author }}", "fas fa-user-pen");{% endif -%}
{%- for contributor in page.contributors %}appendMeta("{{ contributor }}", "fas fa-user-pen");{% endfor -%} {%- for contributor in page.contributors %}appendMeta("{{ contributor }}", "fas fa-user-pen");{% endfor -%}
{%- if jekyll.environment == 'production' and page.hits %}hits("{{ page.url | absolute_url | url_encode }}");{% endif -%} {%- if jekyll.environment == 'production' and page.hits %}hits({{ page.url | absolute_url | jsonify }});{% endif -%}
</script> </script>
{% endif %} {% endif %}