Skip to content

feat: tags and categories for pages & collections #161

Closed
@noraj

Description

@noraj

Summary

There are Predefined Variables for Posts that are not available for pages like tags and categories.

Motivation

Be able to create a doc layout based on page layout and have a documentation with tags enabled like for Mozilla, Joomla or Docker documentation (see mkdocs/mkdocs#1828 (comment)).

See an example of use case in the Why this would be a great feature? of this issue and this comment example with screenshots.

Guide-level explanation

For all staticgen either there is no tags support at all or tags are available on for posts, I never have seen one yet that have tags support for pages. Here if post already have this feature it's like for Hexo, it shouldn't be difficult to enable those for pages too.

Reference-level explanation

Copy the tags & categories features from post layout to page layout.

Drawbacks

I see no reason to not doing it.

Related issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions