[opt] tianli_gpt

This commit is contained in:
xaoxuu 2023-12-18 12:34:56 +08:00
parent fbc47dce7f
commit b717668ab3
5 changed files with 6 additions and 4 deletions

View File

@ -30,7 +30,7 @@ if (theme.plugins.heti && theme.plugins.heti.enable) {
<%- layoutTitle() %>
<%- post.content %>
<% if (theme.plugins.tianli_gpt.enable && ['all', 'post'].includes(theme.plugins.tianli_gpt.field)) { %>
<%- partial('_partial/main/article/ai_abstract') %>
<%- partial('_partial/plugins/ai/tianli_gpt') %>
<% } %>
<%- partial('_partial/main/article/article_footer') %>
</article>

View File

@ -37,7 +37,7 @@ function layoutTitle() {
<%- layoutTitle() %>
<%- page.content %>
<% if (theme.plugins.tianli_gpt.enable && ['all', 'wiki'].includes(theme.plugins.tianli_gpt.field)) { %>
<%- partial('_partial/main/article/ai_abstract') %>
<%- partial('_partial/plugins/ai/tianli_gpt') %>
<% } %>
<%- partial('_partial/main/article/article_footer') %>
</article>

View File

@ -13,6 +13,8 @@ if hexo-config('plugins.mermaid.enable')
@import 'mermaid'
if hexo-config('plugins.copycode.enable')
@import 'copycode'
if hexo-config('plugins.tianli_gpt.enable')
@import 'tianli_gpt'
//

View File

@ -1,4 +1,4 @@
:root
.post-TianliGPT
--heo-none: #00000000
--heo-theme = var(--theme-link)
--heo-main: var(--theme-link)
@ -7,7 +7,7 @@
--heo-background: var(--site-bg)
--heo-hovertext: var(--text-code)
--heo-secondtext: var(--text-p0)
--heo-scrollbar: rgba(60, 60, 67, 0.4)
--heo-scrollbar: var(--block-border)
--heo-secondbg: var(--block)
--heo-card-bg: var(--block)
--heo-card-bg-none: rgba(255, 255, 255, 0)