Skip to content

lazzzis/hexo-theme-mls

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

hexo-theme-mls

A hexo made for hexo3

Preview

Installation

  1. Clone git clone https://github.com/lazzzis/hexo-theme-mls.git

  2. Install some plugins on your blog root directory

    npm install --save hexo-image-caption

  3. Revise _config.yml in your blog root directory

    theme: hexo-theme-mls # enable the theme
    
    highlight: # disable default highlight
      enable: false
      line_number: false
      auto_detect: false
    
    # add caption for iamges
    image_caption:
      enable: true #false to disable
  4. Tags and categories

    Create two folders under your source directory: tags and categories.

    Create an index.md file under each folder that you've just created.

    tags/index.md:

    layout: tags
    title: tags
    ---
    

    categories/index.md:

    layout: categories
    title: categories
    ---
    

Config

  1. the _config.yml in this theme folder

    # Header
    menu:
      Home: /
      Archives: /archives
      Categories: /categories
      Tags: /tags
      Links: /links
      About: /about
    rss: /atom.xml
    
    # Google Analytics
    
    google_analytics:
    
    # Miscellaneous
    favicon: # url for your favicon
    twitter: # twitter id
    github: # github id
    fb_app_id:
    instagram:
    music: # your id in music.163.com, like http://music.163.com/#/user/home?id=...
    
    # due to some reason, this has to be a url rather than id
    google_plus:
    
    # disable some share applications.
    # For the details of all the applications, please refer to https://github.com/overtrue/share.js
    share_disabled: weibo,qzone,qq,tencent,douban,linkedin,diandian
  2. background image

    The image is under source/css/images, and it has to be named as 'background.jpg';

About

a theme made for hexo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published