pages-gem
pages-gem copied to clipboard
Jekyll Archives work only in localhost.
Hello, Can someone help me? I am using 'Affilated' themes. While testing the theme the "archive" function works fine on localhost but not in Github host. It says "404 file not found".
I have the same issue!
In fact, as can be seen, jekyll-archives gem is not included here. We can only wait until it is included.
However, there is a workaround. Just run jekyll build
and copy the whole "archives" directory to the root of your jekyll project. You can write a script yourself to implement this:
jekyll build
cp -r _site/archives .
git add archives
Check this out Automated Jekyll Archives for GitHub Pages.
Thank you. This issue has persisted for some time, and I am no longer utilizing that theme. I am closing this issue.