Skip to content

Sidebar is present in HTML output for posts even if hidden #711

@bloovis

Description

@bloovis

The generated HTML for blog posts contains a hidden sidebar that lists every post. This takes up a considerable amount of unnecessary space, reducing load time for blog posts. This is a problem for my blog, which has 283 posts.

As an example, here is the frontmatter for my original content/posts/_index.md:

title: "Posts"
cascade:
  type: blog

This caused one of my typical blog posts to generate an HTML file that contained
262713 bytes, with a hidden sidebar containing links to all 283 blog posts.

I added the following lines to the frontmatter for _index.md:

sidebar:
  exclude: true

That eliminated the sidebar from the generated HTML for the aforementioned post, and reduced its size to 43690 bytes.

I'm not sure if this a bug or a documentation issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions