Skip to content

[Enhancement]: Partial to add more toc-like boxes #1658

@jpf91

Description

@jpf91

What you'd like to propose?

I think it'd be nice to be able to add custom infoboxes next to the toc box.

The main reason I want this is for showing articles in a series, but there might be other usecases. Example:
image

Where the first box would be rendered using the new partial. This also needs some minor html/css adjustments: As we could have either ToC or Series or both in an article, we should not set margin-bottom: 40px on the toc. Instead, we need to intoduce a new div which wraps all those boxes, set margin-bottom: 40px on that one and set margin-bottom:10px or something like that on the boxes.

What do you think? If you think this is a reasonable feature, I can open a PR.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or improvement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @jpf91

        Issue actions

          [Enhancement]: Partial to add more toc-like boxes · Issue #1658 · adityatelange/hugo-PaperMod