Skip to content

Ordering tag cloud #8

Open
Open
@avelrom

Description

@avelrom

In case you want to order the tags by number of posts, inside the CategoryCloud.astro file, when calling

    Instead of using:

    Object.entries(processedCats).map(([key, val]) => (
    

    Change it for:

    Object.entries(processedCats).sort((a,b)=> b[1]-a[1]).map(([key, val]) => (
    

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions