Git Product home page Git Product logo

hexo-theme-jsimple's Introduction

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. CSPEnable: 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 CSPEnable 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

hexo-theme-jsimple's People

Contributors

liaobinbin avatar stonecypher avatar tangkunyin avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.