This commit is contained in:
浪子 2024-05-26 09:05:34 +08:00
parent fab48da149
commit 10c4221719
9 changed files with 76 additions and 27 deletions

3
.gitignore vendored
View File

@ -1,4 +1,5 @@
public/ public/
.hugo_build.lock .hugo_build.lock
resources/ resources/
.DS_Store .DS_Store
.obsidian

View File

@ -1 +0,0 @@
4058ad46960b046136801c9789bb782ce757826b

View File

@ -2,4 +2,18 @@
title: "无力吐槽苹果" title: "无力吐槽苹果"
date: 2024-05-08T11:44:57+08:00 date: 2024-05-08T11:44:57+08:00
--- ---
---
title: "2022年12月8日终于全国防疫放开管控了"
date: 2022-12-08T02:23:00.000Z
---
坚持了三年的疫情,终于在昨天放开管控了。
这意味着疫情的危害已然不如爆发之初的恐怖杀伤力了。
但是这一切不能不防。
很多阳过的朋友在网络上分享自己的心得。
各种囤积的必备药物。
还有被阳性包围保持阴性的必胜法宝。那就是口罩。 如果不想被阳,带口罩还是非常有必要的。
这一次终于我可以到处溜达了。
升级IOS17之后小米无线充电器就无法使用了 升级IOS17之后小米无线充电器就无法使用了

7
content/zh-cn/memo/62.md Normal file
View File

@ -0,0 +1,7 @@
---
title: 庆余年2
date: 2024-05-26T09:03:17+0800
feature:
---
故事还可以,就是有些情节魔改的厉害了.
跟原著紧张的气氛不同的是多了几分诙谐

View File

@ -1,4 +1,6 @@
[ [
"buttons", "buttons",
"quickadd" "quickadd",
"obsidian-git",
"templater-obsidian"
] ]

View File

@ -12,7 +12,7 @@
"devMode": false, "devMode": false,
"templateFolderPath": "", "templateFolderPath": "",
"announceUpdates": true, "announceUpdates": true,
"version": "0.14.0", "version": "1.8.1",
"disableOnlineFeatures": true, "disableOnlineFeatures": true,
"ai": { "ai": {
"defaultModel": "Ask me", "defaultModel": "Ask me",
@ -63,6 +63,6 @@
"incrementFileNameSettingMoveToDefaultBehavior": true, "incrementFileNameSettingMoveToDefaultBehavior": true,
"mutualExclusionInsertAfterAndWriteToBottomOfFile": true, "mutualExclusionInsertAfterAndWriteToBottomOfFile": true,
"setVersionAfterUpdateModalRelease": true, "setVersionAfterUpdateModalRelease": true,
"addDefaultAIProviders": false "addDefaultAIProviders": true
} }
} }

View File

@ -18,21 +18,8 @@
"source": false "source": false
} }
} }
},
{
"id": "b92342483b71e489",
"type": "leaf",
"state": {
"type": "markdown",
"state": {
"file": "为Memos增加twikoo评论.md",
"mode": "source",
"source": false
}
}
} }
], ]
"currentTab": 1
} }
], ],
"direction": "vertical" "direction": "vertical"
@ -61,7 +48,7 @@
"state": { "state": {
"type": "search", "type": "search",
"state": { "state": {
"query": "add", "query": "",
"matchingCase": false, "matchingCase": false,
"explainSearch": false, "explainSearch": false,
"collapseAll": false, "collapseAll": false,
@ -99,7 +86,7 @@
"state": { "state": {
"type": "backlink", "type": "backlink",
"state": { "state": {
"file": "为Memos增加twikoo评论.md", "file": "Moments.md",
"collapseAll": false, "collapseAll": false,
"extraContext": false, "extraContext": false,
"sortOrder": "alphabetical", "sortOrder": "alphabetical",
@ -116,7 +103,7 @@
"state": { "state": {
"type": "outgoing-link", "type": "outgoing-link",
"state": { "state": {
"file": "为Memos增加twikoo评论.md", "file": "Moments.md",
"linksCollapsed": false, "linksCollapsed": false,
"unlinkedCollapsed": true "unlinkedCollapsed": true
} }
@ -139,7 +126,7 @@
"state": { "state": {
"type": "outline", "type": "outline",
"state": { "state": {
"file": "为Memos增加twikoo评论.md" "file": "Moments.md"
} }
} }
} }
@ -157,16 +144,17 @@
"canvas:新建白板": false, "canvas:新建白板": false,
"daily-notes:打开/创建今天的日记": false, "daily-notes:打开/创建今天的日记": false,
"templates:插入模板": false, "templates:插入模板": false,
"command-palette:打开命令面板": false "command-palette:打开命令面板": false,
"templater-obsidian:Templater": false
} }
}, },
"active": "2efb4c2d02f0a7c4", "active": "2c1da5bfefdfe47c",
"lastOpenFiles": [ "lastOpenFiles": [
"未命名.md", "1.md",
"为Memos增加twikoo评论.md", "为Memos增加twikoo评论.md",
"未命名.md",
"Moments.md", "Moments.md",
"memos-api-call-rendering-page.md", "memos-api-call-rendering-page.md",
"1.md",
"small-sheep-snh48-xu-yang-yuzhuo.md", "small-sheep-snh48-xu-yang-yuzhuo.md",
"wechat-keyboard-online.md", "wechat-keyboard-online.md",
"ypecho文章内的超链接在新窗口打开.md", "ypecho文章内的超链接在新窗口打开.md",

38
obs_sctipts/NewBlog.js Normal file
View File

@ -0,0 +1,38 @@
const util = require('util');
const child_process = require('child_process');
const exec = util.promisify(child_process.exec);
function getCreateTimeAsFileName() {
var d = new Date();
var year = d.getFullYear();
var month = d.getMonth()+1;
var day = d.getDate();
var hour = d.getHours();
var minute = d.getMinutes();
var second = d.getSeconds();
var time = year+"m"+month+"d"+day+"h"+hour+"m"+minute+"s"+second;
return time;
}
// execute command function
async function executeCommand() {
const fileName = getCreateTimeAsFileName()+".md";
const { stdout, stderr } = await exec('hugo new posts/' +fileName,{cwd: app.fileManager.vault.adapter.basePath});
console.log('stdout:', stdout);
console.log('stderr:', stderr);
if (stdout) {
new Notice("New Blog Created["+fileName+"]")
}else{
new Notice("New Blog Create Faild. "+stderr)
}
}
module.exports = async function(context, req) {
await executeCommand();
}