Learning Blog

Today I added the blog posts to the main site. When working on this project again, I had forgotten everything and ran into a few small problems:

Problem Writing Eleventy Templates

Layout not found. I removed the empty line at the end of blog_posts.json but I'm unsure if this was the problem.

Quirks Mode

According to the Firefox console, it opened in Quirks mode. This is a standard protection: See Quirks Mode

The problem was that the doctype statement in the layout.njk file was not at the very top.

This post is redirecting to the first post

Not returning an error, just redirecting. The first post contains a _site/index.html for the generated material. So _site/blog_posts/_site/20230628/index.html

When dropping the _site to Netlify, the redirection doesn't occur. Locally, it was solved by deleting the _site directory and running npx @11ty/eleventy again.

Looking for hosting

VPS = Virtual Private Server Owl recommended 1984.is Looks good although there are too many options. Overwhelm. It includes domain registration, which is a plus. Netlify drop is a useful tool while I decide. It seems to work well with Eleventy. I don't know if I'll stay with Eleventy, but I can always switch hosts.

Static Website