随便建立一个目录,用终端打开后输入hugo new site quickstart,就会生成一个文件夹quickstart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
PS C:\Users\pcvmm\Desktop\data\blog>hugonewsitequickstartCongratulations!YournewHugositewascreatedinC:\Users\pcvmm\Desktop\data\blog\quickstart.Justafewmoresteps...1.ChangethecurrentdirectorytoC:\Users\pcvmm\Desktop\data\blog\quickstart.2.Createorinstallatheme:-Createanewthemewiththecommand"hugo new theme <THEMENAME>"-Installathemefromhttps://themes.gohugo.io/3.Edithugo.toml,settingthe"theme"propertytothethemename.4.Createnewcontentwiththecommand"hugo new content <SECTIONNAME>\<FILENAME>.<FORMAT>".5.Start theembeddedwebserverwiththecommand"hugo server --buildDrafts".Seedocumentationathttps://gohugo.io/.PS C:\Users\pcvmm\Desktop\data\blog>
PS C:\Users\pcvmm\Desktop\data\blog\quickstart> hugo server -D
Watching for changes in C:\Users\pcvmm\Desktop\data\blog\quickstart\{archetypes,assets,content,data,i18n,layouts,static,themes}
Watching for config changes in C:\Users\pcvmm\Desktop\data\blog\quickstart\hugo.toml, C:\Users\pcvmm\Desktop\data\blog\quickstart\themes\ananke\config.yaml
Start building sites …
hugo v0.120.4-f11bca5fec2ebb3a02727fb2a5cfb08da96fd9df+extended windows/amd64 BuildDate=2023-11-08T11:18:07Z VendorInfo=gohugoio
| EN
-------------------+-----
Pages | 10
Paginator pages | 0
Non-page files | 0
Static files | 1
Processed images | 0
Aliases | 1
Sitemaps | 1
Cleaned | 0
Built in 115 ms
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