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

posts are not diplayed. #1512

Closed
4 of 6 tasks
estelll opened this issue Feb 1, 2018 · 14 comments
Closed
4 of 6 tasks

posts are not diplayed. #1512

estelll opened this issue Feb 1, 2018 · 14 comments

Comments

@estelll
Copy link

estelll commented Feb 1, 2018

  • This is a question about using the theme.
  • This is a feature request or enhancement.
  • I believe this to be a bug with the theme.
    • I am using the latest version of the theme.
    • I have updated all gems with bundle update.
    • I have tested locally with bundle exec jekyll build.

Environment informations

  • Minimal Mistakes version: 4.9.0
  • Jekyll version:3.7.2
  • GitHub Pages hosted: no
  • Operating system: win 10

Expected behavior

Posts displayed on the sites.

Steps to reproduce the behavior

I follow the tutorial on https://mmistakes.github.io/minimal-mistakes/docs/quick-start-guide/ and build a local site from scratch by command line 'jekyll new test.blog'.
When I ran 'bundle exec jekyll serve', it successfully ran on 127.0.0.1:4000, but I found that There is no post presented on the site even if there is a default .markdown in _posts dir
I changed the 'layout:post' into 'layout:single' as described in tutorial. I don't know why this happened.

And I used the GitHub Pages Method at the same time and push the repository into my github. Still there is no post shown on the site.

@mmistakes
Copy link
Owner

It appears you have the homepage misconfigured.

Your post shows up fine:

https://estelll.github.io/jekyll/update/2018/01/31/welcome-to-jekyll.html

@mmistakes
Copy link
Owner

Please consult the home layout documentation. You need to configure Jekyll's pagination for it to display posts on the index page.

https://mmistakes.github.io/minimal-mistakes/docs/layouts/#home-page-layout

@mmistakes
Copy link
Owner

mmistakes commented Feb 1, 2018

  1. Rename index.md to index.html
  2. Add pagination settings to _config.yml
  3. Verify jekyll-paginate plugin is installed

@estelll
Copy link
Author

estelll commented Feb 1, 2018

@mmistakes solved. Thank u so much~

@estelll estelll closed this as completed Feb 1, 2018
@estelll
Copy link
Author

estelll commented Feb 1, 2018

@mmistakes Ah, it worked locally on my computer as I renamed index.md to index.html and added pagination settings. But when I pushed a github pages version into my repository, posts still disappeared!
In github page version, I just replaced gem "jekyll" with gem 'github-pages',group::jekyll_plugins in Gemfile, and replaced theme: "minimal-mistakes-jekyll" with remote_theme: mmistakes/minimal-mistakes. Then I bundle update, and bundle.
As I wanted to have a look at the site locally I typed in the command bundle exec jekyll serve . But it printed out an error Dependency Error: Yikes! It looks like you don't have jekyll-remote-theme or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. The full error message from Ruby is: 'Could not open library 'libcurl': �Ҳ���ָ����ģ�顣 . Could not open library 'libcurl.dll': �Ҳ���ָ����ģ�顣 . Could not open library 'libcurl.so.4': �Ҳ���ָ����ģ�顣 . Could not open library 'libcurl.so.4.dll': �Ҳ���ָ����ģ�顣 ' If you run into trouble, you can find helpful resources at https://jekyllrb.com/help/! I'm sure I've installed remote-theme . Then I insert gem "jekyll-remote-them" into group :jekyll_plugins do in Gemfile. As a result, the error changed to Could not open library 'libcurl.dll'and so on(all of them are related to 'libcurl').
TAT...

Sorry to bother you such much~

@estelll estelll reopened this Feb 1, 2018
@mmistakes
Copy link
Owner

This is a known issue with jekyll-remote-theme and Windows... it has nothing to do with my theme. In fact I've had the same problem trying to use it on Windows to test locally.

You might want to chime in here since you're not the only one with the issue.

benbalter/jekyll-remote-theme#18

@mmistakes
Copy link
Owner

Also the reason it's still not working on GitHub Pages is you have both index.html and index.md in the root of your project. That's confusing Jekyll.

Remove the index.md file and it should work.

@estelll
Copy link
Author

estelll commented Feb 1, 2018

@mmistakes yeah~~ I'm so sorry that I renamed the index.md into index.html in local repository and I forgot that I have pushed the former version with index.md before.
Finally it worked!
And I have to say it is indeed a great work!~ Thank u so much!

@estelll
Copy link
Author

estelll commented Feb 2, 2018

@mmistakes I'm sorry to bother you again for I did not find any tutorial about how to make my posts grouped by category like a demo page shown in your website.
I don't know where else to ask you this question >.< Sorry..

@mmistakes
Copy link
Owner

Have a thorough read through the docs and README, I mention a few times all of the demo pages are in the /docs folder, where you can see the source code to copy into your own project.

https://github.com/mmistakes/minimal-mistakes/tree/master/docs/_pages

@estelll
Copy link
Author

estelll commented Feb 2, 2018

@mmistakes Thank u~
I've read the README and the theme's documentation thoroughly. And I followed the tutorial to copy the category_archive.html to /category/index.html and I can found the page on which my posts are grouped by categories.
But what I really want to know is how to make posts grouped by category on the home page instead of showing the recent posts. Should I replace the index.html on the root dir by category_archive.html?


It worked! Thank u~

@jenil04
Copy link

jenil04 commented Oct 13, 2018

I'm getting the following error: (@mmistakes )
remote: Permission to mmistakes/minimal-mistakes.git denied to jenil04.
fatal: unable to access 'https://github.com/mmistakes/minimal-mistakes.git/': The requested URL returned error: 403

Please help. Thank you

@aymanshams07
Copy link

  • Rename index.md to index.html
  • Add pagination settings to _config.yml
  • Verify jekyll-paginate plugin is installed

followed all these steps, still getting "remote: Permission to mmistakes/minimal-mistakes.git denied to aymanshams07.
fatal: unable to access 'https://github.com/mmistakes/minimal-mistakes.git/': The requested URL returned error: 403" when i try to push

@mmistakes
Copy link
Owner

If you’re pushing to https://github.com/mmistakes/minimal-mistakes.git/ then that’s your problem. Update your remote repo to yours. You can’t push to my repo.

okitem pushed a commit to okmalls/okmalls.github.io that referenced this issue Mar 9, 2024
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

4 participants