Skip to content
This repository was archived by the owner on Jun 10, 2023. It is now read-only.
This repository was archived by the owner on Jun 10, 2023. It is now read-only.

[Help Wanted] How can I adjust the archive page so that it does not contain microblog entries? #330

@ike-keith

Description

@ike-keith

I really like this theme, thanks to the original author and all the contributors.

I added microblogs folder under content folder to contain short untitled blog posts like tweets.

content/
├── archive.md
├── microblogs
│   ├── microblog-1.md
│   ├── microblog-2.md
│   └── microblog-3.md
├── posts
   ├── post-1.md
    ├── post-2.md
    └── post-3.md

When I checked the archive page, it seemed that the archive page added the microblog (no title) entries.
image

I want microblogs not to appear on the archive page.

After some research, I'm guessing it might be that something needs tweaking here:
archive/list.html

line 7    {{ range .Site.RegularPages.GroupByPublishDate "2006" }}

line 15                {{ range where .Pages "Type" $contentTypeName }}
line 16                  {{ if eq .Kind "page" }}

But I don't know how to fix it, so came here for help, thanks!

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