JSimple is a responsive blog theme for Hexo which include day night model,insight search,article view count etc. Inspired by JianShu.com.
- Get it from GitHub
$ git clone https://github.com/tangkunyin/hexo-theme-jsimple themes/jsimple
- Enable
Modify theme
setting in _config.yml
to jsimple
.
To ensure the normal use of the search, please add "hexo-generator-json-content": "^2.2.0"
to your site package.json file
manually
- Update
$ cd themes/jsimple
$ git pull
For a quick start, see my Site backup may be more convenient.
Mandatory total https access. Full https model which means Content-Security-Policy is upgrade-insecure-requests in html meat tag. Please set fullHttps
false when you test on localhost or your online server not support https.Otherwise the css and js in theme reference will be error and the home page will be open error.
Name order decide show index.The name also called category alias,so you must set category alias before start server. Also the categories
and tags
in your scaffolds post.md file must be set before start server.BTW, category_map
and tag_map
field in site _config.yml
file must one to one correspondence with menus above.
menu:
category1: category alias1
category2: category alias2
category3: category alias3
## Tencent Aanalytics is default. You can update it in site-analytics.ejs file yourself
tentcentAnalyticsId: your siteId
-
cover images setting
There are two kinds of cover image. replace day and night in your theme images dir.
-
Home page sort type and article shown number
homeArticleShown: 10 homePageSortType: -1
type: -1: newer first,1: older first.
-
your site build time or founded date
siteBuildingTime: 12/12/2014
-
Independent page of uri please generate yourself
``` # Example hexo n page about ```
-
Social info settings. telegram,instagram,twitter,github,sinaWb,facebook,github are support.
telegram: http://t.me/kunyintang instagram: https://www.instagram.com/mtangsir/ twitter: https://twitter.com/tangkunyin github: https://github.com/tangkunyin
-
Other settings please replace with your own directly.
All kinds of contributions (enhancements, new features, documentation & code improvements, issues & bugs reporting) are welcome.
Looking forward to your pull request.
Special thanks to iTimeTraveler and jiangmuzi, who designed the theme Hipaper and JianShu.
JSimple is under the MIT license. See the LICENSE file for details.