Hello World

引入主题及组件

1
2
3
4
5
6
7
8
9
10
11
12
13
14
git submodule add https://github.com/hugo-fixit/FixIt.git themes/FixIt
git submodule add https://github.com/hugo-fixit/cmpt-translate.git themes/cmpt-translate
git submodule add https://github.com/hugo-fixit/component-projects.git themes/component-projects
git submodule add https://github.com/hugo-fixit/hugo-json-feed.git themes/hugo-json-feed
git submodule add https://github.com/hugo-fixit/shortcode-mmt-netease.git themes/shortcode-mmt-netease
git submodule add https://github.com/hugo-fixit/cmpt-flyfish.git themes/cmpt-flyfish
git submodule add https://github.com/hugo-fixit/shortcode-rewards.git themes/shortcode-rewards
git submodule add https://github.com/hugo-fixit/shortcode-caniuse.git themes/shortcode-caniuse
git submodule add https://github.com/hugo-fixit/hugo-atom-feed.git themes/hugo-atom-feed
git submodule add https://github.com/hugo-fixit/cmpt-mdevtools.git themes/cmpt-mdevtools
git submodule add https://github.com/hugo-fixit/shortcode-asciinema.git themes/shortcode-asciinema
git submodule add https://github.com/hugo-fixit/shortcode-docs-bookmark.git themes/shortcode-docs-bookmark
git submodule add https://github.com/hugo-fixit/shortcode-missing-translation.git themes/shortcode-missing-translation
git submodule add https://github.com/hugo-fixit/shortcode-sponsor-log.git themes/shortcode-sponsor-log

应用主题

1
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"]

复制静态文件

1
data && assets && static

更新主体

1
git submodule update --remote --merge themes/anzhiyu

备用代码

添加子主题

solitude

1
2
git submodule add -b dev https://github.com/everfu/hexo-theme-solitude.git themes/solitude
git submodule add https://github.com/richbridge/posts.git source/_posts

anzhiyu

1
2
git submodule add -b dev https://github.com/anzhiyu-c/hexo-theme-anzhiyu.git themes/anzhiyu
git submodule add https://github.com/richbridge/posts.git source/_posts

fixit

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
git submodule add https://github.com/hugo-fixit/FixIt.git themes/FixIt
git submodule add https://github.com/hugo-fixit/cmpt-translate.git themes/cmpt-translate
git submodule add https://github.com/hugo-fixit/component-projects.git themes/component-projects
git submodule add https://github.com/hugo-fixit/hugo-json-feed.git themes/hugo-json-feed
git submodule add https://github.com/hugo-fixit/shortcode-mmt-netease.git themes/shortcode-mmt-netease
git submodule add https://github.com/hugo-fixit/cmpt-flyfish.git themes/cmpt-flyfish
git submodule add https://github.com/hugo-fixit/shortcode-rewards.git themes/shortcode-rewards
git submodule add https://github.com/hugo-fixit/shortcode-caniuse.git themes/shortcode-caniuse
git submodule add https://github.com/hugo-fixit/hugo-atom-feed.git themes/hugo-atom-feed
git submodule add https://github.com/hugo-fixit/cmpt-mdevtools.git themes/cmpt-mdevtools
git submodule add https://github.com/hugo-fixit/shortcode-asciinema.git themes/shortcode-asciinema
git submodule add https://github.com/hugo-fixit/shortcode-docs-bookmark.git themes/shortcode-docs-bookmark
git submodule add https://github.com/hugo-fixit/shortcode-missing-translation.git themes/shortcode-missing-translation
git submodule add https://github.com/hugo-fixit/shortcode-sponsor-log.git themes/shortcode-sponsor-log
git submodule add https://github.com/richbridge/posts.git content/posts

更新子主题

solitude

1
2
3
git submodule update --remote --merge source/_posts
git submodule update --remote --merge themes/AstraBay
git submodule update --remote --merge themes/solitude

anzhiyu

1
2
git submodule update --remote --merge source/_posts
git submodule update --remote --merge themes/anzhiyu

fixit

1
2
git submodule update --remote --merge content/posts
git submodule update --remote --merge themes/FixIt

添加多个仓库

git remote set-url –add origin https://github.com/richbridge/posts.git