mirror of
https://gitee.com/huanghongxun/HMCL-docs.git
synced 2026-09-15 08:31:11 +08:00
This commit is contained in:
@@ -2,12 +2,13 @@
|
||||
layout: single
|
||||
---
|
||||
|
||||
{% if jekyll.environment == 'production' and page.hits %}
|
||||
<img src="https://hits.zkitefly.eu.org/?tag={{ page.url | absolute_url | url_encode }}" alt="Hits" decoding="async">
|
||||
{% endif %}
|
||||
|
||||
<div class="notice--info">
|
||||
<p>本文由 {{ page.author | default: '未署名用户' }} 创建{% if page.contributors %},并由 {{ page.contributors | join: ' ' }} 编辑{% endif %}。</p>
|
||||
</div>
|
||||
|
||||
{{ content }}
|
||||
|
||||
{% if page.author or page.contributors or jekyll.environment == 'production' and page.hits %}
|
||||
<script src="{{ '/assets/js/meta.js' | relative_url }}"></script>
|
||||
<script>
|
||||
{%- if page.author %}appendMeta("{{ page.author }}", "fas fa-user-pen");{% endif -%}
|
||||
{%- 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 -%}
|
||||
</script>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user