Update tianli_gpt.ejs (#486)
This commit is contained in:
parent
cf25565fab
commit
acd0ab9998
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue