All Projects → Siricee → Hexo Theme Chic

Siricee / Hexo Theme Chic

Licence: other
An elegant, powerful, easy-to-read Hexo theme.

Projects that are alternatives of or similar to Hexo Theme Chic

Hexo Theme Arknights
明日方舟罗德岛阵营的 Hexo 主题,支持数学公式、Valine评论系统、Mermaid图表
Stars: ✭ 154 (-71.43%)
Mutual labels:  hexo, hexo-theme, mathjax
Hexo Theme Claudia
📌 Concisely designed & easy to config, match device dark mode, 90+ Lighthouse scoring
Stars: ✭ 379 (-29.68%)
Mutual labels:  dark-theme, hexo, hexo-theme
hexo-theme-lanmiao
使用bootstrap构建的类单页博客,粉色系简洁Hexo主题
Stars: ✭ 16 (-97.03%)
Mutual labels:  hexo, elegant, hexo-theme
Hexo Theme Obsidian
🎨 A dark Hexo theme, it's responsive, simple but elegant.
Stars: ✭ 448 (-16.88%)
Mutual labels:  dark-theme, hexo, hexo-theme
dev-dark-theme
The dev dark theme is a theme developed using hexo.
Stars: ✭ 24 (-95.55%)
Mutual labels:  dark-theme, hexo, hexo-theme
Landscape Plus
针对中国大陆地区对hexo官方主题landscape进行优化。
Stars: ✭ 503 (-6.68%)
Mutual labels:  hexo, hexo-theme
Hexo Theme Aircloud
A concise hexo theme
Stars: ✭ 394 (-26.9%)
Mutual labels:  hexo, hexo-theme
Hacker
❤️ A simple theme for Hexo
Stars: ✭ 501 (-7.05%)
Mutual labels:  hexo, elegant
Hexo Theme 3 Hexo
hexo主题:三段式设计、极简、方便 Hexo theme: three-stage design
Stars: ✭ 421 (-21.89%)
Mutual labels:  hexo, hexo-theme
Hexo Matery Modified
My personal modified hexo matery theme with some bugs fixed.
Stars: ✭ 342 (-36.55%)
Mutual labels:  hexo, hexo-theme
Hexo Theme Material
Material Design theme for hexo.
Stars: ✭ 4,028 (+647.31%)
Mutual labels:  hexo, hexo-theme
Hexo Theme Yilia Plus
一个简洁优雅的hexo主题 A simple and elegant theme for hexo.
Stars: ✭ 462 (-14.29%)
Mutual labels:  hexo, hexo-theme
Theme Bmw
✋ Smart Voice: Voice for yourself | 微声: 请为自己发声
Stars: ✭ 373 (-30.8%)
Mutual labels:  hexo, hexo-theme
Hexo Theme Typography
Rediscover the beauty of typography.
Stars: ✭ 367 (-31.91%)
Mutual labels:  hexo, hexo-theme
Hexo Theme Hiker
An attractive theme for Hexo. called "Hiker", short for "HikerNews".
Stars: ✭ 348 (-35.44%)
Mutual labels:  hexo, hexo-theme
Hexo Theme Replica
Github style replication for hexo theme
Stars: ✭ 484 (-10.2%)
Mutual labels:  hexo, hexo-theme
Hexo Theme Inside
🌈 SPA, Flat and clean theme for Hexo.
Stars: ✭ 480 (-10.95%)
Mutual labels:  hexo, hexo-theme
Hexo Theme Keep
🌈 A simple and elegant theme for Hexo. It makes you more focused on writing.
Stars: ✭ 483 (-10.39%)
Mutual labels:  hexo, hexo-theme
Hexo Theme Skapp
The hexo flat design theme(扁平化简约主题)
Stars: ✭ 490 (-9.09%)
Mutual labels:  hexo, hexo-theme
Hexo Theme Stun
🦄 An elegant theme for Hexo
Stars: ✭ 305 (-43.41%)
Mutual labels:  hexo, hexo-theme

Chic Theme

Chic theme

Chic, French word meaning 'Elegant' in English.

Author Node Hexo Device Build Status

Documentation language

Contents

Introduction

An elegant, powerful, easy-to-read Hexo theme.

Demo

Features

  • Appropriate blank blocks, elegant but not simple.

  • Light/Dark theme, just one click.

  • Abundant highlight mode.

  • Elaborately selected fonts, best reading experience. 'Microsoft Jhenghei' especially recommended.

  • Auto fit Mobile and Screen responsively.

  • Support MathJax, support formula written in LaTeX.

Installation

cd your-blog/themes
git clone https://github.com/Siricee/hexo-theme-Chic.git Chic
# Modify theme setting in _config.yml to Chic.

Configuration

Click here to spread
# Header
navname: Bentham's Blog

# navigatior items
nav:
  Posts: /archives
  Categories: /category
  Tags: /tag
  About: /about

# favicon
favicon: /favicon.ico

# Profile
nickname: Jeremy Bentham

### this variable is MarkDown form.
description: Lorem ipsum dolor sit amet, **consectetur adipiscing elit.** <br>Fusce eget urna vitae velit *eleifend interdum at ac* nisi.
avatar: /image/avatar.jpeg

# main menu navigation
## links key words should not be changed.
## Complete url after key words.
## Unused key can be commented out.
links:
  Blog: /archives
#  Category:
#  Tags:
#  Link:
#  Resume:
#  Publish:
#  Trophy:
#  Gallary:
#  RSS:
#  AliPay:
  ZhiHu: https://www.zhihu.com/people/sirice
#  LinkedIn:
#  FaceBook:
#  Twitter:
#  Skype:
#  CodeSandBox:
#  CodePen:
#  Sketch:
#  Gitlab:
#  Dribble:
  Instagram:
  Reddit:
#  YouTube:
#  QQ:
#  Weibo:
#  WeChat:
  Github: https://github.com/Siricee

# how links show: you have 2 choice--text or icon.
links_text_enable: false
links_icon_enable: true

# Post page
## Post_meta
post_meta_enable: true

post_author_enable: true
post_date_enable: true
post_category_enable: true
## Post copyright
post_copyright_enable: true

post_copyright_author_enable: true
post_copyright_permalink_enable: true
post_copyright_license_enable: true
post_copyright_license_text: Copyright (c) 2019 <a href="http://creativecommons.org/licenses/by-nc/4.0/">CC-BY-NC-4.0</a> LICENSE
post_copyright_slogan_enable: true
post_copyright_slogan_text: Do you believe in <strong>DESTINY<strong>?
## toc
post_toc_enable: true

# Page
page_title_enable: true

# Date / Time format
## Hexo uses Moment.js to parse and display date
## You can customize the date format as defined in
## http://momentjs.com/docs/#/displaying/format/
date_format: MMMM D, YYYY
time_format: H:mm:ss

# stylesheets loaded in the <head>
stylesheets:
  - /css/style.css

# scripts loaded in the end of the body
scripts:
  - /js/script.js
  - /js/tocbot.min.js
    # tscanlin/tocbot: Build a table of contents from headings in an HTML document.
    # https://github.com/tscanlin/tocbot


# plugin functions
## Mathjax: Math Formula Support
## https://www.mathjax.org
mathjax:
  enable: true
  import: demand # global or demand
  ## global: all pages will load mathjax,this will degrade performance and some grammers may be parsed wrong.
  ## demand: Recommend option,if your post need fomula, you can declare 'mathjax: true' in Front-matter

Add 'Tag', 'Category' Page

There is no 'tag' or 'category' page in the site as it initializes. If you need it, please follow the steps below.

  1. execute commands
hexo new page tag
hexo new page category
  1. enter the dictionary
cd source/tag
  1. add 'layout' key
// source\tag\index.md
---
title: Tag
layout: tag
---
  1. Do so with the category page with Category as title and category as layout.

MathJax (Render LaTeX formula)

Related config file (Chic/_config.yml):

# plugin functions
## Mathjax: Math Formula Support
## https://www.mathjax.org
mathjax:
  enable: true
  import: global # global or demand
  ## global: all pages will load mathjax,this will degrade performance and some grammers may be parsed wrong.
  ## demand: if your post need fomula, you can declare 'mathjax: true' in Front-matter

mathjax uses the keywords below:

  • enable: value true enables mathjax (default value true); value false disables it.
  • import: this key sets mathjax load method, options can be global or demand.
    • global: global import, all pages will load script. It's convenient, but it may cause some MarkDown grammars to be parsed wrong. For example, consecutive $$ will be rendered as a formula; Besides, global import will waste performance in pages without any formula.
    • demand: [Recommended] Import mathjax when you need it. After you set this value, if you need to use formula, just declare it in the post Front-matter. Here is an example:
      ---
      title: MathJax Test
      date: 2019-07-05 21:27:59
      tags:
      mathjax: true # add this statement, MathJax will be enabled in this post.
      ---
      

LaTeX grammars will not be illustrated in this doc. In Chic theme, single '$' rounded statement is regarded as inline formula like $f(x)=ax+b$; double '$' rounded statement is regarded as block formula like $$f(x)=ax+b$$. More information please read LaTeX doc and Formula test page in Demo Site.

Image-title

You have 2 methods to import images in your posts:

  • image import with GFM (without image-title)
    ![pic](picUrl)
    
  • hexo built-in image tag (with image-title)
    {% img [class names] /path/to/image [width] [height] '"alt text" "title text"' %}
    

So if you want to import as fast as possible, you can use GFM, and this way will also get the best adaptability.

If you want to display image-title, you should use hexo built-in image tag.

  • "alt text" is used when the image doesn't load or something went wrong in that image (404).
  • "title text" will be displayed below the image.

You can preview image-title and sample code in Demo site

Customize

  • Highlight Style: Enter hexo-theme-Chic\themes\Chic\source\css\style.styl change stylesheet with key word _highlight in link in _highlight dictionary.

  • Customize stylesheets in this stylus file:

    hexo-theme-Chic\themes\Chic\source\css\custom.styl

  • Customize javascripts in the dictionary:

    hexo-theme-Chic\themes\Chic\source\js

    Then add declaration in _config.ymlusing the keyword 'script'.

FAQ

  1. I deployed my site on a second-level url (such as username.github.io/blog), and my css, avatar and other sources are missing (404 error)

    Answer: You need to change some URLs in root config keyword. For instance:

    # (blog/_config.yml)
    
    # URL
    ## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
    url: https://siricee.github.io/hexo-theme-Chic/  # this is your deploy url.
    root: /hexo-theme-Chic/  # this is your root folder url.
    permalink: :year/:month/:day/:title/
    permalink_defaults:
    
  2. How to set the dark theme as default for whole site automatically?

    Answer: You need to change some code in themes\Chic\source\js\script.js, function doucument.ready as shown below.

    document.ready(
     function () {
         // ...Omit part of the code
         const isDark = currentTheme === 'dark';
         // change this line to
         // const isDark = currentTheme !== 'dark';
    

    Now, you have already set the dark theme as default successfully.

  3. More questions will be added...

Gallery

screely-1560228577821.png screely-1560228791041.png screely-1560228621288.png screely-1560228761180.png

smartmockups_jwrd4ru3.png

smartmockups_jwrd9y4r.png

LICENSE

Chic © @Sirice

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].