hexo-theme-stellar/layout/_plugins/tianli_gpt.ejs

10 lines
446 B
Plaintext
Raw Normal View History

2024-02-12 23:07:56 +08:00
<% if (['all', page.layout].includes(theme.plugins.tianli_gpt.field)) { %>
<script>
let tianliGPT_postSelector = 'article.content';
let tianliGPT_key = `<%= theme.plugins.tianli_gpt?.api %>`;
let tianliGPT_typingAnimate = `<%= theme.plugins.tianli_gpt?.typingAnimate %>`;
let tianliGPT_wordLimit = `<%= theme.plugins.tianli_gpt?.limit %>`;
</script>
<script defer src="<%- theme.plugins.tianli_gpt?.js %>"></script>
<% } %>