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

Blog posts not working #46

Closed
jocelynpender opened this issue Feb 7, 2022 · 2 comments
Closed

Blog posts not working #46

jocelynpender opened this issue Feb 7, 2022 · 2 comments

Comments

@jocelynpender
Copy link
Contributor

I'm not sure if this is an issue with Jekyll or with the petridish theme, so bear with me...

Blog posts show up on the homepage with no photo, tags, title, etc.: https://atlantichabitatmodels.github.io/communityofpractice/
Demo blog post: https://atlantichabitatmodels.github.io/communityofpractice/blog/2022-02-07-peibirds/
Demo blog post md file: https://github.com/atlantichabitatmodels/communityofpractice/blob/gh-pages/_posts/2022-02-07-peiBirds.md

This was working in previous commits, so I'm fairly confident that the path to the image isn't the problem. I'm not sure what I did.

My _config.yml file looks VERY similar to the demo _config.yml. I tried playing around with the _config.yml settings, to no avail. I might just not be understanding how Jekyll works.

The only thing that I can think of to fix this is to delete the repo and create a new one with the same files, seeing as I'm not sure how to roll back commits with GitHub Pages... any advice is appreciated!

@peterdesmet
Copy link
Owner

@jocelynpender the reason the blog post does not work is because the title contains a colon :, breaking yaml frontmatter interpretation (of the title and any following things like background image and tags). This can be fixed by wrapping the whole title in quotes, so it is interpreted as one string.

In addition, the background image link should start with a slash. I have fixed this and some other issues in atlantichabitatmodels/communityofpractice#3. If you accept that pull request, the blog post should work.

@jocelynpender
Copy link
Contributor Author

Hey, thanks so much for your help!!! I accepted your helpful pull request and everything looks as it should wooooo! 😄💯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants