hugo help
: get Hugo documentation!hugo
: generates the site to the destination folderhugo --cleanDestinationDir
: remove files from destination not found in static directorieshugo new --kind chapter [path to file]/_index.md
hugo new [path to post]/[post name].md
: create a new postcontent
folderThe folder hierarchy is the shape of the website
content
├── level-one
│ ├── level-two
│ │ ├── level-three
│ │ │ ├── level-four
│ │ │ │ ├── _index.md
│ │ │ │ ├── page-4-a.md
│ │ │ │ ├── page-4-b.md
│ │ │ │ └── page-4-c.md
│ │ │ ├── _index.md
│ │ │ ├── page-3-a.md
│ │ │ ├── page-3-b.md
│ │ │ └── page-3-c.md
│ │ ├── _index.md
│ │ ├── page-2-a.md
│ │ ├── page-2-b.md
│ │ └── page-2-c.md
│ ├── _index.md
│ ├── page-1-a.md
│ ├── page-1-b.md
│ └── page-1-c.md
├── _index.md
└── page-top.md
Make sure that _index.md
is present!
Hugo Docdock theme provides a lot of shortcodes! :) Here are a few useful ones:
{{< highlight cpp "linenos=inline" >}}
{{< / highlight >}}
{{% alert theme="info" %}}**info**{{% /alert %}}
{{% alert theme="success" %}}**success**{{% /alert %}}
{{% alert theme="warning" %}}**warning**{{% /alert %}}
{{% alert theme="danger" %}}**danger**{{% /alert %}}
.files
files
folder.Usage:
{{%attachments title="Related files" pattern=".*(pdf|mp4)"/%}}
{{% expand "Hint ?" %}}Here you go!{{% /expand%}}
{{% notice note %}}
Note
{{% /notice %}}
Note
{{% notice info %}}
Info
{{% /notice %}}
Info
{{% notice tip %}}
Tip
{{% /notice %}}
Tip
{{% notice warning %}}
Warning
{{% /notice %}}
Warning
{{% panel theme="success" header="Title" %}}content{{% /panel %}}