swallsky / hexo-theme-jsimple

Simple three columns theme for Hexo.Inspired by JianShu.com

Home Page:https://shuoit.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JSimple

Build Status

JSimple is a responsive blog theme for Hexo which include day night model,insight search,article view count etc. Inspired by JianShu.com.

JSimple-iPhone-Landscape-Night-Demo

Installation

  1. Get it from GitHub
$ git clone https://github.com/tangkunyin/hexo-theme-jsimple themes/jsimple
  1. 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

  1. Update
$ cd themes/jsimple
$ git pull

Configurations

For a quick start, see my Site backup may be more convenient.

Important settings

1. fullHttps: Boolean value( true or false)

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.

2. menu: Map value

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

3. comment and analytics config in your site _config.yml, please add them manually.

   ## Tencent Aanalytics is default. You can update it in site-analytics.ejs file yourself
   tentcentAnalyticsId: your siteId

The other settings

  1. cover images setting

     There are two kinds of cover image. replace day and night in your theme images dir.
    
  2. Home page sort type and article shown number

     homeArticleShown: 10
     homePageSortType: -1
    

    type: -1: newer first,1: older first.

  3. your site build time or founded date

     siteBuildingTime: 12/12/2014
    
  4. Independent page of uri please generate yourself

     ```
     # Example
     hexo n page about
     ```
    
  5. 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
    
  6. Other settings please replace with your own directly.

Browser support

Contributing

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.

License

JSimple is under the MIT license. See the LICENSE file for details.

Thanks

Hexo Font Awesome

About

Simple three columns theme for Hexo.Inspired by JianShu.com

https://shuoit.net

License:MIT License


Languages

Language:CSS 49.4%Language:HTML 30.0%Language:JavaScript 20.7%