From acd0ab99987589107ec7d7b88389b45e53df92e7 Mon Sep 17 00:00:00 2001
From: thun888 <2238342947@qq.com>
Date: Wed, 12 Jun 2024 21:59:21 +0800
Subject: [PATCH] Update tianli_gpt.ejs (#486)
---
layout/_plugins/tianli_gpt.ejs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/layout/_plugins/tianli_gpt.ejs b/layout/_plugins/tianli_gpt.ejs
index 28051d8..43b99e7 100644
--- a/layout/_plugins/tianli_gpt.ejs
+++ b/layout/_plugins/tianli_gpt.ejs
@@ -1,6 +1,6 @@
<%
const { field } = theme.plugins.tianli_gpt;
-const matchesField = field === 'all' || field === layout || (field === 'wiki' && page.wiki) || (field === 'topic' && page.topic);
+const matchesField = field === 'all' || field === page.layout || (field === 'wiki' && page.wiki) || (field === 'topic' && page.topic);
if (matchesField) { %>