I decided to sleep in a little bit today and get an iced coffee when I finally did roll out of bed. Looking for something to do, I decided I would play with this web page a little more and see if I can figure out a way to create public and private blog posts depending on whether my user is signed in. Right now my middleware prevents any other users besides my GitHub user from signing into the application so only I can see the private blog posts. Considering this is more of a personal web page and the site does not need a wealth of users from being able to sign in, I figured this was OK for now. I added a boolean value to my database tables called "private" which indicates whether or not a post should be able to be loaded depending on if my user is signed in. From there I modified the fetch calls for the all blog posts and individual blogs to see if a session is passed into the call. If a valid session is passed, we fetch all the blogs on the blogs landing page, otherwise we only fetch the public blog posts. If we navigate to a specific blog, we only fetch private post if the user is logged, otherwise an error is thrown and we show the user an error page. Individual public blog posts are still fetched in the same manner. If we pass an invalid blog post UUID, the same error page is also shown. I also updated the create blog page that only my signed in user can access to allow for creating public and private blogs straight from the web. A simple checkbox was added to the blog creation page to mark the post public or private, which is then passed to the create blog API. I had been meaning to add this enhancement to the web page for quite a while but life has been a bit busy recently. Maybe I will make a more private blog post about that as a follow up. ;) Anyway, if you're reading this, hope all is well. Cheers, Dan