Diagrams
There is built in support for multiple types of diagrams.
GoAT
Hugo supports GoAT natively. This means that this code block:
\```goat
. . . .--- 1 .-- 1 / 1
/ \ | | .---+ .-+ +
/ \ .---+---. .--+--. | '--- 2 | '-- 2 / \ 2
+ + | | | | ---+ ---+ +
/ \ / \ .-+-. .-+-. .+. .+. | .--- 3 | .-- 3 \ / 3
/ \ / \ | | | | | | | | '---+ '-+ +
1 2 3 4 1 2 3 4 1 2 3 4 '--- 4 '-- 4 \ 4
\```
Will be rendered as:
See more:
Mermaid
You can also render more complex diagrams using mermaid.
{{< mermaid caption="And you can add a caption" >}}
flowchart TD
Start --> Working
Working --> Stop
{{< /mermaid >}}
{{< mermaid caption="And you can add a caption" >}}
sequenceDiagram
Alice->>John: Hello John, how are you?
John-->>Alice: Great!
Alice-)John: See you later!
{{< /mermaid >}}