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

Archives not working on github-pages #974

Closed
satwikkansal opened this issue Apr 26, 2017 · 4 comments
Closed

Archives not working on github-pages #974

satwikkansal opened this issue Apr 26, 2017 · 4 comments

Comments

@satwikkansal
Copy link

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:

  1. Using liquid in both
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

  1. Using jekyll-archive for both
category_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.

@mmistakes
Copy link
Owner

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.

@satwikkansal
Copy link
Author

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

@mmistakes
Copy link
Owner

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

@satwikkansal
Copy link
Author

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)

koyumi0601 pushed a commit to koyumi0601/koyumi0601.github.io that referenced this issue Jul 31, 2023
* Add toc heading custom include

Closes mmistakes#961.

* Revert "Add toc heading custom include"

This reverts commit 49813c341973e313db0a21f075a60ebf2120989e.

* Update code highlighting with line numbers

- Add the example of code highlighting with line numbers explained in the [Jekyll docs](https://jekyllrb.com/docs/liquid/tags/#line-numbers).
- Fix the styling of narrow code with line numbers, which floats to the centre without this CSS adjustment. (The line numbers column expands as needed with larger numbers of lines, despite using `width`; using `min-width` doesn't work.)

To apply HTML compression, I removed `vendor` from `exclude`; that change is left to a different PR.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants