Skip to content

404 only for archive page? #215

@CookieHCl

Description

@CookieHCl

Hi, I recently started using Hexo and Next with GitHub Pages!

Hexo has a cool archive feature where if you go to myblog.com/archives/2023, you can see all the posts you wrote in 2023!
However, if there are no posts wrote in 2022, myblog.com/archives/2022 will show a 404 page.

I made the 404 page to be "page not found", but I think it's misleading to have a "page not found" when you're searching for posts written in specific date.

Is it possible to create a special 404 page only for archives that shows "no posts" instead of a generic 404 page "page not found"?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions