ppoffice / hexo-theme-minos

A simple and retro styled Hexo theme, concentrated more on your ideas.
http://ppoffice.github.io/hexo-theme-minos
MIT License
764 stars 203 forks source link

Functionality of Category, layout of Category page #100

Open ladychili opened 5 years ago

ladychili commented 5 years ago

Categorizing and tagging are different functionalities. But apparently, Category page is using exactly the same layout as Tag page, which is not reasonable. i.e. It's hard to skim the posts under a certain category, especially when there are a lot of articles under that category.

Possible solution:

  1. It would be better to just list post titles and omit the content when selecting a particular category, or
  2. Show more information (i.e. lists of post titles) on the category page, instead of treating it as the tag page.
vanducng commented 4 years ago

Hi @ladychili and @ppoffice, I did try to customize a bit the css and layout as below. Hope it can be used in the master branch.

.category-wrap {
    margin: 1em 0;
    font-size: .9rem;

    a {
        color: black;
        margin: 0.2em;

        &:before {
            font-family: "FontAwesome";
            content: "\f0da";
            margin-right: 0.5em;
        }

        &:hover {
            color: darkgray;
        }
    }

    .category-list-child {
        padding-left: 2em;
    }
}

.category-list-count{
    &:before {
        content: "(";
    }
    &:after {
        content: ")";
    }
}