🇬🇧 Quick Start
Dernière mise à jour
Cet article vous a-t-il été utile ?
Dernière mise à jour
Cet article vous a-t-il été utile ?
To verify your new install:
The above will create a new Hugo site in a folder named quickstart
.
See for a list of themes to consider. This quickstart uses the beautiful .
First, download the theme from GitHub and add it to your site’s themes
directory:
Note for non-git users:
If you do not have git installed, you can download the archive of the latest version of this theme from:
Extract that .zip file to get a “gohugo-theme-ananke-master” directory.
Rename that directory to “ananke”, and move it into the “themes/” directory.
Then, add the theme to the site configuration:
You can manually create content files (for example as content//.
) and provide metadata in them, however you can use the new
command to do a few things for you (like add title and date):
Edit the newly created content file if you want, it will start with something like this:
Feel free to edit or add new content and simply refresh in browser to see changes quickly (You might need to force refresh in webbrowser, something like Ctrl-R usually works).
Your new site already looks great, but you will want to tweak it a little before you release it to the public.
Open up config.toml
in a text editor:
Replace the title
above with something more personal. Also, if you already have a domain ready, set the baseURL
. Note that this value is not needed when running the local development server.
It is simple. Just call:
Output will be in ./public/
directory by default (-d
/--destination
flag to change it, or set publishdir
in the config file).
(commandes et test par @Léolios)
Now, start the Hugo server with enabled:
Navigate to your new site at .
For theme specific configuration options, see the .
For further theme customization, see .
Thème dispo :