summaryrefslogtreecommitdiffstats
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/single.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index a5e0a68..2a30a14 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -306,5 +306,14 @@
</div>
</div>
</details>
+
+ {{ if not .Params.comments }}
+ {{ with .Params.reason }}
+ <div class="reason">
+ <p>评论区已关闭。</p>
+ <strong>{{ . | markdownify }}</strong>
+ </div>
+ {{ end }}
+ {{ end }}
</div>
{{ end }}