加粗和斜体
1 2 **Hello,World!** *Hello,world!*
Hello,World!
Hello,world!
行内HTML
1 <p > To reboot your computer, press <kbd > ctrl</kbd > +<kbd > alt</kbd > +<kbd > del</kbd > .</p >
To reboot your computer, press ctrl +alt +del .
博客加密
安装hexo-blog-encrypt插件
在hexo目录下npm install hexo-blog-encrypt
在/Hexo/_config.yml
文件中添加内容:
使用插件
1 2 3 4 5 6 7 8 9 --- title : Hexo 加密功能date : 2019 -09 -04 23 :20 :00 tags : [学习笔记,Hexo ]categories : Hexo password : smile abstract : Welcome to my blog, enter password to read. message : 密码输入框上描述性内容---
其中:
password: 该Blog使用的密码
abstract: Blog摘要文字(少量)
message: 密码框上的描述性文字
原文链接
Insert YouTube Videos
静态图片链接
1 2 3 4 5 6 7 8 9 10 Html version: <a href ="https://youtu.be/BSlMAJ7SkMA " target ="_blank" ><img src ="https://img.youtube.com/vi/ARted4RniaU/0.jpg" alt ="IMAGE ALT TEXT HERE" width ="240" height ="180" border ="10" /></a > Pure markdown version: [![IMAGE ALT TEXT HERE ](https://img.youtube.com/vi/ARted4RniaU/0.jpg )](https://www.youtube.com/watch?v=ARted4RniaU )
Pure markdown version:
内嵌视频
方法一:
VIDEO
视频ID的找法:
图中地址后面那一串英文和数字组成的字符串 如:BSlMAJ7SkMA
方法二:
点击上图的嵌入,其提供的是html代码(html和markdown具有一定的兼容性),直接复制到md文件即可。
自己可以修改html的一些属性如width、height。特别是width=100%,就会左右撑满。
VIDEO
Block quote
为自己博客添加引用…
1 2 3 {% blockquote [author,source] [link] [source_link_title] %} content {% endblockquote %}
感谢观看!
可以嵌套哦!
感谢观看!
感谢观看!
Note (Bootstrap Callout)
每种方法都分 simple、modern 和 flat主题,也就是所谓的样式。
在此我只呈现出flat样式
方法一:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 {% note flat %} 默认 提示块标签 {% endnote %} {% note default flat %} default 提示块标签 {% endnote %} {% note primary flat %} primary 提示块标签 {% endnote %} {% note success flat %} success 提示块标签 {% endnote %} {% note info flat %} info 提示块标签 {% endnote %} {% note warning flat %} warning 提示块标签 {% endnote %} {% note danger flat %} danger 提示块标签 {% endnote %}
方法二:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 {% note 'fab fa-cc-visa' flat %} 你是刷 Visa 还是 UnionPay {% endnote %} {% note blue 'fas fa-bullhorn' flat %} 2021年快到了.... {% endnote %} {% note pink 'fas fa-car-crash' flat %} 小心开车 安全至上 {% endnote %} {% note red 'fas fa-fan' flat%} 这是三片呢?还是四片? {% endnote %} {% note orange 'fas fa-battery-half' flat %} 你是刷 Visa 还是 UnionPay {% endnote %} {% note purple 'far fa-hand-scissors' flat %} 剪刀石头布 {% endnote %} {% note green 'fab fa-internet-explorer' flat %} 前端最讨厌的浏览器 {% endnote %}
Tabs
1 2 3 4 5 6 7 8 9 10 11 12 13 {% tabs test1 %} <!-- tab --> **This is Tab 1.** <!-- endtab --> <!-- tab --> **This is Tab 2.** <!-- endtab --> <!-- tab --> **This is Tab 3.** <!-- endtab --> {% endtabs %}
Inline
1 2 This is my website, click the button {% btn 'https://butterfly.js.org',Butterfly %} This is my website, click the button {% btn 'https://butterfly.js.org',Butterfly,,outline%}
This is my website, click the button Butterfly
This is my website, click the button Butterfly
Block
1 2 3 This is my website, click the button {% btn 'https://butterfly.js.org',Butterfly,far fa-hand-point-right,block larger %} This is my website, click the button {% btn 'https://butterfly.js.org',Butterfly,far fa-hand-point-right,block center larger %} This is my website, click the button {% btn 'https://butterfly.js.org',Butterfly,far fa-hand-point-right,block right blue larger %}
This is my website, click the button Butterfly
This is my website, click the button Butterfly
This is my website, click the button Butterfly
option
1 2 3 4 5 6 7 8 9 <div class ="btn-center" > {% btn 'https://butterfly.js.org',Butterfly,far fa-hand-point-right,larger %} {% btn 'https://butterfly.js.org',Butterfly,far fa-hand-point-right,blue larger %} {% btn 'https://butterfly.js.org',Butterfly,far fa-hand-point-right,pink larger %} {% btn 'https://butterfly.js.org',Butterfly,far fa-hand-point-right,red larger %} {% btn 'https://butterfly.js.org',Butterfly,far fa-hand-point-right,purple larger %} {% btn 'https://butterfly.js.org',Butterfly,far fa-hand-point-right,orange larger %} {% btn 'https://butterfly.js.org',Butterfly,far fa-hand-point-right,green larger %} </div >
1 2 3 4 5 6 7 8 9 <div class ="btn-center" > {% btn 'https://butterfly.js.org',Butterfly,far fa-hand-point-right,outline larger %} {% btn 'https://butterfly.js.org',Butterfly,far fa-hand-point-right,outline blue larger %} {% btn 'https://butterfly.js.org',Butterfly,far fa-hand-point-right,outline pink larger %} {% btn 'https://butterfly.js.org',Butterfly,far fa-hand-point-right,outline red larger %} {% btn 'https://butterfly.js.org',Butterfly,far fa-hand-point-right,outline purple larger %} {% btn 'https://butterfly.js.org',Butterfly,far fa-hand-point-right,outline orange larger %} {% btn 'https://butterfly.js.org',Butterfly,far fa-hand-point-right,outline green larger %} </div >