基于 Hugo & NavSide 主题。
- Hugo
curl -L https://fx4.cn/hugo | bash -s -- -w
-
初始化或更新子模块
# 初次使用时 git submodule update --init --recursive # 需要更新 submodule (主题)时 git submodule update --recursive --remote
-
测试
hugo serve
-
构建
# 构建 hugo build --minify # 拉取 icon bash ./.deploy.sh # 部署 bash ./.deploy.sh -d
需要先修改 logo:
部分的文件名,以提供下述方式 favicon:
保存。
-
从 Google
# favicon: <URL> https://www.google.com/s2/favicons?sz=48&domain_url=https%3A%2F%2Fgitcode.com # 或直接 https://t1.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=https://gitcode.com&size=48 https://t3.gstatic.cn/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=https://gitcode.com&size=48
-
从自建方式获取
# favicon: <URL>
- 自建方式一(PHP): https://github.com/deploybox/favicon-1
- 自建方式二(PHP): https://github.com/deploybox/favicon-2
- 自建方式三(CloudFlare): https://github.com/Aetherinox/searxico-worker