Skip to content

BosenY/Lap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lap

hexo-image

Lap is a simple blog theme what has basic functions, it borrows styles from some bootstrap themes, but it focus on writing and communicating.

Demo

You can preview my blog: boseny.github.io

Install

//cd your hexo theme directory
git clone https://github.com/BosenY/Lap.git

Enable

Modify theme setting in site's _config.yml to Lap:

theme: Lap

Plugins

I use some plugins to realize some features such as :

  1. Site Search
  2. PWA

If you want to use, you have to install these plugins:

yarn add hexo-generator-search hexo-generator-searchdb // search
yarn add hexo-offline // pwa

More Config

Setting these in your theme's _config.yml

# Social links
social:
  GitHub:
    key: github
    link: https://github.com/Boseny
  # Twitter: https://twitter.com/your-user-name
  微博:
    key: weibo
    link: https://weibo.com/boseny
  # 豆瓣: http://douban.com/people/your-user-name
  知乎:
    key: zhihu
    link: https://www.zhihu.com/people/boseny
  Lofter:
    key: lofter
    link: http://boseny.lofter.com/
  # 等等。。。

# disqus comment
disqus: false
disqus_shortname:

# livere comment
livere: false
livere_uid:

#Gitment (Recommended Use) see https://imsun.net/posts/gitment-introduction/
Gitment: true
Gitment_client_id:
Gitment_client_secret:
Gitment_Github_id:
repo:

# google analytics
googleTrackId:

# google AdSenseId
AdSenseId:

# 百度统计
baidu_analytics:

toc:
  enable: true

# anchorjs
anchorjs: true

# sidebar search
search: true
# sidebar categories
categories: true
# sidebar links
links: true

# 飘落插件
# 具体请看 https://github.com/BosenY/Draw
draw: true #默认开启
draw_maxNum: 10 #最大飘落个数
draw_iconText: ❤ #飘落个体
draw_color: red #飘落个体颜色

Other

You can set bgimg in current markdown:

#bg-img config
headerImg: /images/chunwu-bg.jpg

and then add bg.jpg to the source/images directory