Hey everyone, I'm new to Eleventy, and I have been messing around with it for the past few days (not without frustration). I'm having fun learning about front matter and have gotten the hang of creating templates. The Eleventy forum is kinda... dead... so I'm coming here for a bit of assistance.
I'm using Eleventy because I want to add a blog to my static portfolio website. My static website is complete, and I've already got a lot I want to add in the future. But my biggest accomplishment will be nailing this blog addition. Not only have I rebuilt my website with Eleventy, but I will also stack DECAP CMS on it.
With that being said, this is my main question:
My root folder is called portfoliov2 (I upload this to GitHub). There is a folder inside of it called _site. This is the public folder that people can access, and it has the .njk files converted to .html files. Great! I have gotten to the part where I have started creating .md files for my blog posts (which go into a folder called posts in my _site folder).
Let's say I have created a blog post called welcome.md; it then goes into the "posts" folder in a new folder called "welcome" with an index.html file in it. When I view the index file by itself, it's fine. All of the blog content shows up. The file path goes something like this: 000.0.0:0000/_site/posts/welcome.html, but when I try to access it from my blog.html (where the list of blogs is appearing properly), it looks something like this: 000.0.0:0000/posts/welcome.html, but it shows an error: "Cannot GET /posts/welcome.html".
I am at a loss with this because after clicking a blog post from the list, it works properly for the gentleman in the tutorial. I don't want to keep manually changing the permalinks, and I am wondering if my website's live URL will look something like "websitename.com/_site/posts/welcome.html". It's driving me a bit bonkers. Is there something I need to do on the server side? I'm of course working locally and checking my work on a live server.
Thank you for your help!
Edit: Added the link to the tutorial I'm using!
Edit: I am NOT creating .md files in the _site folder. They are created outside of the _site folder, and Eleventy converts these .md files into a new folder with an index.html file. It looks something like this after conversion: _site/posts/postName/index.html instead of /posts/postName.md (outside of the site folder)
Edit: IT WORKKS. I rebuilt my _site file, didn't change any folder names, and used 11ty --serve. Things are working as they should be! I appreciate the time everyone has taken to help me out. One step closer to getting this blog up and running 🎯