Skip to Content

Create Hugo Website

How this webSite was created

Tools

The tool selected is Hugo.

The operating System is Unbutu (linux).

Actualy is Windows 10 Running a Virtual Machine with Unbutu.

The tool to edit the content is gedit

Basic instalation

Install Hugo on Unbuntu from terminal:

sudo apt-get install hugo

Create the website

Create the WebSite

hugo new site mysite

This will create a folder called mysite.

Go to the folder

cd mysite/

Choose your theme.

Goto to the download page. Copy that URL to the comand

git init

git submodule add <URL> themes/<NameTheme>

Some examples:


git submodule add https://github.com/JugglerX/hugo-whisper-theme themes/whisper

git submodule add https://github.com/htr3n/hyde-hyde themes/hyde

git submodule add https://github.com/siegerts/hugo-theme-basic themes/basic

git submodule add https://github.com/Track3/hermit themes/hermit

git submodule add https://github.com/MunifTanjim/minimo themes/minimo

git submodule add https://github.com/xiaoheiAh/hugo-theme-pure themes/pure

Add the theme to the config.toml file.

(You can edit the theme later)

echo 'theme = "<NameTheme>"' >> config.toml

Test the site

Launch the hugo server to test

jac@ubuntu:~/mysite$ hugo server

                   | EN  
+------------------+----+
  Pages            | 10  
  Paginator pages  |  0  
  Non-page files   |  0  
  Static files     |  1  
  Processed images |  0  
  Aliases          |  4  
  Sitemaps         |  1  
  Cleaned          |  0  

Total in 17 ms
Watching for changes in /home/jac/mysite/{archetypes,content,data,layouts,static,themes}
Watching for config changes in /home/jac/mysite/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

Open a browser and goto

http://localhost:1313/

Generating the site

Publishing the site