To create a new post or new page, run the following command:
click to expand the code >folded
1
$ hexo new [layout] <title>
Markdown
Configuration Options
Default
Description
title
Markdown document title
date
date when the file is created
author
same as the author in _config.yml
Blogger
img
value in featureunages
Article feature map: http://xxx.com/xxx.jpg
top
true
Recommended articles (whether the article is pinned to the top)
password
n.a.
the password need to read the article
toc
true
Whether to enable TOC, you can turn off the TOC function individually for a certain article. The premise is that the toc option is activated in the theme’s config.yml
summary
n.a.
Article summary, customized article summary content. If this attribute has a value, the article card summary will display this text. Otherwise, the program will automatically intercept part of the article as a summary.
mathjax
true
Whether to enable mathematical formula support, this article whether to enable mathjax, and it needs to be enabled in the theme’s _config.ymlfile.
categories
tags
keywords
reprintPolicy
Cc_by
cc_by, cc_by_nd, cc_by_sa, cc_by_nc, cc_by_nc_nd, cc_by_nc_sa, cc0, noreprint or pay
wrap
[Optional] Configure whether code blocks are expanded (true/false) (default is the setting of highlight_shrink)
Pixabay is a globally renowned stock image website and a vibrant creative community, offering millions of free high-definition, legitimate photos covering various categories, including landscapes, people, dynamic shots, still life, and more. You can use Pixabay’s materials anywhere you like.
网易云音乐 is a music product that focuses on discovery and sharing. Leveraging professional musicians, DJs, friend recommendations, and social features, it aims to create a whole new music lifestyle for users.
哔哩哔哩 is a well-known domestic video barrage website that offers the latest anime releases, an excellent ACG (Anime, Comic, Game) atmosphere, and creative content creators. Here, everyone can find a lot of joy.
石墨文档 is a next-generation cloud office software that supports real-time collaboration for document and spreadsheet editing. It features unique content-level security and full-process traceability. It is available on both PC and mobile devices, allowing for remote work from anywhere. You can save your work instantly as you go.
{% raw %}<divid="Pictures"class="tab-content"style="display: block;">{% endraw %} [Pixabay](https://pixabay.com/zh/) Pixabay is a globally renowned stock image website and a vibrant creative community, offering millions of free high-definition, legitimate photos covering various categories, including landscapes, people, dynamic shots, still life, and more. You can use Pixabay's materials anywhere you like. {% raw %}</div>{% endraw %} {% raw %}<divid="Music"class="tab-content">{% endraw %} [网易云音乐](https://music.163.com/) is a music product that focuses on discovery and sharing. Leveraging professional musicians, DJs, friend recommendations, and social features, it aims to create a whole new music lifestyle for users. {% raw %}</div>{% endraw %} {% raw %}<divid="Videos"class="tab-content">{% endraw %} [哔哩哔哩](https://www.bilibili.com/) is a well-known domestic video barrage website that offers the latest anime releases, an excellent ACG (Anime, Comic, Game) atmosphere, and creative content creators. Here, everyone can find a lot of joy. {% raw %}</div>{% endraw %} {% raw %}<divid="Documents"class="tab-content">{% endraw %} [石墨文档](https://shimo.im/) is a next-generation cloud office software that supports real-time collaboration for document and spreadsheet editing. It features unique content-level security and full-process traceability. It is available on both PC and mobile devices, allowing for remote work from anywhere. You can save your work instantly as you go. {% raw %}</div>{% endraw %} <styletype="text/css"> .content.tabsul { margin: 0; } .tab-content { display: none; } </style> <script> functiononTabClick (event) { var tabTitle = $(event.currentTarget).children('span:last-child').text(); $('.article .content .tab-content').css('display', 'none'); $('.article .content .tabs li').removeClass('is-active'); $('#' + tabTitle).css('display', 'block'); $(event.currentTarget).parent().addClass('is-active'); } </script>
Highlight with Colour
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
click to expand the code >folded
1 2 3 4 5 6 7
{% raw %}<divclass="notification is-info">{% endraw %}
- Beautiful is better than ugly. - Explicit is better than implicit. - Simple is better than complex.
{% raw %}</div>{% endraw %}
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
click to expand the code >folded
1 2 3 4 5 6 7
{% raw %}<divclass="notification is-success">{% endraw %}
- Beautiful is better than ugly. - Explicit is better than implicit. - Simple is better than complex.
{% raw %}</div>{% endraw %}
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
click to expand the code >folded
1 2 3 4 5 6 7
{% raw %}<divclass="notification is-warning">{% endraw %}
- Beautiful is better than ugly. - Explicit is better than implicit. - Simple is better than complex.
{% raw %}</div>{% endraw %}
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
click to expand the code >folded
1 2 3 4 5 6 7
{% raw %}<divclass="notification is-danger">{% endraw %}
- Beautiful is better than ugly. - Explicit is better than implicit. - Simple is better than complex.
{% raw %}</div>{% endraw %}
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
click to expand the code >folded
1 2 3 4 5 6 7
{% raw %}<articleclass="message is-info"><divclass="message-body">{% endraw %}
- Beautiful is better than ugly. - Explicit is better than implicit. - Simple is better than complex.
{% raw %}</div></article>{% endraw %}
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
click to expand the code >folded
1 2 3 4 5 6 7
{% raw %}<articleclass="message is-success"><divclass="message-body">{% endraw %}
- Beautiful is better than ugly. - Explicit is better than implicit. - Simple is better than complex.
{% raw %}</div></article>{% endraw %}
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
click to expand the code >folded
1 2 3 4 5 6 7
{% raw %}<articleclass="message is-warning"><divclass="message-body">{% endraw %}
- Beautiful is better than ugly. - Explicit is better than implicit. - Simple is better than complex.
{% raw %}</div></article>{% endraw %}
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
click to expand the code >folded
1 2 3 4 5 6 7
{% raw %}<articleclass="message is-danger"><divclass="message-body">{% endraw %}
- Beautiful is better than ugly. - Explicit is better than implicit. - Simple is better than complex.
{% raw %}</div></article>{% endraw %}
Zen pf Python
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
click to expand the code >folded
1 2 3 4 5 6 7 8 9 10 11
{% raw %}<articleclass="message is-info"><divclass="message-header">{% endraw %}
Zen pf Python
{% raw %}</div><divclass="message-body">{% endraw %}
- Beautiful is better than ugly. - Explicit is better than implicit. - Simple is better than complex.
It is well-known that <!-- more --> can sepearte the introduction and the main content, however the introduction will show in the content. What if we don’t want the introduction to appear in the body of the text?
click to expand the code >folded
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
The content written here will be shown in **introduction and main content**
{% raw %}<divclass="post-summary">{% endraw %}
The text written here will only shown in **Introduction**