最近寫blog很長手動打<!--more-->
想說snippet來增加寫文章速度
也不用在找asset_img
語法我真的記不太住….
目前我為Hexo設定的snippets1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23{
"Read More": {
"prefix": "!more",
"body": [
"<!--more-->"
],
"description": "Read More"
},
"asset_img": {
"prefix": "asset",
"body": [
"{% asset_img ${1:img.png} ${1:title} %}"
],
"description": "asset_img"
},
"asset_link": {
"prefix": "asset",
"body": [
"{% asset_link ${1:url} ${1:title} %}"
],
"description": "asset_link"
}
}
這三個寫文章應該很夠用
##參考來源
snippet generator