C:\Users\xinxiamu>hugo version Hugo Static Site Generator v0.73.0-428907CC windows/amd64 BuildDate: 2020-06-23T16:32:10Z
看到打印出hugo的安装版本号,那就说明安装成功了。
源码编译安装
不推荐,需要翻墙,否则编译的时候有些依赖的包无法下载,无法编译成功。
1.安装golang语言环境。
2.把hugo作为一个go项目编译,即能得到对应的二进制可执行文件。
快速使用(win10环境)
第一步:创建一个新的站点
打开某个目录,执行:
script
1 2 3 4 5 6 7 8 9 10 11 12 13
F:\>hugo new site quickstart Congratulations! Your new Hugo site is created in F:\quickstart.
Just a few more steps and you're ready to go:
1. Download a theme into the same-named folder. Choose a theme from https://themes.gohugo.io/ or create your own with the "hugo new theme <THEMENAME>" command. 2. Perhaps you want to add some content. You can add single files with "hugo new <SECTIONNAME>\<FILENAME>.<FORMAT>". 3. Start the built-in live server via "hugo server".
Visit https://gohugo.io/ for quickstart guide and full documentation.
Built in 50 ms Watching for changes in C:\Users\xinxiamu\quickstart\{archetypes,content,data,layouts,static,themes} Watching for config changes in C:\Users\xinxiamu\quickstart\config.toml Environment: "development" Serving pages from memory Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender Web Server is available at http://localhost:1313/ (bind address 127.0.0.1) Press Ctrl+C to stop