Hexo themes implement multi-level classification display and hexo themes

Source: Internet
Author: User

Hexo themes implement multi-level classification display and hexo themes
Preface

Recently, I was engaged in a blog hosted on github and gitcafe, which was generated using Hexo.
Then, a problem is found, and the classification displayed is level-1. What I want is: DisplayMultilevel Classification.

Problem

The classification display of a basic topic is level-1. How do I display multiple levels?

Solution

So, after studying it, I found the ideal method as follows:

Example

Note: I use the jacman topic. This topic is used as an example.

  • Findsource/css/_partial/aside.stylFile, others may besource/css/_partial/sidebar.styl. It can be displayed on the page.

  • Add a new style as follows:

    //categories.category-block>ul>li  border-bottom 1px solid #ccc.category-block li  margin-bottom 8px.category-list  @media mini    width 45%    float left    margin 0 5% 0 0  @media tablet    width 100%    float none    margin .5em 0 0  .categoriy-list-item    padding .5em 5%  .category-list-count    top -.5em    padding-left .3em    font-size 75%    line-height 0    position relative    vertical-align baseline  ul, ol, dl    list-style none  ul, ol, dl    background-color #f9f9fa    margin-left 20px    li      border-bottom 1px dashed #ccc  .category-list-child    border-top 1px dashed #ccc    margin-bottom 8px

You can modify different styles.

From: http://git.seay.me

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.