Git Product home page Git Product logo

hexo-theme-casual's Introduction

hexo-theme-casual

追求简洁清爽的Hexo主题,界面设计部分采用了Semantic UI (其实是自己做了半天发现审美捉急)

A simple and cool hexo theme with Semantic UI in UI design

Feature

  • Responsive | Comfortable dynamic effects
  • Archive | Tags | Info widgets
  • Involve disqus and duoshuo comment module
  • Involve swiftype search module (need adjust by yourself)

Version list

v1.0.0 - Sep 28, 2016

  • Init theme, now it can be used properly.

v1.0.1 - Nov 15, 2016

  • Improve the style and effect in cellphone.

Installation

//Init blog folder 
$ hexo init blog
$ cd blog && npm install

//Add dependencies
$ npm install --save hexo-renderer-jade hexo-renderer-scss hexo-generator-feed hexo-generator-sitemap hexo-browsersync hexo-generator-archive

//clone theme
$ git clone https://github.com/littlewin-wang/hexo-theme-casual themes/casual

//Then update your blog's _config.yml(yourblog/config.yml) to use the theme.
# Extensions
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
theme: casual

Config

Add tags page

  • In blog root dir
$ hexo new page tags
  • Modify source/tags/index.md
---
title: tags
layout: "tags"
---

Add about page

  • In blog root dir
$ hexo new page about
  • Modify source/about/index.md
---
title: About me
layout: "about"
---
//Add personal info you'd like to add

Avatar & favicon

Add files to themes/casual/source/ and modify _config.yml

avatar: /avatar.png
favicon: /favicon.png

Personal info and social info

Just modify _config.yml

aboutme: 朝着前端打怪升级中 | 目前从事闪存产品的固件和测试工具开发工作 | 多特蒙德死忠

social:
  github: http://github.com/littlewin-wang
  twitter: http://twitter.com/littlewin_wang
  weibo: http://weibo.com/fredinweibo

Comment

Modify disqus(or duoshuo) items, value is your disqus(or duoshuo) id.

# Comment
# e.g disqus: seansun
disqus:
duoshuo: littlewin

Search

Set true in swift_search item in _config.yml

# Search
swift_search: true

then change the code in themes/casual/layout/partial/script.jade

//- swiftype search
- var ss = theme.swift_search
if ss
  script
    | (function(w,d,t,u,n,s,e){w['SwiftypeObject']=n;w[n]=w[n]||function(){(w[n].q=w[n].q||[]).push(arguments);};s=d.createElement(t);e=d.getElementsByTagName(t)[0];s.async=1;s.src=u;e.parentNode.insertBefore(s,e);})(window,document,'script','//s.swiftypecdn.com/install/v2/st.js','_st');

    | _st('install','TvAnFS4AVxjiJUvrZJRB','2.0.0');

More Info

Pls refer to User guide

Contact

Email: [email protected]

hexo-theme-casual's People

Contributors

littlewin-wang avatar nqounet avatar

Watchers

James Cloos 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.