我的博客,我的效果

部分效果展示

音乐

  • 单首
    
            
    - 多首

视频

  • Heathens-Twenty One Pilots

电影《X特遣队》主题曲
曲目《Heathens》
时长:03:15
语言:英语
唱片公司:大西洋唱片公司
演唱:Twenty One Pilots
发行日期:2016年6月16日

主题自带样式 note 标签

设置

~/blog/_config.next.yml
1
2
3
4
5
6
7
8
9
10
11
note:
# Note tag style values:
# - simple bs-callout old alert style. Default.
# - modern bs-callout new (v2-v3) alert style.
# - flat flat callout style with background, like on Mozilla or StackOverflow.
# - disabled disable all CSS styles import of note tag.
style: simple
icons: false
# Offset lighter of background in % for modern and flat styles (modern: -12 | 12; flat: -18 | 6).
# Offset also applied to label tag variables. This option can work with disabled note tag.
light_bg_offset: 0

用法

1
2
3
{% note [class] [no-icon] [summary] %}
Any content (support inline tags too).
{% endnote %}
  • [class] :可选参数。支持的值:默认 |初级 |成功|信息 |警告|危险。
  • [no-icon]:可选参数。禁用注释中的图标。
  • [summary]:可选参数。可选的注释摘要。

所有参数都是可选的。

示例

1
2
3
{% note %}
#### 标头
{% endnote %}

标头

1
2
3
{% note default %}
#### 默认
{% endnote %}

默认

1
2
3
{% note primary%}
#### 主标题
{% endnote %}

主标题

1
2
3
{% note info %}
#### 信息
{% endnote %}

信息

1
2
3
{% note success %}
#### 成功
{% endnote %}

成功

1
2
3
{% note warning %}
#### 警告
{% endnote %}

警告

1
2
3
{% note danger %}
#### 危险
{% endnote %}

危险

1
2
3
{% note info no-icon %}
#### 无图标
{% endnote %}

无图标