一个好看的Hexo主题,BFHUI

CN Post

https://blog.bfh.ink/?p=78

Announcement

This theme is based on the enhanced version of the Argon theme, there is no plagiarism, the copyright belongs to both parties!

Declaration (bug)

Currently does not support Markdown’s code insertion method!

Markdown

 
```cpp
#include<iostream>
using namespace std;
int main(){
cout<<"Hello";
return 0;
}
```

   

This theme uses Html

 
<pre><code>#include<iostream>
using namespace std;
int main(){
cout<<"Hello";
return 0;
}
</code></pre>

   

  • Html supports automatic language recognition
  • Html supports code highlighting
  • Html support code in code
  • Html supports header 1, 2, 3, 4, 5, and 6 fonts

Characteristic

  1. Lightweight and beautiful-using the Argon Design System front-end frame, the details are exquisite, light and beautiful
  2. Highly customizable-customizable theme color, layout (double column/single column/three column), top column, side column, banner, background image, different backgrounds in day and night mode, background immersion, floating operation buttons, etc., Provides a wealth of customization options
  3. Night mode-supports three modes: day, night, and pure black, and can automatically switch according to the time or follow the system night mode
  4. Many functions-Tag and classification statistics, author links, additional links, article word count and estimated reading time, article outdated information display
  5. Pjax-Support Pjax non-refresh loading, improve browsing experience
  6. Friendly Links – Support the use of WordPress’s built-in link manager for friend chain management, and support a variety of friend chain styles
  7. “Talking” function-publish ideas at any time, and display them on the special “Talking” page, and also support the interspersion of talks with homepage articles
  8. Comment function extension-Ajax comments, comments support Markdown, verification code, edit again, display UA, private message mode, email notification when replying, view editing records, unlimited loading, etc.
  9. Many functions-article directory, reading progress, Mathjax or Katex formula analysis, picture zoom preview, Pangu.js text formatting, smooth scrolling, etc.
  10. Abundant shortcodes-Support for inserting TODO, tags, warnings, tips, folding blocks, Github information cards, timeline, hidden text, video and other modules in the article through shortcodes
  11. Multi-language-support Chinese, English, Russian and other languages
  12. Others-adaptive, well-optimized article reading interface CSS, switchable serif / sans serif fonts, customizable CSS and JS, support for using CDN to accelerate static file access, SEO friendly, banner typing animation, message board page Wait

Quick to use

How to use?

Precautions

Nodejs must be installed before

Installed hexo


Github: https://github.com/black-fruit/theme-Hexo-BFHUI

You can download the installation package. Currently supports github download or direct download

Direct download is very, very difficult for not being able to access github or accessing github.

Node download address: https://v3download.bfhui.top/bfhui.v.0.1.2.zip

Apply to hexo

Unzip this zip archive

Then move the unzipped folder to “your hexo blog/themes” folder

After

Re it name “bfhui”.

Then open your blog root directory‘s “_config.yml

Required plugins for this blog theme.

Type in cmd or bash:

 
npm install hexo-generator-search --save

   

And then enjoy(And theme Setting)

Photo

image-20210503102845407

image-20210503102900138

image-20210503102916977

Theme Setting

Please open the theme’s _config.yml

image-20210503103030979

Comments

For the time being, only support for gitalk is supported (the Disqus comment system is currently being updated)

image-20210503103208242

Code

FunctionTypeEffect
enableboolTrue or False
githubIDstringEnter your Github login name
ownerstringYour Github name or organization name
repostringIssus Rope
adminuserstringAdmin Github name
clientIDstringId obtained in OAuth
clientSecretstringSecret obtained in OAuth
distractionFreemodeboolDistraction free mode

How do I get the client id and client Secret?

Go to Setting

Go to Developer Setting

To here

image-20210503104516744

Click new

image-20210503104540808

For example,

image-20210503104625321

Just got Client ID

image-20210503104702712

Bellow is Client secrets

Click to create

After each fill in, it will be OK.

pangu.js

If you are reading an article, if english and Chinese are mixed and there is a number of 12334, you must be very annoying to look at it

Then use it

He will automatically separate Chinese and English

Like this

你好 hello world 啊 1313

The specifications are

image-20210503105516569

FunctionTypeEffect
enable_panguboolTrue or False

lazyload

Why ?

Of course

Wherever it sees the picture

People left after half watching

But I don’t need it, it’s all loaded (the server traffic is crying in the toilet)

Specification

image-20210503110017359

功能类型作用
enable_lazyloadboolTrue or False
lazyload_thresholdintHow many pixels from the start to load
lazyload_effectstringPicture display animation
lazyload_loading_styleint or nonePicture loading animation

Global

It has

Font settings

Specification

image-20210503111111009

FunctionTypeEffect
theme_colorstringTheme color
show_customize_theme_color_pickerboolAllow users to customize the main color of the theme
darkmode_autoswitchstringAutomatically switch night mode
enable_amoled_darkboolfalse = gray and black true = dark
card_radiusdouble / floatDefault card round corner size
card_shadowstring / noneCard shadow (shadow)
fontstringFont
enable_headroomboolWhether to automatically collapse the top bar when scrolling
nonenonenone

ToolBar

Specification

image-20210503113603108

FunctionTypeEffect
toolbar_iconstringDisplay image
toolbar_icon_linkstringToolBar icon link
toolbar_titlestringTitle

Advanced settings

Footer

image-20210503114905567

Using string

Support hyperlink ico

Math

image-20210503115008734

Custom

image-20210503115044610

Code HighLight

image-20210503115111918

The first item is True or False

The first two is the highlight theme

Big picture preview

image-20210503115206501

Generally default

Smooth scrolling

image-20210503115258763

Action button

image-20210503115332445

Both are bool values directly set by yourself

Banner

image-20210503115459560

Sidebar

image-20210503115517443

image-20210503115542218

  •  Support icon (requires Html i class element)

E.g:

 
<i class="fa fa-home"></i>Home<!--"fa fa-home"is home's icon-->

   

Post

image-20210503115612272

BackGround

image-20210503115647809

Other

image-20210503115707564

Recommended articles and the functions at the end of the article need to modify the configuration file by yourself

After configuration, deploy

 
hexo clean
hexo g
hexo s
ssh -vT git@github.com
hexo d

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值