From d00e310673bfeb94cdbef30c4eeb2a25b7ae772f Mon Sep 17 00:00:00 2001
From: mayx
Date: Sat, 17 May 2025 05:03:00 +0000
Subject: Update 2 files
- /_layouts/post.html
- /_layouts/encrypt.html
---
_layouts/post.html | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
(limited to '_layouts/post.html')
diff --git a/_layouts/post.html b/_layouts/post.html
index a456cd6..88e4552 100644
--- a/_layouts/post.html
+++ b/_layouts/post.html
@@ -75,12 +75,12 @@ layout: default
{% include toc.html html=content sanitize=true h_max=3 %}
-{% if post.layout == "encrypt" %} {{content}} {% else %} {% capture a_post_content %}{% include anchor_headings.html html=content beforeHeading=true anchorBody="" %}{% endcapture %}{{ a_post_content | replace: '
', '
' }} {% endif %}
+{% if page.layout == "encrypt" %} {{content}} {% else %} {% capture a_post_content %}{% include anchor_headings.html html=content beforeHeading=true anchorBody="" %}{% endcapture %}{{ a_post_content | replace: '
', '
' }} {% endif %}
{% if page.tags %}
tags: {% for tag in page.tags %}{{ tag }}{% unless forloop.last %} - {% endunless %}{% endfor %} 查看原始文件
{% endif %}
-{% unless post.layout == "encrypt" %}
+{% if page.layout != "encrypt" %}
推荐文章
Loading...
@@ -107,7 +107,7 @@ $.get(BlogAPI + "/suggest?id={{ page.url }}&update=" + lastUpdated.valueOf(), fu
});
-{% endunless %}
+{% endif %}