0%
为Hugo Next主题添加Umami统计支持
为Hugo Next主题添加Umami统计支持
概述
最近我将博客的统计工具从其他方案迁移到了开源的 Umami ,但发现 Hugo 的 Next 主题默认并不支持 Umami。经过一番研究,我成功地为该主题添加了 Umami 统计支持。本文将详细介绍实现过程,为使用 Hugo 博客的用户提供一个完整的 Umami 集成解决方案。
GeoLite2 自动搬运仓库使用手册
GeoLite2 自动搬运仓库使用手册
利用 GitHub Actions 每 3 天自动拉取 MaxMind 官方 GeoLite2-City/Country/ASN 数据库并发布 Release,供内网或生产环境 wget 使用。
前置条件
| 项目 | 说明 |
|---|---|
| GitHub 账号 | 需能创建公开仓库 |
| MaxMind 账号 | 免费申请,用于获取 license_key(白名单地区建议选 US/JP)注册步骤:
MaxMind 免费账号注册
|
| 浏览器 | 用于配置仓库密钥 |
一键 Fork 仓库
- 打开 https://github.com/P3TERX/GeoLite.mmdb
- 点击右上角 Fork → 选择你的账号 → 完成
- 得到自己的仓库地址:
https://github.com/<你的用户名>/GeoLite.mmdb
配置密钥(Secrets)
路径:Settings → Secrets and variables → Actions → New repository secret