I'm trying to add archives to my blog following the instructions at https://mmistakes.github.io/minimal-mistakes/docs/configuration/ but couldn't get them working in github-pages with either of liquid
and jekyll-archives
.
Some of my findings:
category_archive:
type: liquid
path: /categories/
tag_archive:
type: liquid
path: /tags/
tags work as expected locally, but on gh-pages I get random error
Github pages is down for maintainence
which disappears after I reload.
categories show the error:
/categories/ not found
locally
and 404 not found error
on gh-pages
jekyll-archive
for bothcategory_archive:
type: jekyll-archives
path: /categories/
tag_archive:
type: jekyll-archives
path: /tags/
jekyll-archives:
enabled:
- categories
- tags
layouts:
category: archive-taxonomy
tag: archive-taxonomy
permalinks:
category: /categories/:name/
tag: /tags/:name/
Both work fine locally, but on github-pages I get the 404 not found error
for both of them.
Here's my _config.yml https://github.com/satwikkansal/satwikkansal.github.io/blob/master/_config.yml, and http://blog.satwikkansal.xyz is where the site is deployed.
The Jekyll Archives method won't work on GitHub Pages hosted sites because that plugin isn't whitelisted for use so you need to go with the Liquid method.
No idea what the "Github pages is down for maintenance" error is all about. I'd reach out to support since I'm pretty sure it has nothing to do with the theme or Jekyll. That error occurs for every page, asset (JS, CSS, etc). and as you noted resolves itself after a reload.
Thanks for your response.
The liquid method of category archives isn't working even locally for me. The error that's displayed is:
/categories/ not found
You're missing the category archive page, that's why it's 404'ing. Add it to your root similar to tag-archive.html
.
Oh, that was a silly mistake. It works now, Thanks. And it turns out that "Github pages is down for maintenance" error is also gone (probably it was due to usage of jekyll-archives
)
Most helpful comment
You're missing the category archive page, that's why it's 404'ing. Add it to your root similar to
tag-archive.html
.category-archive.html