<your-path-to-the-repository>
npm install
npm run start
# or
hugo server -D
http://localhost:<assigned-port-depends>
http://localhost:1313
1 ---
2 author: <author-name>
3 title: <title-of-my-blog-post>
4 date: YYYY-MM-DD
5 tags: ["exemple1", "tag2", "anotherOne"]
6 thumbnail: img/<name-of-your-picture>.jpg
7 ---
config.toml
line 173 unsafe = true
: it allows you to put links in the body text of a blog postcontent/
folderconfig.toml
codeconfig.toml
file
config.toml
[languages.en]
weight = new-weight
[[languages.en.menu.main]]
[[languages.en.menu.main]]
name = "Name which is displayed"
url = "/<path-to-folder>/<where-your-new-content-folder-is>/"
weight = number
<number>
and after the items that have a weight higher than <number>
url
, you get an error. To solve it you have to create a page or a folder with the same name as your url
(for more information see next section)parent
and weight
[[languages.en.menu.main]]
identifier = "Unique name for this"
name = "Name which is displayed child"
url = "/<path-to-folder>/<where-your-new-content-folder-is>/<sub-file>/"
parent = "Name which is displayed"
weight = number
cd <your-path-to-the-repository>
npm run build
You can check that the build is working well by running the build code with a small local python server. You must have python3 installed. This is not explained in this document.
<your-path-to-the-repository>/public/
python3 -m http.server
http://localhost:8000
for example