使用 authors 替代 contributors (#465)
continuous-integration/drone/push Build is passing

This commit is contained in:
neveler
2026-06-05 21:52:36 +08:00
committed by GitHub
parent 2bb8513ded
commit aa9f72ebfe
7 changed files with 16 additions and 14 deletions
+2 -2
View File
@@ -4,11 +4,11 @@ layout: single
{{ content }}
{% if page.author or page.contributors or jekyll.environment == 'production' and page.hits %}
{% if page.author or page.authors or jekyll.environment == 'production' and page.hits %}
<script>
window.addEventListener("load", () => {
{%- if page.author %}appendMeta("{{ page.author }}", "fas fa-user-pen");{% endif -%}
{%- for contributor in page.contributors %}appendMeta("{{ contributor }}", "fas fa-user-pen");{% endfor -%}
{%- for author in page.authors %}appendMeta("{{ author }}", "fas fa-user-pen");{% endfor -%}
{%- if jekyll.environment == 'production' and page.hits %}hits({{ page.url | absolute_url | jsonify }});{% endif -%}
});
</script>