Hugo#
Hugo is the static website generator I used to create this Blog site.
Useful Commands#
- Create new post
- hugo new /posts/newpost.md
Hello World!
Article#
This is bold text, and this is emphasized text.
Link#
Visit the Hugo website!
Badge#
New article!Alerts#
Buttons#
Click Me!Charts#
Figures#
Github/Gitlab cards#
Personal Website & Blog Theme for Hugo
GitLab is an open source end-to-end software development platform with built-in version control, issue tracking, code review, CI/CD, and more. Self-host GitLab on your own servers, in a container, or on a cloud provider.
Icons#
Katex#
\(f(a,b,c) = (a^2+b^2+c^2)^3\)
Inline notation: \(\varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887β¦\)
$$ \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } } $$
Lead#
Lists#
Recent
Mermaid [Flowcharts - Diagrams]#
Example:#
Flowchart#
Sequence Diagram#
Class diagram#
Entity relationship diagram#
Swatches#
Timeline#
header
badge test
subheader
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus non magna ex. Donec sollicitudin ut lorem quis lobortis. Nam ac ipsum libero. Sed a ex eget ipsum tincidunt venenatis quis sed nisl. Pellentesque sed urna vel odio consequat tincidunt id ut purus. Nam sollicitudin est sed dui interdum rhoncus.
Another Awesome Header
date - present
Awesome Subheader
With html code
- Coffee
- Tea
- Milk
Shortcodes
AWESOME
With other shortcodes
TypeIt#
Paragraph#
Xerum, quo qui aut unt expliquam qui dolut labo. Aque venitatiusda cum, voluptionse latur sitiae dolessi aut parist aut dollo enim qui voluptate ma dolestendit peritin re plis aut quas inctum laceat est volestemque commosa as cus endigna tectur, offic to cor sequas etum rerum idem sintibus eiur? Quianimin porecus evelectur, cum que nis nust voloribus ratem aut omnimi, sitatur? Quiatem. Nam, omnis sum am facea corem alique molestrunt et eos evelece arcillit ut aut eos eos nus, sin conecerem erum fuga. Ri oditatquam, ad quibus unda veliamenimin cusam et facea ipsamus es exerum sitate dolores editium rerore eost, temped molorro ratiae volorro te reribus dolorer sperchicium faceata tiustia prat.
Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat.
Blockquotes#
The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a footer
or cite
element, and optionally with in-line changes such as annotations and abbreviations.
Blockquote without attribution#
Tiam, ad mint andaepu dandae nostion secatur sequo quae. Note that you can use Markdown syntax within a blockquote.
Blockquote with attribution#
Don’t communicate by sharing memory, share memory by communicating.
β Rob Pike1
Tables#
Tables aren’t part of the core Markdown spec, but Hugo supports supports them out-of-the-box.
Name | Age |
---|---|
Bob | 27 |
Alice | 23 |
Inline Markdown within tables#
Italics | Bold | Code |
---|---|---|
italics | bold | code |
Code Blocks#
Code block with backticks#
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Example HTML5 Document</title>
</head>
<body>
<p>Test</p>
</body>
</html>
Code block indented with four spaces#
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Example HTML5 Document</title>
</head>
<body>
<p>Test</p>
</body>
</html>
Code block with Hugo’s internal highlight shortcode#
|
|
List Types#
Ordered List#
- First item
- Second item
- Third item
Unordered List#
- List item
- Another item
- And another item
Nested list#
- Fruit
- Apple
- Orange
- Banana
- Dairy
- Milk
- Cheese
Other Elements β abbr, sub, sup, kbd, mark#
GIF is a bitmap image format.
H2O
Xn + Yn = Zn
Press CTRL+ALT+Delete to end the session.
Most salamanders are nocturnal, and hunt for insects, worms, and other small creatures.
YouTube#
Below is an example using the built-in youtube
shortcode.
Twitter#
This example uses the twitter_simple
shortcode to output a Tweet. It requires two named parameters user
and id
.
Alternatively, the tweet
shortcode can be used to embed a fully marked up Twitter card.
βIn addition to being more logical, asymmetry has the advantage that its complete appearance is far more optically effective than symmetry.β
— Design Reviewed | Graphic Design History (@DesignReviewed) January 17, 2019
β Jan Tschichold pic.twitter.com/gcv7SrhvJb
Emoji π#
Example: see_no_evil
π, hear_no_evil
π, speak_no_evil
π.
π ποΈ π§ π½ π π§ π½ ββοΈ π§ π½ πΈ
The above quote is excerpted from Rob Pike’s talk
about
nothing during Gopherfest, November 18, 2015. ↩︎