File tree 2 files changed +4
-4
lines changed 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ title: "記事の書式(?)について"
5
5
desc : " この記事はテスト記事です。 "
6
6
tags : ["first", "test"]
7
7
hasThumbnail : true
8
- img_fmt : " webp"
8
+ imgFmt : " webp"
9
9
---
10
10
11
11
<!--
@@ -28,7 +28,7 @@ img_fmt: "webp"
28
28
| ` desc ` | string \| null | 記事の説明 |
29
29
| ` tags ` | string[ ] \| null | 記事のタグ |
30
30
| ` hasThumbnail ` | bool | サムネイル画像の有無 |
31
- | ` img_fmt ` | string \| null | サムネイル画像のファイルフォーマット (サムネイル画像無しなら null) |
31
+ | ` imgFmt ` | string \| null | サムネイル画像のファイルフォーマット (サムネイル画像無しなら null) |
32
32
33
33
本文はこうやって普通に書ける。
34
34
普通に改行してもただの半角空白として反映される。
@@ -272,7 +272,7 @@ TEXT = {TEST}
272
272
- desc: "{desc}"
273
273
- tags: [{tags}]
274
274
- hasThumbnail: {hasThumbnail}
275
- - img_fmt : "{img_fmt }"
275
+ - imgFmt : "{imgFmt }"
276
276
277
277
---
278
278
Original file line number Diff line number Diff line change 24
24
let date = idToDate (slug );
25
25
26
26
const hasThumbnail = metadata .hasThumbnail ;
27
- const thumbnail_path = hasThumbnail ? ` /images/blog/${slug }. ` + metadata .img_fmt : null ;
27
+ const thumbnail_path = hasThumbnail ? ` /images/blog/${slug }. ` + metadata .imgFmt : null ;
28
28
29
29
const HEAD = {
30
30
title: ' Blog - ' + metadata .title ,
You can’t perform that action at this time.
0 commit comments