some post setting and comments

This commit is contained in:
jkjoy 2023-10-20 08:36:46 +08:00
parent b997aa02cb
commit 3cc16d024e
2 changed files with 7 additions and 7 deletions

View File

@ -1149,7 +1149,7 @@ static_prefix:
disqusjs: https://lib.baomitu.com/disqusjs/1.3.0/ disqusjs: https://lib.baomitu.com/disqusjs/1.3.0/
twikoo: https://lib.baomitu.com/twikoo/1.6.22/ twikoo: https://unpkg.com/twikoo/dist/twikoo.all.min.js
discuss: https://lib.baomitu.com/discuss/1.2.1/ discuss: https://lib.baomitu.com/discuss/1.2.1/

View File

@ -14,12 +14,12 @@ cover:
[给Memos添加Twikoo评论](/2023/507a5d86.html) [给Memos添加Twikoo评论](/2023/507a5d86.html)
-2023.10.17更新memos0.16版本 - 2023.10.17更新memos0.16版本
## 自定义脚本 ## 自定义脚本
``` ```
// Artalk comments 2023.8.15更新 // Artalk comments 2023.10.18更新
// 用 JS 向页面中插入 JS // 适用于0.15以上版本
function addArtalkJS() { function addArtalkJS() {
var memosArtalk = document.createElement("script"); var memosArtalk = document.createElement("script");
memosArtalk.src = `https://unpkg.com/artalk/dist/Artalk.js`; memosArtalk.src = `https://unpkg.com/artalk/dist/Artalk.js`;
@ -68,17 +68,17 @@ function startArtalk() {
startArtalk(); startArtalk();
``` ```
## 自定义样式 ## 自定义样式
隐藏评论数
``` ```
.text-sm.text-gray-500.ml-1{display:none !important;} .text-sm.text-gray-500.ml-1{display:none !important;}
``` ```
隐藏评论数
- 2023.9.26更新提醒: memos升级到0.15.1后版本,以下方法失效
- 2023.9.26更新提醒: memos升级到0.15.1后版本,本方法失效
## 自定义脚本 ## 自定义脚本
``` ```
// Artalk comments 2023.8.15更新 // Artalk comments 适用于0.15以下版本
// 用 JS 向页面中插入 JS // 用 JS 向页面中插入 JS
function addArtalkJS() { function addArtalkJS() {
var memosArtalk = document.createElement("script"); var memosArtalk = document.createElement("script");