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) { %>