blog kit with 11ty(Eleventy) based on hylia-forestry.
or
Please execute it when installing in your environment for the first time. Not needed if already running
$ npm ci
Please execute when starting the system in your environment
$ npm start
The production version is set automatically, so you don't have to run it.
$ npm production
Create a new md file in src/posts
e.g.: sample.md
Create a new md file in src/ja/post
e.g.: sample.md
You can also add a file by referring to the arrow in the image below and write an article there
The contents of the article file are as follows
---
title: <title>
author: <author name>
date: <publish date>
socialImage: 'https://initto.devprotocol.xyz/images/ogp.png'
level: BEGINNER | EXPERIENCED | 初級 | 中級以上
tags:
- <tags...>
- <tags...>
- <tags...>
---
<contents>
The text enclosed in ---
is the meta information of the article.
Please write the title, date, tag, etc. of the article.
If you set the date value to the future, it will not be displayed until the set date comes (it will not be displayed in the list).
If you want to change OGP, change the value of socialImage.
Please write the body of the article from below the meta information.
Write the article in markdown format
If you want to use images, create a directory in src/images/posts/
and save the images there.
It is recommended that the directory name be the same as the title of the article.
From the article, you can add images as below
![Image alt text](/images/posts/article-title/img01.png)
We are using markdown for a simple and easy use font format.