Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Enhancement] Add category slug and post slug as custom class on listings #30

Open
rubengc opened this issue Dec 15, 2020 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@rubengc
Copy link

rubengc commented Dec 15, 2020

Hi there!

To adding custom styling would be awesome to have classes to identify every element

For example, actually DocsPress renders elements like this:
li.docspress-archive-list-item
li.docspress-archive-list-category
li.docspress-archive-list-item
li.docspress-archive-list-category
li.docspress-archive-list-item

The idea is to add extra classes like this:
li.docspress-archive-list-item.docspress-archive-list-item-html-template
li.docspress-archive-list-category.docspress-archive-list-category-themes
li.docspress-archive-list-item.docspress-archive-list-item-custom-theme
li.docspress-archive-list-category.docspress-archive-list-category-custom-code
li.docspress-archive-list-item.docspress-archive-list-item-other-docs

So you have the general classes "docspress-archive-list-item" and "docspress-archive-list-category" but also you have the "docspress-archive-list-item-{post-slug}" and "docspress-archive-list-category-{category-slug}" to style specific elements

@nk-o nk-o added the enhancement New feature or request label Dec 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants