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" %}