Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 only for archive page? #631

Closed
3 tasks done
CookieHCl opened this issue Mar 31, 2023 · 3 comments
Closed
3 tasks done

404 only for archive page? #631

CookieHCl opened this issue Mar 31, 2023 · 3 comments

Comments

@CookieHCl
Copy link

Issue Checklist

Other Information

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

Hexo has a cool 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 for archives that shows "no posts" instead of a generic 404 page "page not found"?

@welcome
Copy link

welcome bot commented Mar 31, 2023

Thanks for opening this issue, maintainers will get back to you as soon as possible!

@njzjz
Copy link
Member

njzjz commented Mar 31, 2023

For this issue I think you need to report to https://github.com/hexojs/hexo-generator-archive. This is not what the theme does.

@CookieHCl CookieHCl closed this as not planned Won't fix, can't repro, duplicate, stale Apr 2, 2023
Copy link

github-actions bot commented Apr 2, 2024

This thread has been automatically locked since there has not been any recent activity after it was closed. It is possible issue was solved or at least outdated. Feel free to open new for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants