大峰笔记
  • 关于
  • 搜索

Hugo版本升级 Thu, Mar 17, 2022

这两天看到hugo官网有新的版本更新,想着要不也更新一下吧,升级到最新版本,现在使用的hugo版本是hugo v0.95.0,查了两天资料,没搞定,家里的电脑成功更新了,单位的就是更新不了,查看官网资料后,原来如此简单,记录一下:

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:

$ # 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

较新的一篇: 雷车第三次保养
较旧的一篇: 最近的疫情

Back to Home | bXpmOTk5QHFxLmNvbQ== | TOP ↑
hugo.386 | © 2025 | 苏ICP备2022047275号-1,苏公网安备 32020602001142号