Use Hexo + Github/Coding to create a free personal blog. This article records some of the personalized configuration of Hexo blog. Include:

  • Modify the theme,
  • Head,
  • Comments,
  • Search,
  • DaoVoice online contact,
  • Top loading bar,
  • Traffic statistics,
  • Third party statistics,

Personalized configuration

Modify the theme

Download the Next theme, and when you’re done, change the theme: Landscape in the site configuration file to Theme: Next, and perform the Hexo s preview

    git clone https://github.com/iissnan/hexo-theme-next themes/next Copy the code

Add an avatar and a rotation effect

Increase the number of words and reading time

In the themes/next/_config.yml configuration file, find the following: Change wordcount, min2read to true

post_wordcount:  item_text: true  wordcount: true  min2read: true  totalcount: true  separated_meta: trueCopy the code

To add the hexo-Wordcount plug-in, run the following command on the command line:

npm i --save hexo-wordcountCopy the code

After the installation is complete, you can preview the effect. In themes/next/layout/_macro/post.swig, change the word count from “***” to “***”

<span title="{{ __('post.wordcount') }}">  {{ wordcount(post.content) }}</span>Copy the code

Modified to

<span title="{{ __('post.wordcount') }}"> {{wordcount(post.content)}} </span>Copy the code

Reading Duration :*** Changed to reading duration :*** minutes

<span title="{{ __('post.min2read') }}">  {{ min2read(post.content) }} </span>Copy the code

Modified to

<span title="{{ __('post.min2read') }}">  {{ min2read(post.content)}} min </span>Copy the code

Can.

Hexo added seven ox cloud map beds and uploads

Configure Hexo blog authoring environment using VSCode+ 7 Ox Cloud Bed plugin + custom shortcut keys

Tools:

  • Blog writing using VSCode;
  • qiniu-upload-imagePlug-in, need to be configured;
  • vscode-HexoPlug-in;
  • Use seven niuyun, click access as a map bed, this needs to apply for and certification, my certification took two days ~~


Welcome to follow the wechat public account Weyoung to record study notes and some interesting things, welcome to exchange ~~

More Contact Information

platform link
Personal blog www.wanglixia.top/
Preview project: nelucifer.gitee.io/
Personal wechat official Account: weyoung
segmentfault: segmentfault.com/u/nelucifer
CSDN: me.csdn.net/wlx001
Jane: www.jianshu.com/u/99211cc23…
The nuggets: Juejin. Cn/user / 328059…