这两天看到hugo官网有新的版本更新,想着要不也更新一下吧,升级到最新版本,现在使用的hugo版本是hugo v0.95.0,查了两天资料,没搞定,家里的电脑成功更新了,单位的就是更新不了,查看官网资料后,原来如此简单,记录一下:
1
|
1、博客文件夹右键Git Bash Here---2、复制黏贴ls -l $( which hugo )回车---3、显示rwxr-xr-x 1 mdhender admin 30 Mar 28 22:19 /usr/local/bin/hugo -> ../Cellar/hugo/0.13_1/bin/hugo
|
下载最新的hugo版本,把解压出来的hugo.exe文件替换掉上面第三步显示出路径的hugo( /c/ProgramData/chocolatey/bin/hugo)
然后输入hugo version即可查看当前版本。
官网中有具体说明,Install Hugo with Brew —–brew
should have updated your path to include Hugo. You can confirm by opening a new terminal window and running a few commands:
1
2
3
4
5
6
7
8
9
10
11
|
$ # show the location of the hugo executable
which hugo
/usr/local/bin/hugo
# show the installed version
ls -l $( which hugo )
lrwxr-xr-x 1 mdhender admin 30 Mar 28 22:19 /usr/local/bin/hugo -> ../Cellar/hugo/0.13_1/bin/hugo
# verify that hugo runs correctly
hugo version
Hugo Static Site Generator v0.13 BuildDate: 2015-03-09T21:34:47-05:00
|