选择统计工具 使用自己写的工具 使用不蒜子 使用 Vercount 修改文件 修改配置文件(增加开关) 修改 hugo.yaml 1 2 3 4 params: addons: vercount: # Vercount 网站计数器 https://github.com/EvanNotFound/vercount enable: true 修改页面 修改 themes/PaperMod/layouts/partials/extend_footer.html 增加以下内容 1 2 3 4 5 6 7 8 9 10 11 12 13 {{- /* Footer custom content area start */ -}} {{- /* Insert any custom code web-analytics, resources, etc. here */ -}} {{ if .Site.Params.addons.vercount.enable -}} <script defer src="https://events.vercount.one/js"></script> <footer class="footer"> <span> 总访问次数:<span id="vercount_value_site_pv">Loading</span> 次(<span...
一个好用的开源 SVG 图标查找网站
网址是: https://svgrepo.com 非常的好用!
随笔这个分类为什么不显示
如果文章有两条都在随笔下面,看看还显示不显示。 url 从 categories 改成 /catagories/ 就好了。也可能是缓存的原因。 1 2 3 4 5 6 menu: main: - identifier: categories name: 🧩 分类 url: /categories/ weight: 4
ChartGPT目前还是不会计算小数
打开 Eage 浏览器时,瞥到一条新闻。说是目前 ChartGPT 普遍在比较两个小数时会犯一个错,比如 13.8 和 13.11 哪个大? 所以就好奇的看了一下,用了我最常用的 kimi 。聊天内容如下: Figure 1: 截图
用 org-roam 写 hugo 文章
写模板 导出 方法1: 手动导出 C-c,C-e,H,H 方法2: org-hugo-auto-export-mode #+HUGO_DRAFT: 改成 false Syncthing 同步到服务器
网站接下来的任务
访问次数集成 评论系统 与 org-roam 集成 与 集成 easy hugo 好像并不好用,
hugo 作者修改
文件头加上 #+AUTHOR: 七二十洞天
hugo 部署服务器的问题
网上的教程都是用 github action, 可是我不用 github, 只想部署本地。 2024-07-04 发现方法: hugo –watch
让 hugo 能把 attach 方式导入的资源发布到 public
说明 重写 ox-hugo/ox-hugo.el 中的 org-hugo--attachment-rewrite-maybe 方法(大约在3189行) 1 2 3 4 5 6 7 ;;... (let* ((file-name-relative-path ;; ... ;; ... ((string-match (regexp-quote default-directory) path-true) (substring path-true (match-end 0))) ;; ... 把 (substring path-true (match-end 0)) (大约 3267 行) 修改为: 1 2 3 4 5 6 (let* ((attach-path (substring path-true (match-end 0))) ;; 如果 以 ~org-attach-directory~ 开头,通常是: ~xxxxx/.attach/xx/xxxxxx/xxxx. (rewrite-attach-path (if (string-match (regexp-quote (file-truename org-attach-directory)) path-true) (concat "attach/" (file-name-nondirectory attach-path)) attach-path))) ;;(message "[ox-hugo DBG attch rewrite BUNDLE 2] attch along with Org content: %s" rewrite-attach-path) rewrite-attach-path) 完整内容如下: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22...
测试 hugo bundle
生成的路径应为 2024/07/05/测试-hugo-bundle/index.md 试着插入图片 Figure 1: 截图 第二张 Figure 2: 截图
试着插入一个图片
Figure 1: 截图