This website is built using the Eleventy static site generator.
Before you begin, make sure you have Node.js installed on your machine.
Then, open your terminal in the project root and run the following command to install the necessary dependencies:
npm installTo start the local development server, run the following command:
npx @11ty/eleventy --serveThis will build the site and make it available at http://localhost:8080/. The server will automatically rebuild the site and reload your browser whenever you make changes to the source files in the _src directory.
When you are ready to deploy your site, run the following command:
npx @11ty/eleventyThis will generate the final, static website in the april-webm.nekoweb.org directory. You can then upload the contents of this directory to your Nekoweb hosting.
Adding a new blog post is simple:
-
Create a new Markdown file (e.g.,
my-new-post.md) in the_src/postsdirectory. -
At the top of the file, add the following "front matter":
--- layout: "post.njk" title: "Your Post Title" date: YYYY-MM-DD tags: ["post"] ---
layout: Should always be"post.njk".title: The title of your blog post.date: The date the post was published.tags: Must include"post"for it to appear in the blog list.
-
Write your blog post content below the front matter using Markdown.
-
Run the build command (
npx @11ty/eleventy) to generate the new post.