Repo for the TrueBlocks.io website.
Note: There is only a main
branch which is protected. Make any PRs against this branch and we will review and merge if approriate.
To develop on this site, you need yarn
and hugo
.
To run locally, clone the repo then:
yarn install
hugo
hugo serve --ignoreCache --disableFastRender
Open your browser to the local copy.
layouts/index.html
.archetypes
.layouts
contains all information about templates.config/_default/menus.toml
contains the structure of the site.Open up config/_default/menus.toml
.
[[main]]
name = "NewSection"
url = "/newsection/"
weight = 10
The more "weight", the farther to the left.
You must also add a corresponding file in layouts
for your new section.
Add you pages to the content
folder:
_index.md
.The new page uses the default layout. If you need to use "list" mode, add layout: single
in the front matter.
If you need a different layout for the pages, create a new directory in layouts
using the same name as in content
folder.
We love contributors. Please see information about our work flow before proceeding.
main
branch, create a new branch: git checkout -b <branch_name>
.git commit -m '<commit_message>'
git push origin TrueBlocks/trueblocks-docs
If you have questions, comments, or complaints, please join the discussion on our discord server which is linked from our website.
Thanks to the following people who have contributed to this project: