Tech Blog based on Eleventy
blog kit with 11ty(Eleventy) based on hylia-forestry.
Run it quickly
or
Prepare your own environment
installation
Please execute it when installing in your environment for the first time. Not needed if already running
$ npm ci
serve on local
Please execute when starting the system in your environment
$ npm start
Build a production version of the site
The production version is set automatically, so you don't have to run it.
$ npm production
How to write article
Article in English
Create a new md file in src/posts
e.g.: sample.md
Article in Japanese
Create a new md file in src/ja/post
e.g.: sample.md
Add article file
You can also add a file by referring to the arrow in the image below and write an article there
Contents
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
Image
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)
Markdown Guide
We are using markdown for a simple and easy use font format.