Hugo capabilities
Welcome
Hi! welcome! Here we’ll showcase hugo capabilities as a static page generator. Here we’re using the cactus theme. We’ll be checking on the most needed features for Software Developers and Researcher who wants to create content with pictures, diagrams, and snippets of code with hightlight.
You can check on this code here
Lists
Make lists
- item 1
- item 2
Quotes
Create quotes:
“When something is important enough, you do it even if the odds are not in your favor.”
- Elon Musk
Links
This is a link to my web page.
Code snipets
SQL
SELECT * FROM posts;
Ruby
def my_func
puts "Hello there!"
end
Highlight lines of code
Using hugo’s highlight
shortcode (lineNumbersInTable = true):
|
|
Write code without line number
function sayHello() {
console.log('Hello there!');
}
Tables
You can create tables like this
method | arguments | Description |
---|---|---|
get |
(path, callback) | match GET request |
post |
(path, callback) | match POST request |
put |
(path, callback) | match PUT request |
delete |
(path, callback) | match DELETE request |
all |
(path, callback) | match all request |
listen |
(port, callback) | start the server in port and then executes a callback |
Diagrams
In Hugo there is an incredible variaty to create different diagrams. Hugo supports GoAt diagrams.
Althoug Hugo doesn’t support mermaid diagrams natively, it’s easy to set up, just follow their tutorial.
sequenceDiagram participant Alice participant Bob Alice->>John: Hello John, how are you? loop Healthcheck John->>John: Fight against hypochondria end Note right of John: Rational thoughts
prevail! John-->>Alice: Great! John->>Bob: How about you? Bob-->>John: Jolly good!
graph TD; A-->B; A-->C; B-->D;