Shortcodes

Abbr

1
{{< abbr "MIT" "Massachusetts Institute of Technology" >}}
MIT

Color text

1
2
3
4
5
6
{{< color "red" "red text" >}}
{{< color "green" "green text" >}}
{{< color "blue" "blue text" >}}
{{< color "orange" "orange text" >}}
{{< color "theme" "theme text" >}}
{{< color "#a811ff" "custom color text" >}}

red text
green text
blue text
orange text
theme text
custom color text

Button

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
{{< button content="Small" size="small" >}}
{{< button content="Normal" size="normal" >}}
{{< button content="Large" size="large" >}}

{{< button color="theme" icon="eva eva-heart" content="Theme Button" link="https://google.com" >}}
{{< button color="red" icon="eva eva-home" content="Red Button" link="https://google.com" >}}
{{< button color="green" icon="eva eva-twitter" content="Green Button" link="https://google.com" >}}
{{< button color="blue" icon="eva eva-github" content="Blue Button" link="https://google.com" >}}
{{< button color="orange" icon="eva eva-search" content="Orange Button" link="https://google.com" >}}

{{< button-outline color="theme" icon="eva eva-heart" content="Theme button" link="https://google.com" >}}
{{< button-outline color="red" icon="eva eva-home" content="Red Button" link="https://google.com" >}}
{{< button-outline color="green" icon="eva eva-twitter" content="Green Button" link="https://google.com" >}}
{{< button-outline color="blue" icon="eva eva-github" content="Blue Button" link="https://google.com" >}}
{{< button-outline color="orange" icon="eva eva-search" content="Orange Button" link="https://google.com" >}}

Text layout

1
2
3
4
5
{{< align left "Text left" >}}

{{< align center "Text center" >}}

{{< align right "Text right" >}}

Text left

Text center

Text right

GitHub

1
{{< github name="gohugoio/hugo" link="https://github.com/gohugoio/hugo" description="The world’s fastest framework for building websites." color="#00ADD8" language="Go" >}}
The world’s fastest framework for building websites.
Go

GitHub Auto

1
{{< github-auto name="Ice-Hazymoon/hugo-theme-luna" >}}
A simple, performance-first, SEO-friendly Hugo theme / 一个轻量,快速,SEO 友好的 Hugo 主题
JavaScript
95
8

Notice

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
{{< notice warn >}}
Let life be beautiful like summer flowers and death like autumn leaves.
{{< /notice >}}

{{< notice error >}}
Let life be beautiful like summer flowers and death like autumn leaves.
{{< /notice >}}

{{< notice info >}}
Let life be beautiful like summer flowers and death like autumn leaves.
{{< /notice >}}

{{< notice success >}}
Let life be beautiful like summer flowers and death like autumn leaves.
{{< /notice >}}

Let life be beautiful like summer flowers and death like autumn leaves.

Let life be beautiful like summer flowers and death like autumn leaves.

Let life be beautiful like summer flowers and death like autumn leaves.

Let life be beautiful like summer flowers and death like autumn leaves.

Quote

1
2
3
{{< quote >}}
Let life be beautiful like summer flowers and death like autumn leaves.
{{< /quote >}}

Let life be beautiful like summer flowers and death like autumn leaves.

Quote Center

1
2
3
4
5
6
{{< quote-center >}}
The curfew tolls the knell of parting day,  
The lowing herd wind slowly o'er the lea  
The ploughman homeward plods his weary way,  
And leaves the world to darkness and to me.
{{< /quote-center >}}

The curfew tolls the knell of parting day,
The lowing herd wind slowly o’er the lea
The ploughman homeward plods his weary way,
And leaves the world to darkness and to me.

Tags

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
This is a {{< tag theme "theme tag" >}}  
This is a {{< tag red "red tag" >}}  
This is a {{< tag green "green tag" >}}  
This is a {{< tag blue "blue tag" >}}  
This is a {{< tag orange "orange tag" >}}  

This is a {{< tag-outlined theme "theme tag" >}}  
This is a {{< tag-outlined red "red tag" >}}  
This is a {{< tag-outlined green "green tag" >}}  
This is a {{< tag-outlined blue "blue tag" >}}  
This is a {{< tag-outlined orange "orange tag" >}}  

This is a theme tag
This is a red tag
This is a green tag
This is a blue tag
This is a orange tag

This is a theme tag
This is a red tag
This is a green tag
This is a blue tag
This is a orange tag

Progress bar

1
2
3
4
5
{{< progress 999.99 theme "Name of progress bar" >}}
{{< progress 80 green "Name of progress bar" >}}
{{< progress 77.54 red "Name of progress bar" >}}
{{< progress 123.45 blue "Name of progress bar" >}}
{{< progress 11.11 orange "Name of progress bar" >}}

Name of progress bar
999.99%
Name of progress bar
80%
Name of progress bar
77.54%
Name of progress bar
123.45%
Name of progress bar
11.11%

Accordion

1
2
3
4
5
{{< accordion "Foods" open >}}
* Vegetables
* Fruits
* Fish
{{< /accordion >}}
Foods
  • Vegetables
  • Fruits
  • Fish

Divided Line

1
{{< hr "some text" >}}
some text

Hidden Text

1
2
3
This is a {{< hidden-text "Hide text" blur >}}

This is a {{< hidden-text "Hide text" >}}

This is a Hide text

This is a Hide text

1
2
3
4
5
6
7
8
9
{{< hidden blur >}}
> This is a hidden block
{{< /hidden >}}

{{< hidden >}}
* Vegetables
* Fruits
* Fish
{{< /hidden >}}

This is a hidden block

  • Vegetables
  • Fruits
  • Fish

Rating

1
The paella dish I rate {{< rating 10 6>}}

The paella dish I rate

1
2
3
{{< link-card name="hugo-theme-luna" desc="A simple, performance-first, SEO-friendly Hugo theme" link="https://github.com/Ice-Hazymoon/hugo-theme-luna" img="https://repository-images.githubusercontent.com/486781027/dc31a9ab-66d1-49b8-a225-4f85f2329f2e" >}}

{{< link-card name="hugo-theme-luna" desc="A simple, performance-first, SEO-friendly Hugo theme" link="https://github.com/Ice-Hazymoon/hugo-theme-luna" >}}
hugo-theme-luna
A simple, performance-first, SEO-friendly Hugo theme
https://github.com/Ice-Hazymoon/hugo-theme-luna
hugo-theme-luna
hugo-theme-luna
A simple, performance-first, SEO-friendly Hugo theme
https://github.com/Ice-Hazymoon/hugo-theme-luna
1
2
3
{{< carousel "https://unsplash.it/1920/1080/?random=1" "https://unsplash.it/1920/1080/?random=2" "https://unsplash.it/1920/1080/?random=3" "https://unsplash.it/1920/1080/?random=4" >}}

{{< carousel "4.jpg" "7.jpg" "9.jpg" >}}

Timeline

1
{{< timeline "2018-01-01 Eat salada today" "2018-01-02 Eat paella today" "2018-01-03 Eat pizza today" >}}
2018-01-01 Eat salada today
2018-01-02 Eat paella today
2018-01-03 Eat pizza today
1
2
3
4
5
6
7
8
9
{{< gallery >}}
![](1.jpg)
![](2.jpg)
![](3.jpg)

![](2.jpg)
![](3.jpg)
![](1.jpg)
{{< /gallery >}}

Tabs

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
{{< tab-view >}}

{{< tab-panel name="中文" checked=true >}}
百合花(学名:Lilium)通称百合花,是百合目百合科的一属,为多年生草本球根植物,属内物种繁多,经常作为观赏植物。主要分布在亚洲东部、欧洲、北美洲等北半球温带地区,全球已发现有至少96个品种,其中5种产于台湾。近年更有不少经过人工杂交而产生的新品种,如OT百合、东方型百合、玫瑰百合等。百合属对猫来说有剧毒。
{{< /tab-panel >}}

{{< tab-panel name="English" >}}
Lilium is a genus of herbaceous flowering plants growing from bulbs, all with large prominent flowers. They are the true lilies. Lilies are a group of flowering plants which are important in culture and literature in much of the world. Most species are native to the northern hemisphere and their range is temperate climates and extends into the subtropics. Many other plants have "lily" in their common names, but do not belong to the same genus and are therefore not true lilies.
{{< /tab-panel >}}

{{< tab-panel name="Español" >}}
Las especies de Lilium, comúnmente llamadas azucenas o lirios, constituyen un género con alrededor de 110 integrantes que se incluye dentro de la familia de las liliáceas. Los lirios son herbáceas perennes de tallos erectos con numerosas hojas alternas, lineares a lance balas. Crecen a partir de bulbos formados por capas de escamas carnosas sin túnica.
{{< /tab-panel >}}

{{< /tab-view >}}
CC BY-NC-ND 4.0