Update tianli_gpt.ejs (#486)

This commit is contained in:
thun888 2024-06-12 21:59:21 +08:00 committed by GitHub
parent cf25565fab
commit acd0ab9998
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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) { %>
<script defer src="<%- theme.plugins.tianli_gpt?.js %>"></script>
<script defer>