-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
623 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,148 @@ | ||
+++ | ||
title = "Example Page" | ||
slug = "example-page" | ||
title = "shortcode汇总" | ||
slug = "shortcode-summary" | ||
date = "2024-07-01" | ||
description = "Example description" | ||
description = "用于写作时方便复制Shortcode的页面" | ||
tags = [ | ||
"markdown", | ||
"themes", | ||
] | ||
image = "cover.jpg" | ||
draft = true | ||
weight = 1 | ||
+++ | ||
|
||
This is a example page. | ||
Built by `Hugo` with `Stack` theme. | ||
## 颜色渐变 | ||
|
||
## Tables | ||
{{< highlight html >}} | ||
<font class="colorfulfont">文字颜色渐变</font> | ||
{{< /highlight >}} | ||
|
||
Tables aren't part of the core Markdown spec, but Hugo supports supports them out-of-the-box. | ||
## 引用框 | ||
|
||
Name | Age | ||
--------|------ | ||
Bob | 27 | ||
Alice | 23 | ||
``` | ||
{{</* blockquote author="作者" link="https://www.baidu.com" title="作品名" */>}} | ||
引用内容,链接可以不写,写的话就带`https://` 开头 | ||
{{</* /blockquote */>}} | ||
``` | ||
|
||
## Short Code | ||
--- | ||
|
||
{{< abbr "HTTP" "Hyper Text Transfer Protocol" >}} | ||
``` | ||
{{</* quote-center */>}} | ||
居中引用 | ||
{{</* /quote-center */>}} | ||
``` | ||
|
||
{{< align center "This is a centered text." >}} | ||
## 对话框 | ||
|
||
{{< chat pos="left" name='Alice' time="2024-07-01 12:00" >}} | ||
``` | ||
{{</* chat pos="left" name=Alice time="2023-07-01 12:00" */>}} | ||
Left message. | ||
{{< /chat >}} | ||
{{</* /chat */>}} | ||
{{< chat name='Bob' time="2024-07-01 12:01" >}} | ||
{{</* chat name=Bob time="2024-07-01 12:01" */>}} | ||
Right message. | ||
{{< /chat >}} | ||
{{</* /chat */>}} | ||
``` | ||
|
||
## 卡片 | ||
|
||
``` | ||
{{</* card */>}} | ||
卡片内容 | ||
{{</* /card */>}} | ||
``` | ||
|
||
## 通知框 | ||
|
||
``` | ||
{{</* notice notice-warning */>}} | ||
warning | ||
{{</* /notice */>}} | ||
{{</* notice notice-info */>}} | ||
info | ||
{{</* /notice */>}} | ||
{{</* notice notice-note */>}} | ||
note | ||
{{</* /notice */>}} | ||
{{</* notice notice-tip */>}} | ||
tip | ||
{{</* /notice */>}} | ||
``` | ||
|
||
## 展开 | ||
|
||
``` | ||
{{</* detail "展开看内容" */>}} | ||
内容 | ||
{{</* /detail */>}} | ||
``` | ||
|
||
## 文字居中等 | ||
|
||
``` | ||
{{</* align left "文字居左" */>}} | ||
{{</* align center "文字居中" */>}} | ||
{{</* align right "文字居右" */>}} | ||
``` | ||
|
||
## 文字摇晃 | ||
|
||
``` | ||
{{</* shake shake */>}}基本的摇晃效果{{</* /shake */>}} | ||
{{</* shake shake-hard */>}}剧烈摇晃效果{{</* /shake */>}} | ||
{{</* shake shake-slow */>}}慢速摇晃效果{{</* /shake */>}} | ||
{{</* shake shake-little */>}}轻微摇晃效果{{</* /shake */>}} | ||
{{</* shake shake-horizontal */>}}水平摇晃效果{{</* /shake */>}} | ||
{{</* shake shake-vertical */>}}垂直摇晃效果{{</* /shake */>}} | ||
{{</* shake shake-rotate */>}}旋转摇晃效果{{</* /shake */>}} | ||
## Math | ||
{{</* shake shake-opacity */>}}透明度变化摇晃效果{{</* /shake */>}} | ||
$f(x) = x^2 + 1$ | ||
{{</* shake shake-crazy */>}}疯狂摇晃效果{{</* /shake */>}} | ||
$$ | ||
f(x) = x^2 + 1 | ||
$$ | ||
{{</* shake shake-freeze */>}}在悬停时冻结{{</* /shake */>}} | ||
## Links | ||
{{</* shake shake-constant */>}}持续摇晃{{</* /shake */>}} | ||
``` | ||
|
||
## 键盘按键 | ||
|
||
[baidu百度](https://www.baidu.com) | ||
{{< highlight html >}} | ||
<kbd>Ctrl</kbd> | ||
{{< /highlight >}} | ||
|
||
[google谷歌](https://www.google.com) | ||
## 星星 | ||
|
||
## Code Blocks | ||
- rating用法:总星数 实际星数;不可以打半星 | ||
|
||
```diff | ||
- features = ["dynamic"] | ||
+ features = ["jpeg", "dynamic"] | ||
``` | ||
{{</* rating 10 7 */>}} | ||
``` | ||
|
||
<br> | ||
## 高斯模糊 | ||
|
||
{{< highlight html >}} | ||
<span class="blur">高斯模糊</span> | ||
{{< /highlight >}} | ||
|
||
## 轮播图 | ||
|
||
``` | ||
{{</* imgloop "1.jpg,2.jpg" */>}} | ||
``` | ||
|
||
## 缩写 | ||
|
||
``` | ||
{{</* abbr "缩写" "缩写内容" */>}} | ||
``` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.