From cff63d49616eb0214a06f10ab24838e3eb54ddb7 Mon Sep 17 00:00:00 2001 From: st1020 Date: Fri, 12 Jan 2024 21:43:28 +0800 Subject: [PATCH] feat: change some config --- templates/page.html | 4 +++- templates/partials/head.html | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/templates/page.html b/templates/page.html index 5eb0609..096f386 100644 --- a/templates/page.html +++ b/templates/page.html @@ -98,7 +98,8 @@ {% endif %} - {% if config.extra.giscus.repo and page.extra.comments %} + {% if page.extra.comment | default(value=config.extra.comment) %} + {% if config.extra.giscus.repo %}
+ {% endif %} {% endif %} {% endblock main %} diff --git a/templates/partials/head.html b/templates/partials/head.html index ac3606b..0a0a6d2 100644 --- a/templates/partials/head.html +++ b/templates/partials/head.html @@ -60,7 +60,7 @@ - {% if page.extra.mermaid %} + {% if page.extra.mermaid | default(value=config.extra.mermaid) %}