Code Monkey home page Code Monkey logo

seje's Introduction

寫嘢 - Seje

寫嘢(Se2'Je5), A beatutiful Hexo Theme

Please note that this project has deprecated, please use Seje2

简体中文

Install

  1. Open your Hexo flodder and Execute the following command:
git submodule add https://github.com/eatradish/Seje.git themes/Seje
  1. Open your hexo _config.yml, set theme value as Seje:
theme: Seje
  1. Using hexo s see if it works.

Configure

Edit config in theme_config of _config.yml :

theme_config:
  # Display Archives, About, RSS and Member in menu
  menu:
    Home: /
    Archives: /archives
    About: /about
    RSS: /rss
    Member: /member

Check out all config under the _config.yml of Seje.

If you using disqus

  1. Set your disqus_shortname in your theme_config of _config.yml :
theme_config:
  disqus_shortname: $YOUR_SHORTNAME
  1. Using hexo s see if it works.

Excerpt vs. Content?

Homepage will show full content of every post in default. You can set this to show the summary:

excerpt: true

Favicon

Copy your favicon.png to source.

You can also set the file name of favicon yourself:

favicon: foobar.png

Code Highlight

Highlight

Add the highlight in _config.yml of your Hexo:

highlight:
  enable: true
  hljs: true

Prism

See Hexo document for details.

Add the prismjs in _config.yml of your Hexo:

highlight:
  enable: false
prismjs:
  enable: true
  preprocess: true
  line_number: true
  line_threshold: 0
  # tab_replace: '    '

Podcast

Seje support podcast feature (thanks shikwasa!), A case of using podcast on Seje:

  1. install hexo-generator-podcast in your Hexo foldder:
yarn add hexo-generator-podcast
  1. Set your Podcast info in your Hexo _config.yml, like this:
podcast:
    type: rss2
    path: podcast.xml
    limit: 20
    hub:
    url: https://URL/to/static/resources
    description: 
    language: zh-CN
    copyright: "COPYRIGHT"
    owner: ITUNES-OWNER
    email: ITUNES-EMAIL
    category: CATEGORY

theme_config:
  podcast: true
  1. hexo new "podcast-test" and add the following example to the markdown file created:
---
title: podcast test
date: 2020-06-19 16:23:38
tags:
subtitle: SUBTITLE
category: podcast # must be exactly `podcast`
media: /path/to/media # placed under //URL/to/static/resources/path/to/media
image: /path/to/episode/image # same as above, but somehow iTunes doesn't support episode image as it should do
length: 6989--IN_BYTES
type: audio/mpeg
duration: XX:YY:AA
author: AUTHOR
---
A instance of Podcast:
{% podplayer %}

Vertical Display

vertical: true

Dark Mode

  • Disable auto dark mode
    darkmode: false
  • Always use dark mode
    always_darkmode: true

License

This will display "CC BY-SA 4.0" at the foot of page:

license: CC BY-SA 4.0

Mirror Service of Font

Use mirror of Google Fonts (fonts.loli.net in this example) to speed up loading:

font_mirror: fonts.loli.net

Custom Font

Same as CSS syntax. Use ' to include the font name with space, use , to split multiple fonts:

custom_font: 'Droid Sans Mono', monospaced

Display date in Chinese

Enabled in default, date will be displayed as "二〇二一年十一月八日". Date will be display like "2021/11/08" after disabled.

to_chinese_date: false

Bug

  • Please use git pull regularly. Bug fixes are guaranteed.
  • Issues / Pull requests are welcome

seje's People

Contributors

eatradish avatar wordlessecho avatar carminiumn 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.