Basic Usage - hugo
hugo
code:shell
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 620 0 620 0 0 182 0 --:--:-- 0:00:03 --:--:-- 182
100 7471k 100 7471k 0 0 646k 0 0:00:11 0:00:11 --:--:-- 1383k
$ tar zxf hugo_0.49.2_Linux-64bit.tar.gz
$ ./hugo version
Hugo Static Site Generator v0.49.2 linux/amd64 BuildDate: 2018-10-11T09:48:27Z
code:shell
$ hugo new site my-site
Congratulations! Your new Hugo site is created in /home/tk3/devel/tmp/my-site.
Just a few more steps and you're ready to go:
1. Download a theme into the same-named folder.
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".
code:shell
Cloning into 'themes/ananke'...
remote: Enumerating objects: 23, done.
remote: Counting objects: 100% (23/23), done.
remote: Compressing objects: 100% (21/21), done.
remote: Total 1138 (delta 2), reused 11 (delta 1), pack-reused 1115
Receiving objects: 100% (1138/1138), 2.53 MiB | 1.21 MiB/s, done.
Resolving deltas: 100% (600/600), done.
Checking connectivity... done.
$ echo 'theme = "ananke"' >> config.toml