hugo 增加 访问统计

选择统计工具 使用自己写的工具 使用不蒜子 使用 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...

2025-07-24 · 1 分钟 · 七二十洞天

网站接下来的任务

访问次数集成 评论系统 与 org-roam 集成 与 集成 easy hugo 好像并不好用,

2024-07-06 · 1 分钟 · 七二十洞天

hugo 作者修改

文件头加上 #+AUTHOR: 七二十洞天

2024-07-06 · 1 分钟 · 七二十洞天

hugo 部署服务器的问题

网上的教程都是用 github action, 可是我不用 github, 只想部署本地。 2024-07-04 发现方法: hugo –watch

2024-07-06 · 1 分钟 · 七二十洞天

让 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...

2024-07-05 · 2 分钟 · 七二十洞天