fix ai postselector (#362)
* fix ai postselector * Update tianli_gpt.ejs --------- Co-authored-by: xaoxuu <16400144+xaoxuu@users.noreply.github.com>
This commit is contained in:
parent
8c22e1f22f
commit
f0964f4fc9
|
@ -1,6 +1,6 @@
|
|||
<% if (page.layout === 'post' || (page.wiki?.length > 0)) { %>
|
||||
<script>
|
||||
let tianliGPT_postSelector = '.md-text.content.<%= page.layout === "post" ? "post" : "wiki" %>';
|
||||
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 %>;
|
||||
|
|
|
@ -62,6 +62,9 @@ function layoutDiv() {
|
|||
if (layout === 'post' || page.wiki) {
|
||||
el += partial('_partial/main/article/read_next')
|
||||
}
|
||||
if (isUsingTianliGPT) {
|
||||
el += partial('_partial/plugins/ai/tianli_gpt')
|
||||
}
|
||||
if (layout === 'post') {
|
||||
el += partial('_partial/main/article/related_posts')
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue