Optimization of structures and matery theme of the windows at hexo blog

In the windows, on my blog to build hexo

  • Members Keguan: This article first appeared on my blog , to be updated.

  • Now there are many online blog about hexo build video and tutorials, I set up a reference: bi stations to build up the main CodeSheep video.

http://www.bilibili.com/video/av44544186/

In windows, matery theme optimization

  • Here are a few simple optimization blog I made, because I think the blog is focused primarily on content.

  • Note that you change the settings in hexo after the execution on cmd:

hexo d, can be pushed back hexo clean after hexo g after hexo s static to your blog, because the same operation, not a few instructions later.

My blog preview

  • My static blog address:

https://s-sun52.github.io/
Here Insert Picture Description

Theme change

  • When you browse other people's blog, I found to have been a topic widely quoted --Matery.

  • Change the method:

  1. Download: Download the theme matery, at the command of the windows cmd: git clone https://github.com/blinkfox/hexo-theme-matery , then this file into your blog themes document file folder, you can direct changed its name to matery, easy to use later.

  2. Then the configuration file _config.yml under hexo in (used Notepad to open), the theme: content, change matery, note that there is a space after the colon.

  3. Then, in the cmd:

After hexo g after hexo clean after hexo s hexo d.

Change the subject matter, so that personalization

Change logo and blog title

  • Modifications blog title: In the configuration file _config.yml under hexo in, directly modify the title: the contents can post.

  • For the picture changes: find matery has given us a head configured in the theme file matery following _config.yml found he will configure logo.png logo picture \ under matery \ source medias for convenience, you can find one you like directly to logo will replace the original logo.png.

The theme is set to Chinese

  • The profile in _config.yml under hexo, language: The modification spaces + zh-CN, can.

Modify themes

  • In the configuration file _config.yml matery topic, we have set the backdrop for pictures \ under matery \ source medias 0.jpg, 1.jpg, 2.jpg; so in order to facilitate, we can directly what you want picture modify these images with the similar pixel size and storage, these few pictures directly replaced.

Home modify display text

  • In _config.yml file under matery, modify the title in the dream: and text: text to the back.

Modify the text under the Home subtitle

  • In _config.yml file under matery, modify the sub1: content after: and sub2.

Open dynamic ribbon background

  • In _config.yml file under matery, modify ribbon_dynamic: next to enable: true contents can be changed.

Open comments

  • In _config.yml file under matery, the individual comments can be configured to activate.

Add cartoon characters

  • Cartoon character author: https://huaji8.top/post/live2d-plugin-2.0/ , in which there can pick their favorite cartoon characters. (Remember its name oh)

  • Download file: cmd, enter npm install --save hexo-helper-live2d to download.

  • Download the appropriate model: for example, I downloaded wanko, you can enter in cmd npm install live2d-widget-model-wanko

  • Add code: Add the following to the configuration file _config.yml under hexo in
    `

live2d:
enable: true
scriptFrom: local
model:
use: live2d-widget-model-wanko
display:
position: right
width: 150
height: 300
mobile:
show: false
1234567891011`

  • Pushed to your blog can be static.

Reference website

  1. https://lqgjava.github.io/2019/08/24/Hexo blog of the blog beautification /

  2. https://www.bilibili.com/video/av44544186/

  3. https://github.com/blinkfox/hexo-theme-matery

  4. https://huaji8.top/post/live2d-plugin-2.0/


Thanks for reading, if wrong, welcome criticism. There may be a problem in Comments article, I will try to reply.

Published 14 original articles · won praise 7 · views 450

Guess you like

Origin blog.csdn.net/Sunshine_20201/article/details/104391877