Hello World
292 字
1 分钟
Hello World
引入主题及组件
git submodule add https://github.com/hugo-fixit/FixIt.git themes/FixItgit submodule add https://github.com/hugo-fixit/cmpt-translate.git themes/cmpt-translategit submodule add https://github.com/hugo-fixit/component-projects.git themes/component-projectsgit submodule add https://github.com/hugo-fixit/hugo-json-feed.git themes/hugo-json-feedgit submodule add https://github.com/hugo-fixit/shortcode-mmt-netease.git themes/shortcode-mmt-neteasegit submodule add https://github.com/hugo-fixit/cmpt-flyfish.git themes/cmpt-flyfishgit submodule add https://github.com/hugo-fixit/shortcode-rewards.git themes/shortcode-rewardsgit submodule add https://github.com/hugo-fixit/shortcode-caniuse.git themes/shortcode-caniusegit submodule add https://github.com/hugo-fixit/hugo-atom-feed.git themes/hugo-atom-feedgit submodule add https://github.com/hugo-fixit/cmpt-mdevtools.git themes/cmpt-mdevtoolsgit submodule add https://github.com/hugo-fixit/shortcode-asciinema.git themes/shortcode-asciinemagit submodule add https://github.com/hugo-fixit/shortcode-docs-bookmark.git themes/shortcode-docs-bookmarkgit submodule add https://github.com/hugo-fixit/shortcode-missing-translation.git themes/shortcode-missing-translationgit submodule add https://github.com/hugo-fixit/shortcode-sponsor-log.git themes/shortcode-sponsor-loggit submodule add https://github.com/hugo-fixit/cmpt-santa-hat.git themes/cmpt-santa-hatgit submodule add https://github.com/hugo-fixit/fixit-bundle.git themes/fixit-bundle应用主题
theme = ["FixIt", "cmpt-translate", "component-projects", "hugo-json-feed", "shortcode-mmt-netease", "cmpt-flyfish", "shortcode-rewards", "shortcode-caniuse", "hugo-atom-feed", "cmpt-mdevtools", "shortcode-asciinema", "shortcode-docs-bookmark", "shortcode-missing-translation", "shortcode-sponsor-log", "fixit-bundle", "cmpt-santa-hat"]复制静态文件
data && assets && static更新主体
git submodule update --remote --merge themes/anzhiyu备用代码
添加子主题
solitude
git submodule add -b dev https://github.com/everfu/hexo-theme-solitude.git themes/solitudegit submodule add https://github.com/richbridge/posts.git source/_postsanzhiyu
git submodule add -b dev https://github.com/anzhiyu-c/hexo-theme-anzhiyu.git themes/anzhiyugit submodule add https://github.com/richbridge/posts.git source/_postsfixit
git submodule add https://github.com/hugo-fixit/FixIt.git themes/FixItgit submodule add https://github.com/hugo-fixit/cmpt-translate.git themes/cmpt-translategit submodule add https://github.com/hugo-fixit/component-projects.git themes/component-projectsgit submodule add https://github.com/hugo-fixit/hugo-json-feed.git themes/hugo-json-feedgit submodule add https://github.com/hugo-fixit/shortcode-mmt-netease.git themes/shortcode-mmt-neteasegit submodule add https://github.com/hugo-fixit/cmpt-flyfish.git themes/cmpt-flyfishgit submodule add https://github.com/hugo-fixit/shortcode-rewards.git themes/shortcode-rewardsgit submodule add https://github.com/hugo-fixit/shortcode-caniuse.git themes/shortcode-caniusegit submodule add https://github.com/hugo-fixit/hugo-atom-feed.git themes/hugo-atom-feedgit submodule add https://github.com/hugo-fixit/cmpt-mdevtools.git themes/cmpt-mdevtoolsgit submodule add https://github.com/hugo-fixit/shortcode-asciinema.git themes/shortcode-asciinemagit submodule add https://github.com/hugo-fixit/shortcode-docs-bookmark.git themes/shortcode-docs-bookmarkgit submodule add https://github.com/hugo-fixit/shortcode-missing-translation.git themes/shortcode-missing-translationgit submodule add https://github.com/hugo-fixit/shortcode-sponsor-log.git themes/shortcode-sponsor-loggit submodule add https://gitee.com/richfan/posts.git content/posts更新子主题
solitude
git submodule update --remote --merge source/_postsgit submodule update --remote --merge themes/AstraBaygit submodule update --remote --merge themes/solitudeanzhiyu
git submodule update --remote --merge source/_postsgit submodule update --remote --merge themes/anzhiyufixit
git submodule update --remote --merge content/postshugo mod get -u ./...添加多个仓库
git remote set-url —add origin https://github.com/richbridge/posts.git
支持与分享
如果这篇文章对你有帮助,欢迎分享给更多人或打赏支持!
相关文章智能推荐
1
Apache Shiro 教程
程技2026-06-26
2
Veitool V2.3.5 源码深度解读
程技2026-06-20
3
勾股OA 源码解读 — ThinkPHP 8 + Layui 企业OA系统
程技2026-06-20
4
Sa-Token PHP 使用手册
程技2026-06-18
5
ThinkPHP8微服务架构实战:构建高可用API网关系统 | PHP微服务教程
程技2026-06-18
随机文章随机推荐
樊笼










