Giter Site home page Giter Site logo

wayou / hexo-theme-gstyle Goto Github PK

View Code? Open in Web Editor NEW
46.0 8.0 13.0 4.88 MB

a hexo theme with google style

Home Page: http://wayou.github.io/hexo-theme-gstyle/public/

License: MIT License

CSS 26.22% JavaScript 57.28% HTML 16.50%
hexo theme google material

hexo-theme-gstyle's Introduction

hexo-theme-gstyle

a google style theme for hexo.

Preview

Live Demo

preview

screenshot generated by am i responsive

Features

Responsive

Totaly responsive, mobile first. No bootstrap, using modern css3 flex!

Impressing Navigation

full screen navigation menu with morphing animation
Full screen morphing navigation on mobile

Graceful table of content module

Auto generated table of content with transition animation when expanding and collapsing. full screen navigation menu with morphing animation

Usage

  • git clone https://github.com/wayou/hexo-theme-gstyle.git themes/gstyle
  • config site _config.yml theme: gstyle

Using relative assets path in your post

  • Enable post_asset_folder in your hexo site config file _config.yml
  • Install hexo-filter-pathfix to fix the path of assets npm install --save hexo-filter-pathfix
  • Then you can using relative path when writing posts like ![image title](image_name.jpg).

Config

toc

  • Enable toc: true in the Front-matter of posts you wanna display table of content
title: thi is the post title
+toc: true
date: 2016-01-01 15:47:33
tags:
---

Comments

2 comment vendors implemented , choose one you like.

duoshuo_shortname: #your duoshuo shortname goes here
disqus_shortname: #your disqus shortname goes here

Site analytics

The baidu_analytics is mainly for mainland users. you can get the baidu analytics id from the admin page of baidu analytics code installing page. where to get the baidu analytics id

google_analytics:  
baidu_analytics:

Image caption

To enable image caption for iamges, install hexo-image-caption plugin by using this command:

npm i --save hexo-image-caption

And then enable it in your hexo site config file _config.yml (not the theme config file).

# add caption for iamges
image_caption:
  enable: true
  class_name:

Code highlight

Hexo default code highligth is the default. However, I customized Prism.js for this theme, whitch is much nicer and many languagaes like jsx are well supported. And thanks to ele828 for making the hexo prism plugin.

To enable Prism code highlight,

  • npm i -S hexo-prism-plugin
  • edit hexo config file _config.yml(not the one for the theme) to enable this plugin
prism_plugin:
  mode: 'preprocess'    # realtime/preprocess 
  theme: 'default'

Sliding navigation indicator

Whether to show an indicator for the active navigation menu item

active_nav: false

hexo-theme-gstyle's People

Contributors

wayou avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hexo-theme-gstyle's Issues

License?

I’m looking at this theme to use it for a project of mine. I’m curious about licensing though. I’m wanting to fork this code and make some modifications to it to better suit my use case. If you can provide a license, either GPL2 or MIT or whatever you choose so that I will be able to use and modify this code as well as contribute back to this project that would be great.

请教[table of content]

你好,用了您的主题。先谢谢了。

想请教一下,文章内的 table of content 怎么显示?我在每片文章头部也添加了 toc : true

但是还是不显示 table of content?是哪里少了什么吗?
谢谢。

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.