| title | Compose |
|---|---|
| version | |
| permalink | en/compose |
| id | 3 |
| lang | en |
Hexo new <title>In the hexo main directory source -> _posts create a file which suffix is .md.
Front-matter - Official Introduction
| Setting | Description | Default |
|---|---|---|
| layout | Layout | |
| title | Title | |
| date | Published date | File created date |
| update | Updated date | File updated data |
| comments | Enables comment feature for the post | true |
| tags | Tags (Not available for pages) | |
| categories | Categories (Not available for pages) | |
| permalink | Override the default permalink of the post | |
| toc | Display TOC button | true |
| comment | Display comment | true |
| notag | Do not generate Tags menu | false |
In the Material theme, each Scheme has a thumbnail function.
Simply add the thumbnail: parameter to the front-matter and fill in the thumbnail address.
This scheme uses the default random thumbnails if there is no custom thumbnail. The random thumbnail directory is located under the theme folder source -> img -> random.
Random thumbnails can add your favorite images in the format <num> .png. Then modify the number of thumbnails in the ** theme config** by thumbnail: random_amount.
This Scheme will only show thumbnails that have been customized.
Create a new about page:
hexo new page "about"If you want to add a link to the "Link" page, please refer to the pages .
Create a folder named links in the source folder under the hexo directory (just a suggestion, which you can modify as you like).
Then create a Markdown file named index.md in the file.
In the index.md file to write the following content.
---
title: links
date:
layout: links
---
titlecan be changed,layoutcan not be modified.
If you want to add a link to the "Link" page, please refer to the pages.
Also create a folder named _data (forbidden rename) within the source folder in the hexo directory.
And then create a file named links.yml in the file.
The format of a single link is:
Name:
link: http://example.com
avatar: http://example.com/avatar.png
descr: "This is a description"Add multiple links, just follow the above format can be repeated to fill.
- Change
Nameto the name of the link, egViosey. http://example.comis the address of the friendly link.http://example.com/avatar.pngis the link to the picture.This is a descriptionfor the link description.
Create a folder in the source folder under the hexo directory called gallery (just a suggestion, which you can modify as you like).
Then create a Markdown file named index.md in the file.
In the index.md file to write the following content.
---
title: gallery
date:
layout: gallery
---
titlecan be changed,layoutcan not be modified.
If you'd like to add an entry to the Gallery page, please refer to the separate page.
Also create a folder named _data (forbidden rename) within the source folder in the hexo directory.
Then create a file called gallery.yml in the file.
The format for a single image is:
Name:
full_link: http://example.com/full-image.png
thumb_link: http://example.com/thumb-image.png
descr: "This is a description"Add multiple pictures, just follow the above format can be repeated to complete.
- Change
Nameto the image name, for exampleMaterial. http://example.com/full-image.pngis the full picture address.http://example.com/thumb-image.pngis the address of the thumbnail image, if there is no thumbnail can also use the full picture of the address.This is a descriptionfor picture description.
Create a folder in the source folder under the hexo directory called tags (just a suggestion, which you can modify as you like).
Then create a Markdown file named index.md in the file.
In the index.md file to write the following content.
---
title: tags
date:
layout: tags
---
titlecan be changed,layoutcan not be modified.
If you'd like to add an entry to the Gallery page, please refer to the separate page.
If an article does not want to appear in the site, just add it to the front-matter
layout: private