好玩的写作样式
用一些特殊的样式,可以增加文章的可读性。不过也不是越多越好,没必要写一篇文章就把下面的样式全部用一遍,这样只会适得其反,从下面的样式中选几个自己觉得比较好的、经常会用的就行。而且写博客重点是文章的文字内容,而不是这些样式,样式只是为了让文章更美观,更适合阅读。这和我们用 Markdown 写文章是一样的道理,用 Markdown 而不是直接写 HTML 代码,就是为了将更多时间花在文字上monkey。


markdown test
Normal blockquote
Praesent diam elit, interdum ut pulvinar placerat, imperdiet at magna.
Quote from a book
Do not just seek happiness for yourself. Seek happiness for all. Through kindness. Through mercy.
NEW: DevDocs now comes with syntax highlighting. http://devdocs.io
主题自带样式 FontAwesome
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| 1. <i class="fa fa-pencil"></i> 支持 Markdown <i>Hexo 支持 GitHub Flavored Markdown 的所有功能,甚至可以整合 Octopress 的大多数插件。</i> 2. <i class="fa fa-cloud-upload"></i> 一件部署 <i>只需一条指令即可部署到 GitHub Pages,或其他网站。</i> 3. <i class="fa fa-cog"></i> 丰富的插件 <i>Hexo 拥有强大的插件系统,安装插件可以让 Hexo 支持 Jade,CoffeeScript。</i>
- <i class="fa fa-pencil"></i> 铅笔 - <i class="fa fa-cloud-upload"></i> 上传 - <i class="fa fa-download"></i> 下载
- <i class="fa fa-download"></i> 下载 - <i class="fa fa-download fa-lg"></i> 下载变大 33% - <i class="fa fa-download fa-2x"></i> 下载两倍大
|
铅笔
1 2 3 4 5 6
| {% cq %} 人生乃是一面镜子, 从镜子里认识自己, 我要称之为头等大事, 也只是我们追求的目的! {% endcq %}
|
1 2 3 4 5 6 7
| <div class="note default"><p>default</p></div> <div class="note primary"><p>primary</p></div> <div class="note success"><p>success</p></div> <div class="note info"><p>info</p></div> <div class="note warning"><p>warning</p></div> <div class="note danger"><p>danger</p></div> <div class="note danger no-icon"><p>danger no-icon</p></div>
|
note
1 2 3 4 5 6 7 8 9 10 11 12
| {% note danger %}note danger, note danger, note danger{% endnote %}
{% note danger %} note danger, note danger, note danger note danger, note danger, note danger note danger, note danger, note danger {% endnote %}
{% note danger no-icon %} note without icon {% endnote %}
|
label
1 2 3 4 5 6 7 8 9 10 11 12 13
| {% label default@default %}
{% label primary@primary %}
{% label success@success %}
{% label info@info %}
{% label warning@warning %}
{% label danger@danger %}
|
tab
1 2 3 4 5 6 7 8 9 10 11
| {% tabs 选项卡, 2 %} <!-- tab --> **这是选项卡 1** 呵呵哈哈哈哈哈哈哈哈呵呵哈哈哈哈哈哈哈哈呵呵哈哈哈哈哈哈哈哈呵呵哈哈哈哈哈哈哈哈呵呵哈哈哈哈哈哈哈哈呵呵哈哈哈哈哈哈哈哈…… <!-- endtab --> <!-- tab --> **这是选项卡 2** <!-- endtab --> <!-- tab --> **这是选项卡 3** 哇,你找到我了!φ(≧ω≦*)♪~ <!-- endtab --> {% endtabs %}
|
主题自带样式 按钮
1
| {% btn https://www.baidu.com, 点击下载百度, download fa-lg fa-fw %}
|
自定义样式 引用
<blockquote class="question">内容</blockquote>
内容
自定义样式 数字块
<span id="inline-toc">1.</span>自定义样式 数字块
1.自定义样式 数字块
测试代码高亮
quote test
quteo quote quote
aaaaaaaaaaaaa
bbb
<blockquote class="question">内容</blockquote>
python
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| user_status = False
def login(): _username = "ketchup" _password = "123456" global user_status if user_status == False: username = input("user:") password = input("pasword:") if username == _username and password == _password: print("welcome login....") user_status = True else: print("wrong username or password!") else: print("用户已登录,验证通过...")
|
python single line
print('hello python')
Author:
Fat Bob
Permalink:
fatbobgo.github.io/977768019/
License:
Copyright (c) 2019 CC-BY-NC-4.0 LICENSE
Slogan:
Why so serious?