文章

Jekyll使用說明

為了避免未來忘記怎麼使用jekyll發文,在這裡建立一個簡單的筆記。

發文

_post的資料夾底下建立名稱為YEAR-MONTH-DAT-title.md的markdown檔,並在檔案最開頭加入front matter,此篇的front matter格式如下

1
2
3
4
5
6
7
8
9
---
title: > 
  Jekyll使用說明
date: 2023-08-25 +0800
categories: [Notes,Jekyll]
tags: [jekyll]     # TAG names should always be lowercase
math: true
img_path: /assets/img/posts/20230714/
---

在localhost打開網頁

在command line跑bundle exec jekyll s指令。

推至github

跑下面三行指令

1
2
3
$ git add .
$ git commit -m "comment"
$ git push
本文章以 CC BY 4.0 授權