diff options
author | mayx | 2024-07-03 13:32:37 +0000 |
---|---|---|
committer | mayx | 2024-07-03 13:32:37 +0000 |
commit | 99ec7de3cdf035444afce8beae9a707229011744 (patch) | |
tree | f3a791e6888f2501c08ab271d3339a448034495f | |
parent | cd294479e045ce91ac320b73bff04febdd4eaf46 (diff) |
Update file 2024-07-03-ai-summary.md
-rw-r--r-- | _posts/2024-07-03-ai-summary.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/_posts/2024-07-03-ai-summary.md b/_posts/2024-07-03-ai-summary.md index dc79dd7..06dfa8a 100644 --- a/_posts/2024-07-03-ai-summary.md +++ b/_posts/2024-07-03-ai-summary.md @@ -236,6 +236,7 @@ export default { ``` 另外也写了配套的前端代码(用的jQuery,其实应该用Fetch的😂): ```html +{% raw %} <b>AI摘要</b> <p id="ai-output">正在生成中……</p> <script> @@ -278,6 +279,7 @@ export default { } ai_gen(); </script> +{% endraw %} ``` 本来文章内容应该从html里读更好一些,但是标签啥的还得用正则去掉,感觉不如Liquid方便😂。另外博客计数器不应该用MD5的,但懒得改之前的数据了,还好Cloudflare Workers为了兼容是支持MD5的,免得我还得想办法改数据库里的数据。 |