## Hugo ### 1 Intorduction This is a static site generator that is really difficult to set up, but when you're done, it's super easy to make new posts. Here I will make a HUGO tutorial for the future Andrej so, when he forgets, he can easily get started with hugo again! ### 2 Commands Here I will list out commands that have been used up until now. Hopefully this will assist you in the future site making! ##### 2.1 Command "hugo new site" In order to do anything, you need to create a hugo folder! This can be done using the following command: ``` > hugo new site nameofsitefolder ``` This folder contains all the components needed to start making your site. ##### 2.2 Command "hugo server" This command starts a background process in therminal that checks for any changes in the hugo folder and applies them immediately, i.e. the whole site gets recompiled! ``` > hugo server --noHTTPCache ``` You can optionally add the argument "noHTTPCache" in order to make your web-browser refresh every change you make! This will make you less prone to destroy your computer. ### 3 File Structure In this section I will discuss about the structure of the main folder and about the purpose of each subfolder in hugo. ##### 3.1 Folders The following folders are generated automatically in hugo: - archetypes - assets - content - data - layouts - publuic - resources - static - themes There is also one file generated named "config.toml". ##### 3.2 Config File The first thing you need to do is to edit the config.toml! You just need to add the following information: ``` baseURL = 'http://example.org/' languageCode = 'en-us' title = 'NameOfSite' ``` You can add additional information, but this is also completely sufficient to start editing other components of hugo. Not adding this will result in an error when trying to compile the site.