Skip to content

Commit

Permalink
Docs: 修改脚手架模板仓库地址
Browse files Browse the repository at this point in the history
  • Loading branch information
Lruihao committed Jan 11, 2024
1 parent 34be9b9 commit f5da317
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 14 deletions.
8 changes: 5 additions & 3 deletions README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@

- [Node.js](https://nodejs.org/) (>= 16.0.0)
- [Git](https://git-scm.com/)
- [Hugo](https://gohugo.io/) extended (>= 0.109.0)
- [Hugo](https://gohugo.io/) extended (>= 0.112.0)

If you use the [Hugo Modules](https://gohugo.io/hugo-modules/) feature to load the theme, you will also need to install [Go](https://go.dev/dl/).

## Installation

Expand Down Expand Up @@ -51,8 +53,8 @@ npm run test -- -h
## Related Projects

- [FixIt](https://github.com/hugo-fixit/FixIt)
- [hugo-fixit-blog-git](https://github.com/hugo-fixit/hugo-fixit-blog-git)
- [hugo-fixit-blog-go](https://github.com/hugo-fixit/hugo-fixit-blog-go)
- [hugo-fixit-starter](https://github.com/hugo-fixit/hugo-fixit-starter)
- [hugo-fixit-starter1](https://github.com/hugo-fixit/hugo-fixit-starter1)

## Author

Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@

- [Node.js](https://nodejs.org/) (>= 16.0.0)
- [Git](https://git-scm.com/)
- [Hugo](https://gohugo.io/) 扩展版 (>= 0.109.0)
- [Hugo](https://gohugo.io/) 扩展版 (>= 0.112.0)

如果你使用使用 [Hugo 模块](https://gohugo.io/hugo-modules/) 功能加载主题,你还需要安装 [Go](https://golang.org/dl/)

## 安装

Expand Down Expand Up @@ -51,8 +53,8 @@ npm run test -- -h
## 相关项目

- [FixIt](https://github.com/hugo-fixit/FixIt)
- [hugo-fixit-blog-git](https://github.com/hugo-fixit/hugo-fixit-blog-git)
- [hugo-fixit-blog-go](https://github.com/hugo-fixit/hugo-fixit-blog-go)
- [hugo-fixit-starter](https://github.com/hugo-fixit/hugo-fixit-starter)
- [hugo-fixit-starter1](https://github.com/hugo-fixit/hugo-fixit-starter1)

## 作者

Expand Down
16 changes: 8 additions & 8 deletions lib/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,20 @@ function createAction() {
message: 'Please choose a template:',
name: 'template',
choices: [
{
name: 'Git submodule',
value: 'git',
},
{
name: 'Hugo module',
value: 'go',
},
{
name: 'Git submodule',
value: 'git',
},
],
}
]
const repositories = {
git: 'https://github.com/hugo-fixit/hugo-fixit-blog-git.git',
go: 'https://github.com/hugo-fixit/hugo-fixit-blog-go.git',
go: 'https://github.com/hugo-fixit/hugo-fixit-starter.git',
git: 'https://github.com/hugo-fixit/hugo-fixit-starter1.git',
}
const projectName = process.argv[3]
if (projectName) {
Expand Down Expand Up @@ -121,8 +121,8 @@ function checkAction() {
spinner.succeed()
console.log(`Release Notes: ${chalk.cyan(homeUrl)}\n\n${chalk.magenta(changelog)}\n`)
console.log(`${chalk.green('Note:')}\nYou can use commands below to update FixIt theme to the latest version.\n`)
console.log(`Git submodule:\n ${chalk.blue('git submodule update --remote --merge themes/FixIt')}`)
console.log(`Hugo module:\n ${chalk.blue(`hugo mod get -u github.com/hugo-fixit/FixIt@${version}\n hugo mod tidy\n`)}`)
console.log(`Hugo module:\n ${chalk.blue(`hugo mod get -u github.com/hugo-fixit/FixIt@${version}\n hugo mod tidy`)}`)
console.log(`Git submodule:\n ${chalk.blue('git submodule update --remote --merge themes/FixIt')}\n`)
})
.catch((error) => {
spinner.text = `${chalk.red('[Failed]')} failed to check the latest version of FixIt theme.`
Expand Down

0 comments on commit f5da317

Please sign in to comment.