Make It Easy Togather
2021-02-04 13:23:00 +0000
Jekyll is one of the template which can be used in GitHub.io, and this tech blog is also structured with jekyll.
root
┣ _data
┃ ┣ data.yaml
┃ ┣ data.json
┃ ┣ data.csv
┃ ┗ data.tsv
┣ _drafts
┃ ┣ Title-Of-Post.md
┃ ┗ Title-Of-Post.html
┣ _posts
┃ ┣ YYYY-MM-DD-Title-Of-Post.md
┃ ┗ YYYY-MM-DD-Title-Of-Post.html
┗ assets
┗ img
┣ img.png
┗ img.jpg
Files of post need to be located in _posts
folder.
You should along with the following naming rule.
YYYY-MM-DD-Title-Of-Post.md
YYYY-MM-DD-Title-Of-Post.html
As you can see, it is not allowed to use _
as spaces. -
is only accepted. In addition, the post is published as {base-link}/YYYY/MM/DD/Title-Of-Post.html
To reflect the theme of jekyll and to add some features to posts, you must write the following header in your files of post.
---
layout: default
title: title of post
date: YYYY-MM-DD hh:mm:ss -0000
categories: CATEGORY-1 CATEGORY-2
tags: TAG-1 TAG-2
permalink: /hoge
---
_layout/default.html
categories: hoge fuga
, the new post is published as {base-link}/hoge/huga/YYYY/MM/DD/Title-Of-Post.html
permalink: /hoge
, the new post is published as {base-link}/hoge
.