diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json index f363c7e..e8b0f68 100644 --- a/.obsidian/workspace.json +++ b/.obsidian/workspace.json @@ -13,7 +13,7 @@ "state": { "type": "markdown", "state": { - "file": "_posts/pool/2024-09-23.md", + "file": "_posts/brain/2024-09-06-github_page+obsidian实现个人笔记云管理.md", "mode": "source", "source": false } @@ -85,7 +85,7 @@ "state": { "type": "backlink", "state": { - "file": "_posts/pool/2024-09-23.md", + "file": "_posts/brain/2024-09-06-github_page+obsidian实现个人笔记云管理.md", "collapseAll": false, "extraContext": false, "sortOrder": "alphabetical", @@ -102,7 +102,7 @@ "state": { "type": "outgoing-link", "state": { - "file": "_posts/pool/2024-09-23.md", + "file": "_posts/brain/2024-09-06-github_page+obsidian实现个人笔记云管理.md", "linksCollapsed": false, "unlinkedCollapsed": true } @@ -125,7 +125,7 @@ "state": { "type": "outline", "state": { - "file": "_posts/pool/2024-09-23.md" + "file": "_posts/brain/2024-09-06-github_page+obsidian实现个人笔记云管理.md" } } }, @@ -173,14 +173,15 @@ "obsidian-excalidraw-plugin:新建绘图文件": false } }, - "active": "f880743501d2682d", + "active": "a7dc62ad9734e7f6", "lastOpenFiles": [ + "_posts/brain/2024-09-20-obsidian ios多平台同步超完美方案.md", + "_posts/engineering/2024-09-11-git版本管理常见技巧.md", + "_posts/pool/2024-09-23.md", "_posts/pool/2024-09-21.md", "_posts/math/2024-08-13-泰勒公式.md", - "_posts/pool/2024-09-23.md", "_posts/engineering/2024-09-05-免费且私密的联网搜索组件duckduckgo.md", "_posts/engineering/2024-09-06-windows无cpu启动stable-diffusion API接口.md", - "_posts/brain/2024-09-20-obsidian ios多平台同步超完美方案.md", "_posts/coding/2024-08-13-generator.md", "assets/img/Dingtalk_20240906094335.jpg", "assets/img/Dingtalk_20240906103403.jpg", @@ -192,7 +193,6 @@ "_posts/pool/2024-09-04-模板测试.md", "_posts/engineering/2024-09-09-linux新机器安装nvidia驱动.md", "_posts/engineering/2024-09-13-linux安装全局可用的conda+创建有root权限的新账号.md", - "_posts/engineering/2024-09-11-git版本管理常见技巧.md", "_posts/brain", "assets/draft/2024-09-18-日记.md", "assets/draft", diff --git "a/_posts/brain/2024-09-06-github_page+obsidian\345\256\236\347\216\260\344\270\252\344\272\272\347\254\224\350\256\260\344\272\221\347\256\241\347\220\206.md" "b/_posts/brain/2024-09-06-github_page+obsidian\345\256\236\347\216\260\344\270\252\344\272\272\347\254\224\350\256\260\344\272\221\347\256\241\347\220\206.md" index 3d7aa42..e65e9f2 100644 --- "a/_posts/brain/2024-09-06-github_page+obsidian\345\256\236\347\216\260\344\270\252\344\272\272\347\254\224\350\256\260\344\272\221\347\256\241\347\220\206.md" +++ "b/_posts/brain/2024-09-06-github_page+obsidian\345\256\236\347\216\260\344\270\252\344\272\272\347\254\224\350\256\260\344\272\221\347\256\241\347\220\206.md" @@ -15,7 +15,7 @@ tags: 此外,文档开头也需要一组"---"包围的文档属性说明,形式如下: -![文档属性说明](assets/img/Dingtalk_20240906094335.jpg) +![文档属性说明](../../assets/img/Dingtalk_20240906094335.jpg) 这显然很麻烦,很快想到了用脚本或模板形式来快速创建符合格式的md文档。不想自己从头造轮子,马上想到的是利用vscode的活动模板,跟着下面这个教程做的: @@ -25,59 +25,33 @@ tags: ```json { - -    // Place your snippets for markdown here. Each snippet is defined under a snippet name and has a prefix, body and - -    // description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: - -    // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the - -    // same ids are connected. - -    // Example: - -    // "Print to console": { - -    //  "prefix": "log", - -    //  "body": [ - -    //      "console.log('$1');", - -    //      "$2" - -    //  ], - -    //  "description": "Log output to console" - -    // } - -    "Insert Current Date": { - -        "prefix": "title", - -        "body": [ - -            "---", - -            "title:", - -            "author: X", - -            "date: ${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE} ${CURRENT_HOUR}:${CURRENT_MINUTE}:${CURRENT_SECOND} +0800", - -            "categories: []", - -            "tags: []", - -            "---" - -        ], - -        "description": "Insert current date in Markdown format" - -    }   - + // Place your snippets for markdown here. Each snippet is defined under a snippet name and has a prefix, body and + // description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: + // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the + // same ids are connected. + // Example: + // "Print to console": { + // "prefix": "log", + // "body": [ + // "console.log('$1');", + // "$2" + // ], + // "description": "Log output to console" + // } + + "Insert Current Date": { + "prefix": "title", + "body": [ + "---", + "title:", + "author: X", + "date: ${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE} ${CURRENT_HOUR}:${CURRENT_MINUTE}:${CURRENT_SECOND} +0800", + "categories: []", + "tags: []", + "---" + ], + "description": "Insert current date in Markdown format" + } } ``` @@ -98,11 +72,11 @@ tags: 有些需要注意的点是,在obsidian中,文件属性不是以前文所看到的形式显示的,而是: -![](assets/img/Dingtalk_20240906103403.jpg) +![](../../assets/img/Dingtalk_20240906103403.jpg) 在你填写完categories和tags之后呢,实际也并不是原先手写时的`[tag1, tag2]`形式,而是: -![](assets/img/Dingtalk_20240906103705.jpg) +![](../../assets/img/Dingtalk_20240906103705.jpg) 但并不影响部署发布,`Jekyll`还是可以完美识别的。 自此,你可以在obsidian中丝滑创作笔记,推送库可以利用第三方插件`Git`,实现笔记全流程都在同一平台管理。你也可以继续使用obsidian的内部链接功能,只不过发布后不再是链接,只会保留标题名称。 \ No newline at end of file