From 0907ca4b6e278388d588db390f4e1430b9144d44 Mon Sep 17 00:00:00 2001
From: neveler <55753029+neveler@users.noreply.github.com>
Date: Fri, 17 Apr 2026 07:52:37 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20document=20=E5=B8=83?=
=?UTF-8?q?=E5=B1=80=E5=86=85=E5=AE=B9=20(#423)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
_config.yml | 5 +----
_data/settings.yaml | 6 ++++++
_layouts/document.html | 17 +++++++++--------
assets/js/meta.js | 40 ++++++++++++++++++++++++++++++++++++++++
settings.yaml | 8 ++++++++
5 files changed, 64 insertions(+), 12 deletions(-)
create mode 100644 assets/js/meta.js
diff --git a/_config.yml b/_config.yml
index dc65e6b..2f6d57e 100644
--- a/_config.yml
+++ b/_config.yml
@@ -106,10 +106,7 @@ defaults:
path: ""
values:
layout: document
- read_time: false
- author_profile: false
- share: false
- comments: false
+ show_date: true
sidebar:
nav: docs
hits: true
diff --git a/_data/settings.yaml b/_data/settings.yaml
index 085ee19..0660e18 100644
--- a/_data/settings.yaml
+++ b/_data/settings.yaml
@@ -31,3 +31,9 @@ appearance_skin:
- sunrise
- catppuccin_latte
- catppuccin_mocha
+miscellaneous_hits:
+ type: radio
+ default: enable
+ options:
+ - enable
+ - disable
diff --git a/_layouts/document.html b/_layouts/document.html
index 3b4bd7d..2605dcd 100644
--- a/_layouts/document.html
+++ b/_layouts/document.html
@@ -2,12 +2,13 @@
layout: single
---
-{% if jekyll.environment == 'production' and page.hits %}
-
-{% endif %}
-
-
本文由 {{ page.author | default: '未署名用户' }} 创建{% if page.contributors %},并由 {{ page.contributors | join: ' ' }} 编辑{% endif %}。
-