From 824aee7b747c11b0f7f25d83cdc78cacb89aceb2 Mon Sep 17 00:00:00 2001 From: syui Date: Sat, 9 Aug 2025 18:07:40 +0900 Subject: [PATCH] fix temp --- my-blog/templates/post.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/my-blog/templates/post.html b/my-blog/templates/post.html index fd25a5a..4c9a5ae 100644 --- a/my-blog/templates/post.html +++ b/my-blog/templates/post.html @@ -12,14 +12,14 @@ {% if post.language %} {{ post.language }} {% endif %} - {% if post.extra.type == "ai" %} + {% if post.extra and post.extra.type == "ai" %} ai {% endif %} - {% if not post.extra.type or post.extra.type != "ai" %} + {% if not post.extra or not post.extra.type or post.extra.type != "ai" %}
{% if post.markdown_url %} @@ -35,7 +35,7 @@ {% endif %} - {% if not post.extra.type or post.extra.type != "ai" %} + {% if not post.extra or not post.extra.type or post.extra.type != "ai" %}