Coder Social home page Coder Social logo

joegana / hexo-theme-yelee Goto Github PK

View Code? Open in Web Editor NEW

This project forked from moxfive/hexo-theme-yelee

0.0 3.0 0.0 9.61 MB

简而不减 Hexo 双栏博客主题; Another simple and elegant theme for Hexo.

Home Page: http://moxfive.xyz/

HTML 26.38% CSS 47.29% JavaScript 26.33%

hexo-theme-yelee's Introduction

  Theme Yelee relies on Hexo-Theme-Yilia, thanks for the author Litten. Fix some bugs, change lots of styles, add several features. And then I made the theme. Yelee is mainly designed for fluent text reading. I change styles and add functions, meanwhile, try hard to keep this theme simple, stupid and clear. Theme DEMO: MOxFIVE's Blog

### Installation
git clone https://github.com/MOxFIVE/hexo-theme-yelee.git themes/yelee

Change theme field in Hexo root's _config.yml file.

theme: yelee

Update

cd themes/yelee
git pull

New Features DEMO

- En
1 Flexible table of contents
2 Transparent & Random background
3 Scrolling button
4 Copyright info.
5 Post navigation button
6 Site counter
7 i18n, multi-language
8 Local Site Search
9 Load Comment dynamically

Configuration

Internationalization

Use internationalization to present your site in different languages.

https://hexo.io/docs/internationalization.html

# Hexo Configuration
## Docs: http://hexo.io/docs/configuration.html

# Site
language: en
Available Languages
Code - - Contributor(s)
en English 英语 MOxFIVE
zh-Hans Chinese (Simplified) 大陆简体 MOxFIVE
zh-Hant-HK Chinese (Traditional) 港澳繁體 MOxFIVE
zh-Hant-TW Chinese (Traditional) 台灣正體 MOxFIVE

Any Contribution is Welcome!

0. Post Excerpt

There are two ways to show excerpt in homepage.

  • a:
title: Hello World
date: 2015-12-03 00:00:00
---
<Excerpt in index> 
+ <!-- more -->
<The rest of contents文>
  • b: description in Front-matter
title: Hello World
date: 2015-12-03 00:00:00
+ description: "Welcome to Hexo! This is your very first post."
---
<Contents>

Description only support plain text

Set the value of description with quotes to avoid unexpected error :

1. About Page:

cd to your hexo folder and run this code:

hexo new page about

2. Tags Cloud Page:

hexo new page tags

Post with several categories issue#4

3. Background image:

Find or change background images in folder:

/yelee/source/background/

Setting in themes/yelee/_config.yml:

background_image: 5

  • Default value is 5, free to modify the number

  • "5": show 5 images form bg-1.jpg to bg-5.jpg in /yelee/source/background/

  • "0": remove background image and use white-gray theme

Saving JPEGs for the Web: Setting Photoshop Up for Progressive JPEGs

Optimize images with PhotoShop (JPEG, Quality 0, Progressive)

4. Highlight Style:

Set inline_code to style highlight text & Chose a highlight theme for code block.

highlight_style:
  #on: true
  inline_code: 1
  code_block: 1

Set on: true to enable this feature

highlight theme from https://github.com/chriskempson/tomorrow-theme

5. Comment:

Disqus, duoshuo and youyan is supported, enable ONE of them in theme's "_config.yml".

6. Table of Contents:

Remove toc and the button via putting toc: false before "---" at [post].md.

Hide toc in default

Set toc: false in yelee/_config.yml.

(Set toc: true in front-matter to show it in certain post)

7. Copyright info.:

Hide this via putting original: false to post's front-matter.

Hide Copyright info. in default

Set copyright: false in yelee/_config.yml.

(Set original: true in front-matter to show it in certain post)

8. 404 Page:

hexo new page 404

And then set permalink: /404 in /source/404/index.md front matter.

9. RSS Feed:

Install plugin: hexo-generator-feed

10. Sitemap for SEO:

Install plugin: hexo-generator-seo-friendly-sitemap

Baidu: hexo-generator-baidu-sitemap

11. Apple Touch icon:

The Path is /yelee/source/apple-touch-icon.png

Recommended size: 180*180

hexo-theme-yelee's People

Contributors

moxfive avatar litten avatar cntanglijun avatar bitmingw avatar netcan avatar pengloo53 avatar linhe0x0 avatar tlongzou avatar arondight avatar ykk648 avatar douxingxiang avatar matrikslee avatar

Watchers

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