Serve_site() working but posts dont show up on github.io

blogdown

#1

I'm trying to set up a blog using https://tclavelle.github.io/blog/blogdown_github/ as a guide.

I've set up the content repo at https://github.com/shoili/datablog and have a github page set up at https://shoili.github.io/

When I try serve_site() on my local i can see the link to my post and navigate to it but after doing build_site() and pushing both repos to github when I navigate to the URL I don't see my post. The index.html file doesnt seem to have a link to the post in it but I'm not sure why.
I can however see the post itself at https://shoili.github.io/2018/07/18/masters-of-analytics-at-georgia-tech/

Thanks!


#3

In your repo, i can see you have a draft = true in the yaml header of your post.

When you serve your site locally during development, draft post are rendered. When you build it with build_site, they are not rendered. I think this is why it does not appear in the index page. Just put draft = false.

see documentation about YAML metadata


#4

Thank You!! This worked