
Sample blog post
Table of Contents
+++
title = 'Sample blog post'
summary = "This is summary"
date = 2025-03-11
lastmod = 2025-03-16
tags = ["sample", "hugo", "kayal"]
coverImg = "moon.jpg"
# externalUrl = "https://www.example.com" # Redirect
draft = false
showDate = true
showToC = true
showComments = false
+++
View full source in Github
Directory
content/
├─ blog/ <- Blog menu
│ ├─ 250311-sample/
│ │ ├─ index.md <- Current post
│ │ ├─ moon.jpg <- Current post's asset
├─ _index.html <- Home page
Header
h1
h2
h3
h4
h5
h6
Markdown
hello world hello world hello world hello world
hello world hello world hello world hello world
hello world hello world hello world hello world
- ordered
- list
- nested
unordered
list
- nested
check
box
[link](https://www.example.com "title")
<https://www.example.com>

block
quote
Code
inline code: inline code
|
|
```python {linenos=true, hl_lines=[1,"4-5"]}
# comment
list_var = [1, 2, 3, 4, 5]
def greet(name):
return f"Hello, {name}!"
if len(list_var) < 10:
for i in list_var:
print(f"Number: {i}")
```
Table
table | table | table |
---|---|---|
l | c | r |
l | c | r |
l | c | r |
Rich text
Figure
Nasa moon
|
|
Callout
Hello world
Goodbye world
Goodbye world
|
|
Hello world
|
|
Callout Preset
Info
|
|
Tip
|
|
Warning
|
|
Danger
|
|
Detail Summary
Click to expand
Lorem ipsum dolor sit amet,
|
|
Icon
Add .svg file in assets/icons/
and insert fill="currentColor"
inside <svg>
tag.
|
|
Youtube
|
|
QR code

|
|
Shortcode markdown codeblock
|
|
|
|