Skip to content

Add option to unlist blog post from sidebar #1393

Closed

Description

@olafurpg

🚀 Feature

It would be nice if it was possible to unlist a blog post so that it doesn't appear in the sidebar.

For example, a blog post with the frontmatter below would not appear in the sidebar.

title: My Unlisted Blog Post
unlisted: true
---
Hello world!

I tried looking for such a header option at https://docusaurus.io/docs/en/adding-blog#header-options but I couldn't any similar functionality.

Have you read the Contributing Guidelines on issues?

Yes.

Motivation

The motivation for this feature is to make it possible to change dates of published posts without breaking the old URL (which might be widely shared).

Concrete example, we published a blog post two weeks ago that is dated for 2020 (https://scalameta.org/metals/blog/2020/04/12/mercury.html). We have closed three PRs fixing the date (scalameta/metals#683, scalameta/metals#670, scalameta/metals#656) but they have all been closed because changing the date of the post would turn the old URL into a 404.

With the ability to unlist posts, I could unlist the 2020 post, create a new posts dated in 2019 and update the unlisted 2020 post to forward to the new 2019 post.

I'm open for alternative solutions to fix that particular problem. I think unlisting is a flexible solution that could be useful in other situations as well.

Pitch

Docusaurus blogs are great! Adding the ability to unlist a blog post would make blogs even better by providing flexibility in how to organize the blog sidebar.

Activity

  1. added 3 commits that reference this issue on Apr 26, 2019
    c831881
    27f22c2
    26aee90
  2. olafurpg commented on Apr 26, 2019

    @olafurpg
    ContributorAuthor

    I took a stab at implementing this feature in #1396, I'm not familiar with JavaScript so any feedback is much appreciated 🙏

  3. added
    feature
    on May 17, 2019
  4. added a commit that references this issue on Jun 15, 2019
    da3c913
  5. added a commit that references this issue on Jun 25, 2026
    acdc108
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

    feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions