1

Hi , Obsidian Digital Garden

 8 months ago
source link: https://immmmm.com/hi-obsidian-digital-garden/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

一个能直接把 Obsidian 文档发布建站的插件!

几天前发现非常好用的 Obsidian 插件挂了,只能发布但不能更新和删除。经过一番搜寻找到 @DAYU 22 年底就发布文章,自己也扫过一眼,一眼,云烟,不见。

经常尝试,发现部署异常简单,简而言之就是:安装插件、填入信息、提交部署,后续更新只需要在 Obsidian 内完成。

与题图对应的 Obsidian 内容如下:

obdg-6
odg-2.png
odg-3.png

hermitage || gachi

odg-4.png
odg-5.png

oldwinter || 哆啦 A 梦在做梦

个人折腾记录

仓库地址:https://github.com/lmm214/edui123

插件安装、Github 信息填写

略,建议看一下加 🌟 的那篇。

部署到 CloudFlare

官方教程 Hosting alternatives 提示支持:

打开这个仓库:https://github.com/oleeskild/digitalgarden,点击 Use This Template 新建 Github 项目。

odg-7

CloudFlare 中新建 Pages 并连接,构建命令和输出目录填写 例如 里的代码。

odg-8

至此部署完成。

优化踩坑记录

关闭自动构建,开启部署挂钩,手动 POST 触发

记得 CF 500 次 / 个 / 月,而 Digital Garden 利用的是 Github API,所有文件修改都是一个个提交的,若不如此操作,我那昨天开新建的仓库已经有 194 commits 。

odg-10
odg-11
odg-12

启用「霞鹜文楷」在线字体

01-lxgw.njksrc/site/_includes/components/user/common/head/01-lxgw.njk

下载后丢入对应文件夹内,当然,也可以直接暴力地仓库里的文件。具体说明见官方教程:Adding custom components

添加自定义样式若干

custom-style.csssrc/site/styles/user/custom-style.css

自定义样 favicon.svg

路径:src/site/favicon.svg

更多折腾推荐个学习仓库

https://github.com/uroybd/topobon/tree/main


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK