diff --git a/config.toml b/config.toml index 56763ca6..f766a9ee 100644 --- a/config.toml +++ b/config.toml @@ -1,6 +1,6 @@ -baseURL = "https://springcecilia.blog" +baseURL = "https://springcecilia.icu" languageCode = 'zh-cn' -title = 'Ceciliaの 小站' +title = '同人备用粮仓' theme = "hugo-theme-stack" summaryLength = 20 paginate = 10 @@ -127,7 +127,7 @@ url = "https://peing.net/zh-CN/91e8000a0af399" [[menu.social]] identifier = "rss" name = "rss订阅" -url = "https://springcecilia.blog/index.xml" +url = "https://springcecilia.icu/index.xml" [menu.social.params] icon = "rss" diff --git "a/content/categories/BDS\346\235\202\347\203\251/53.jpeg" "b/content/categories/BDS\346\235\202\347\203\251/53.jpeg" deleted file mode 100644 index f5c2e8d4..00000000 Binary files "a/content/categories/BDS\346\235\202\347\203\251/53.jpeg" and /dev/null differ diff --git "a/content/categories/BDS\346\235\202\347\203\251/_index.md" "b/content/categories/BDS\346\235\202\347\203\251/_index.md" deleted file mode 100644 index b5b53e57..00000000 --- "a/content/categories/BDS\346\235\202\347\203\251/_index.md" +++ /dev/null @@ -1,10 +0,0 @@ ---- -title: "BDS杂烩" -description: -slug: "文豪野犬" -image: "53.jpeg" -style: - background: "#2a9d8f" - color: "#fff" ---- -e \ No newline at end of file diff --git "a/content/categories/\346\226\207\350\261\252\351\207\216\347\212\254/53.JPG" "b/content/categories/\346\226\207\350\261\252\351\207\216\347\212\254/53.JPG" new file mode 100644 index 00000000..5b3ceaf3 Binary files /dev/null and "b/content/categories/\346\226\207\350\261\252\351\207\216\347\212\254/53.JPG" differ diff --git "a/content/categories/\346\226\207\350\261\252\351\207\216\347\212\254/_index.md" "b/content/categories/\346\226\207\350\261\252\351\207\216\347\212\254/_index.md" index 95e2500a..89dfcf78 100644 --- "a/content/categories/\346\226\207\350\261\252\351\207\216\347\212\254/_index.md" +++ "b/content/categories/\346\226\207\350\261\252\351\207\216\347\212\254/_index.md" @@ -1,10 +1,9 @@ --- -title: "BDS杂烩" +title: "文豪野犬" description: -slug: "BDS" -image: "53.jpeg" +slug: "文豪野犬" +image: "53.jpg" style: background: "#2a9d8f" color: "#fff" --- -e \ No newline at end of file diff --git "a/content/post/\345\273\272\347\253\231/\343\200\220\345\273\272\347\253\2316\343\200\221\350\243\205\344\277\256\345\215\232\345\256\242.md" "b/content/post/\345\273\272\347\253\231/\343\200\220\345\273\272\347\253\2316\343\200\221\350\243\205\344\277\256\345\215\232\345\256\242.md" index eae5d850..da5edac0 100644 --- "a/content/post/\345\273\272\347\253\231/\343\200\220\345\273\272\347\253\2316\343\200\221\350\243\205\344\277\256\345\215\232\345\256\242.md" +++ "b/content/post/\345\273\272\347\253\231/\343\200\220\345\273\272\347\253\2316\343\200\221\350\243\205\344\277\256\345\215\232\345\256\242.md" @@ -368,12 +368,171 @@ There is no possibility that any perceptible change will happen within our own l 参考: -[Waline官方文档](https://waline.js.org/guide/get-started/) +先参考[Waline官方文档](https://waline.js.org/guide/get-started/)把LeanCloud 设置好。 [天堂错误文件-Loading hugo 装修日志 02](https://naturaleki.one/post/loadinghugo%E8%A3%85%E4%BF%AE%E6%97%A5%E5%BF%9702/) [waline无法登录(vercel.app被污染)](https://8bytes.top/2022/12/12/walineErr/) +在themes\hugo-theme-stack\config.yaml里修改代码: + +```jsx + + comments: + enabled: true + provider: waline + + disqusjs: + shortname: + apiUrl: + apiKey: + admin: + adminLabel: + + utterances: + repo: + issueTerm: pathname + label: + + remark42: + host: + site: + locale: + + vssue: + platform: + owner: + repo: + clientId: + clientSecret: + autoCreateIssue: false + + # Waline client configuration see: https://waline.js.org/en/reference/client.html + waline: + serverURL: 你的comment域名 + lang: + visitor: + avatar: monsterid + requiredMeta: ['mail'] + el: '#waline' + reaction: false + emoji: + - https://cdn.jsdelivr.net/gh/norevi/waline-blobcatemojis@1.0/blobs + - https://cdn.jsdelivr.net/gh/Saidosi/azuki-emoji-for-waline@1.0/azukisan/ + reaction: + - https://cdn.jsdelivr.net/gh/Saidosi/azuki-emoji-for-waline@1.0/azukisan/017.png + - https://cdn.jsdelivr.net/gh/Saidosi/azuki-emoji-for-waline@1.0/azukisan/029.png + - https://cdn.jsdelivr.net/gh/Saidosi/azuki-emoji-for-waline@1.0/azukisan/026.png + - https://cdn.jsdelivr.net/gh/Saidosi/azuki-emoji-for-waline@1.0/azukisan/008.png + - https://cdn.jsdelivr.net/gh/Saidosi/azuki-emoji-for-waline@1.0/azukisan/035.png + + locale: + admin: 博主 + placeholder: | + 欢迎评论~ + 开魔法可食用小豆泥和blobcat表情包 + 左下第五个放大镜按键为评论预览功能(可显示表情最终效果) + 填写邮箱可收到博主的回复通知~您的邮箱信息不会被公开。 + +``` + +在layouts\partials\comments\provider里建立waline.html,添加代码: + + +```jsx + + +
+ + + +{{- with .Site.Params.comments.waline -}} +{{- $config := dict "el" "#waline" "dark" `html[data-scheme="dark"]` -}} +{{- $replaceKeys := dict "serverurl" "serverURL" "requiredmeta" "requiredMeta" "wordlimit" "wordLimit" "pagesize" "pageSize" "imageuploader" "imageUploader" "texrenderer" "texRenderer" -}} + +{{- range $key, $val := . -}} + {{- if ne $val nil -}} + {{- $replaceKey := index $replaceKeys $key -}} + {{- $k := default $key $replaceKey -}} + + {{- $config = merge $config (dict $k $val) -}} + {{- end -}} +{{- end -}} + + +{{- end -}} + +``` + +在assets\scss\custom.scss里添加代码: + +```jsx +//WALINE +body { + .wl-content .vemoji, .wl-content .wl-emoji { + display: inline-block; + vertical-align: baseline; + height: 2.35em; //调整表情包大小 + margin: -0.125em 0.25em; + } +} +``` + 结果:因vercel被墙需要额外解析dns,不魔法好像加载不出来,算了就这样吧。
diff --git "a/resources/_gen/images/categories/BDS\346\235\202\347\203\251/53.b1fdbf5947ec11d65a7b0710d3d71952_hu614201c2848bf5fc166796d762c6dd86_40323_250x150_fill_q75_box_smart1.jpeg" "b/resources/_gen/images/categories/BDS\346\235\202\347\203\251/53.b1fdbf5947ec11d65a7b0710d3d71952_hu614201c2848bf5fc166796d762c6dd86_40323_250x150_fill_q75_box_smart1.jpeg" new file mode 100644 index 00000000..04d87b81 Binary files /dev/null and "b/resources/_gen/images/categories/BDS\346\235\202\347\203\251/53.b1fdbf5947ec11d65a7b0710d3d71952_hu614201c2848bf5fc166796d762c6dd86_40323_250x150_fill_q75_box_smart1.jpeg" differ diff --git "a/resources/_gen/images/categories/BDS\346\235\202\347\203\251/53_hu11e4fa80ee69900238e8e3fef5ead8a5_607659_120x120_fill_q75_box_smart1.JPG" "b/resources/_gen/images/categories/BDS\346\235\202\347\203\251/53_hu11e4fa80ee69900238e8e3fef5ead8a5_607659_120x120_fill_q75_box_smart1.JPG" new file mode 100644 index 00000000..19103e1f Binary files /dev/null and "b/resources/_gen/images/categories/BDS\346\235\202\347\203\251/53_hu11e4fa80ee69900238e8e3fef5ead8a5_607659_120x120_fill_q75_box_smart1.JPG" differ diff --git "a/resources/_gen/images/categories/BDS\346\235\202\347\203\251/53_hu8231e93a855635ec46c5824be8aa99c6_531703_120x120_fill_q75_box_smart1.JPG" "b/resources/_gen/images/categories/BDS\346\235\202\347\203\251/53_hu8231e93a855635ec46c5824be8aa99c6_531703_120x120_fill_q75_box_smart1.JPG" new file mode 100644 index 00000000..655c3d4f Binary files /dev/null and "b/resources/_gen/images/categories/BDS\346\235\202\347\203\251/53_hu8231e93a855635ec46c5824be8aa99c6_531703_120x120_fill_q75_box_smart1.JPG" differ diff --git "a/resources/_gen/images/categories/BDS\346\235\202\347\203\251/53_hu_525232_120x120_fill_q75_box_smart1.JPG" "b/resources/_gen/images/categories/BDS\346\235\202\347\203\251/53_hu_525232_120x120_fill_q75_box_smart1.JPG" new file mode 100644 index 00000000..e69de29b diff --git "a/resources/_gen/images/categories/\346\226\207\350\261\252\351\207\216\347\212\254/53.28e81f662a59d7e2774e9c38e974fa12_hu8231e93a855635ec46c5824be8aa99c6_531703_250x150_fill_q75_box_smart1.JPG" "b/resources/_gen/images/categories/\346\226\207\350\261\252\351\207\216\347\212\254/53.28e81f662a59d7e2774e9c38e974fa12_hu8231e93a855635ec46c5824be8aa99c6_531703_250x150_fill_q75_box_smart1.JPG" new file mode 100644 index 00000000..6a673e58 Binary files /dev/null and "b/resources/_gen/images/categories/\346\226\207\350\261\252\351\207\216\347\212\254/53.28e81f662a59d7e2774e9c38e974fa12_hu8231e93a855635ec46c5824be8aa99c6_531703_250x150_fill_q75_box_smart1.JPG" differ diff --git "a/resources/_gen/images/categories/\346\226\207\350\261\252\351\207\216\347\212\254/53.f91033971a163133d35c88827271ab05_hu8231e93a855635ec46c5824be8aa99c6_512253_250x150_fill_q75_box_smart1.JPG" "b/resources/_gen/images/categories/\346\226\207\350\261\252\351\207\216\347\212\254/53.f91033971a163133d35c88827271ab05_hu8231e93a855635ec46c5824be8aa99c6_512253_250x150_fill_q75_box_smart1.JPG" new file mode 100644 index 00000000..f8f637fb Binary files /dev/null and "b/resources/_gen/images/categories/\346\226\207\350\261\252\351\207\216\347\212\254/53.f91033971a163133d35c88827271ab05_hu8231e93a855635ec46c5824be8aa99c6_512253_250x150_fill_q75_box_smart1.JPG" differ diff --git "a/resources/_gen/images/categories/\346\226\207\350\261\252\351\207\216\347\212\254/53_hu8231e93a855635ec46c5824be8aa99c6_512253_120x120_fill_q75_box_smart1.JPG" "b/resources/_gen/images/categories/\346\226\207\350\261\252\351\207\216\347\212\254/53_hu8231e93a855635ec46c5824be8aa99c6_512253_120x120_fill_q75_box_smart1.JPG" new file mode 100644 index 00000000..ba723d5a Binary files /dev/null and "b/resources/_gen/images/categories/\346\226\207\350\261\252\351\207\216\347\212\254/53_hu8231e93a855635ec46c5824be8aa99c6_512253_120x120_fill_q75_box_smart1.JPG" differ diff --git "a/resources/_gen/images/categories/\346\226\207\350\261\252\351\207\216\347\212\254/53_hu8231e93a855635ec46c5824be8aa99c6_531703_120x120_fill_q75_box_smart1.JPG" "b/resources/_gen/images/categories/\346\226\207\350\261\252\351\207\216\347\212\254/53_hu8231e93a855635ec46c5824be8aa99c6_531703_120x120_fill_q75_box_smart1.JPG" new file mode 100644 index 00000000..655c3d4f Binary files /dev/null and "b/resources/_gen/images/categories/\346\226\207\350\261\252\351\207\216\347\212\254/53_hu8231e93a855635ec46c5824be8aa99c6_531703_120x120_fill_q75_box_smart1.JPG" differ diff --git a/themes/hugo-theme-stack/config.yaml b/themes/hugo-theme-stack/config.yaml index 245d5536..5fab0bf9 100644 --- a/themes/hugo-theme-stack/config.yaml +++ b/themes/hugo-theme-stack/config.yaml @@ -67,7 +67,7 @@ params: # Waline client configuration see: https://waline.js.org/en/reference/client.html waline: - serverURL: https://comment.springcecilia.blog/ + serverURL: https://comment.springcecilia.icu/ lang: visitor: avatar: monsterid diff --git a/themes/hugo-theme-stack/layouts/partials/comments/provider/waline.html b/themes/hugo-theme-stack/layouts/partials/comments/provider/waline.html index b96c903a..4e796762 100644 --- a/themes/hugo-theme-stack/layouts/partials/comments/provider/waline.html +++ b/themes/hugo-theme-stack/layouts/partials/comments/provider/waline.html @@ -76,3 +76,6 @@ Waline.init({{ $config | jsonify | safeJS }}); {{- end -}} + + + \ No newline at end of file diff --git a/themes/hugo-theme-stack/layouts/partials/footer/components/script.html b/themes/hugo-theme-stack/layouts/partials/footer/components/script.html index c8f5f3b7..7108688b 100644 --- a/themes/hugo-theme-stack/layouts/partials/footer/components/script.html +++ b/themes/hugo-theme-stack/layouts/partials/footer/components/script.html @@ -10,13 +10,3 @@ {{- $customScript := . | js.Build $opts -}} {{- end -}} - - \ No newline at end of file