diff --git a/README.md b/README.md index c2dae241..dd822dd6 100644 --- a/README.md +++ b/README.md @@ -131,12 +131,12 @@ Click the following links to generate a new repository with template: ### Extended Features -- **AI Summary**, **AI Search** and **AI Chatbot** supported by [PostChat](https://ai.tianli0.top/?InviteID=IRE1S88Z) +- **AI Summary**, **AI Search** and **AI Chatbot** supported by [PostChat](https://ai.zhheo.com/console/login?InviteID=85041330) - **PWA (Progressive Web App)** supported - **Sub Menu** supported - **Content Encryption** supported (Pages, Partial) - **Friends** page embedded template -- **Search** supported by [algolia](https://www.algolia.com/), [Fuse.js](https://fusejs.io/), CSE or [PostChat](https://ai.tianli0.top/?InviteID=IRE1S88Z) +- **Search** supported by [algolia](https://www.algolia.com/), [Fuse.js](https://fusejs.io/), CSE or [PostChat](https://ai.zhheo.com/console/login?InviteID=85041330) - **Custom Search Engine (CSE)** supported by [Google](https://programmablesearchengine.google.com/) - **Twemoji** supported - Automatically **highlighting** code diff --git a/README.zh-cn.md b/README.zh-cn.md index 107e0280..85c1db9c 100644 --- a/README.zh-cn.md +++ b/README.zh-cn.md @@ -135,12 +135,12 @@ Gitee 镜像仓库: ### 扩展功能 -- 支持基于 [PostChat](https://ai.tianli0.top/?InviteID=IRE1S88Z) 的 **AI 摘要**、**AI 搜索** 和 **AI 智能客服** +- 支持基于 [PostChat](https://ai.zhheo.com/console/login?InviteID=85041330) 的 **AI 摘要**、**AI 搜索** 和 **AI 智能客服** - 支持**渐进式网页应用** - 支持**二级菜单** - 支持**内容加密**(页面、局部) - 支持**友情链接**的页面模板 -- 支持基于 [algolia](https://www.algolia.com/)、[Fuse.js](https://fusejs.io/)、 **CSE** 或 [PostChat](https://ai.tianli0.top/?InviteID=IRE1S88Z) 的**搜索** +- 支持基于 [algolia](https://www.algolia.com/)、[Fuse.js](https://fusejs.io/)、 **CSE** 或 [PostChat](https://ai.zhheo.com/console/login?InviteID=85041330) 的**搜索** - 支持基于 [Google](https://programmablesearchengine.google.com/) 的**自定义搜索引擎 (CSE)** - 支持 **Twemoji** - 支持**代码高亮** diff --git a/hugo.toml b/hugo.toml index 13f3d7c2..68c893f8 100644 --- a/hugo.toml +++ b/hugo.toml @@ -891,7 +891,7 @@ mainSections = [] # FixIt 0.3.17 | NEW PostChat AI config # Based on your posts to build a knowledge base, support AI summary, AI search, and AI Chatbot. # Get PostChat Key from my invitation link, thanks for your support! - # https://ai.tianli0.top/?InviteID=IRE1S88Z + # https://ai.zhheo.com/console/login?InviteID=85041330 [params.postChat] enable = false key = "" @@ -918,9 +918,11 @@ mainSections = [] userIcon = "" defaultChatQuestions = [] defaultSearchQuestions = [] + # FixIt 0.4.0 | NEW + hotWords = true # FixIt 0.3.17 | NEW Summary AI config - # See https://postchat.zhheo.com/summary.html + # See https://ai.zhheo.com/docs/summary.html [params.postSummary] enable = false # If you set `params.postChat.key`, you don't need to set `params.postSummary.key` diff --git a/layouts/partials/init/index.html b/layouts/partials/init/index.html index 03734292..2c3686c3 100644 --- a/layouts/partials/init/index.html +++ b/layouts/partials/init/index.html @@ -1,4 +1,4 @@ -{{- .Scratch.Set "version" "v0.3.21-a85a6655" -}} +{{- .Scratch.Set "version" "v0.3.21-87ca54d0" -}} {{- .Scratch.Set "this" dict -}} {{- partial "init/detection-env.html" . -}} diff --git a/layouts/partials/plugin/post-chat-ai.html b/layouts/partials/plugin/post-chat-ai.html index ecfb0224..5b736ca0 100644 --- a/layouts/partials/plugin/post-chat-ai.html +++ b/layouts/partials/plugin/post-chat-ai.html @@ -1,13 +1,13 @@ {{- /* PostChat AI service. - PostChat: https://postchat.zhheo.com/addCode.html - PostSummary: https://postchat.zhheo.com/summary.html + PostChat: https://ai.zhheo.com/docs/addCode.html + PostSummary: https://ai.zhheo.com/docs/summary.html */ -}} {{- $params := .Params | merge .Site.Params -}} {{- $chatConfig := $params.postChat -}} {{- $summaryConfig := $params.postSummary -}} {{- $key := $chatConfig.key | default $summaryConfig.key -}} -{{- $sourcePrefix := "https://ai.tianli0.top/static/public/" -}} +{{- $sourcePrefix := "https://ai.zhheo.com/static/public/" -}} {{- $jsMap := dict "chat" "postChatUser.min.js" "summary" "tianli_gpt.min.js" @@ -26,7 +26,7 @@ {{- /* PostSummary */ -}} {{- if $summaryEnable -}} - {{- $postChatCSS := "https://ai.tianli0.top/static/public/postChatUser_summary.min.css" -}} + {{- $postChatCSS := "https://ai.zhheo.com/static/public/postChatUser_summary.min.css" -}} {{- dict "Source" $postChatCSS "Fingerprint" $fingerprint | dict "Scratch" .Scratch "Data" | partial "scratch/style.html" -}} {{- $p := "tianliGPT" -}} {{- $postSummaryConfig := printf "let %v_postSelector='#content';" $p -}} @@ -94,6 +94,7 @@ "userIcon" $chatConfig.userIcon "defaultChatQuestions" $chatConfig.defaultChatQuestions "defaultSearchQuestions" $chatConfig.defaultSearchQuestions + "hotWords" $chatConfig.hotWords -}} {{- $configJS = add $configJS ($postChatConfig | jsonify | printf "var postChatConfig=%s") -}} {{- end -}}