If you haven't build website locally yet, run following commands inside theupdateframework
directory (use your forked repository)
$ yarn install
$ hugo server
This will run website locally on http://localhost:1313 by default.
The content directory is used as a source for Markdown files (Docs), which Hugo uses to generate the TUF website resources.
The starting step is to add a route to render your Markdown file.
Navigate to the config.toml file.
When the Menu contains SubMenu options:
- Use the following format:
[[menu.main]]
name = "<Menu>"
identifier ="<Menu_Identifier>"
weight = <order>
- Place the Menu at the relevent position in config.toml based on its weight.
- Restart the Hugo server to see changes.
When the Menu does not contain any Submenu options:
- Use the following format:
[[menu.main]]
name = "<Menu>"
url = "/<route>/"
weight = <order>
- Place the section at the relevant position according to its weight in config.toml.
- Restart the Hugo server to see changes.
- Use the following format:
[[menu.main]]
name = "<SubMenu_Heading>"
parent = "<Menu>"
url = "/<route>" #This should be in lowercase, relates to SubMenu heading, and should not conflict with other routes
weight = <order>
- Position the SubMenu at the relevant place according to its weight in config.toml.
- Restart the Hugo server to see changes.
- The Markdown file name should be
<route>.md
for consistency. - Front Matter is essential on top of every Markdown. In Hugo, the title is defined like this:
---
title: <title>
---
Content can be written according to Markdown rules subject to Hugo Markdown Support.
If you have any question, please reach out to us here.