- Print
- PDF
Hugo
- Print
- PDF
Available in Classic
Hugo is the most popular open source static site creation service written in the Go language. You can quickly create static web pages and easily manage them.
The advantages of using Hugo are as follows:
- You can reliably use Hugo utilizing the infrastructure services of NAVER Cloud Platform.
- The Go language runtime is provided simultaneously with the VM installation.
For more information on the software used in NAVER Cloud Platform's Hugo, see the following websites:
Creating and accessing server
The method for creating and accessing the server is the same as creating a regular server on NAVER Cloud Platform. The following are detailed procedures and reference guides:
Procedure | Description |
---|---|
1. Set ACG |
|
2. Create server |
|
3. Set public IP |
|
4. Set port forwarding |
|
5. Get admin password |
|
6. Access server |
|
After you access and log in to the server, change the password of the root account to one you can remember. Enter the passwd root
command to set a new password.
Using server
When the server is created, the Hugo software is installed for easy use.
The following describes the directory of the installed software.
Directory | Description |
---|---|
/usr/local/go |
|
/root/hugo |
|
/root/go |
|
/root/demosite |
|
Create static site with default theme
The following describes how to create a demo site utilizing the Hyde theme installed as default.
Access the server, and then enter the
cd /root/demosite
command.Enter the following commands and run the server.
hugo server -D -p (service port set in ACG) --bind 0.0.0.0 --baseURL http://(public IP address) &
- <example> When the service port set in ACG is 11313, and the public IP address is 123.123.123.123:
hugo server -D -p 11313 --bind 0.0.0.0 --baseURL http://123.123.123.123 &
- <example> When the service port set in ACG is 11313, and the public IP address is 123.123.123.123:
Open the web browser, and enter the URL.
http://(public IP address):(service port set in ACG)
- If it is run successfully, the page with the default theme applied is displayed.
To close the demo server, enter the following commands:
pkill -9 hugo
Create static site with custom theme
Hugo provides various official themes. Check the themes you can use in Hugo official theme page.
Because a Github repository provided by theme and how to use it are different, visit the webpage and see how to install and use it.