Jekyll:试玩集合
集合(共1个)
posts | [#<Jekyll::Document 星座/相/_posts/22-9-10-背相:机械性.md collection=posts>, #<Jekyll::Document 星座/双…(13444) |
测试集合
0
tweets
no
- 创建
星座/白羊/_twits/23-6-1-测试.md
,config
中加入defaults: - scope: path: "星座/白羊/_twits" type: posts values: permalink: journal/:year/:month/:day/:title category: journals
无效,生成日志中忽略了此文件。
- 重命名到
星座/白羊/_posts/_twits/23-6-1-测试.md
, 仍然无效,生成日志中仍然忽略了此文件。 - 重命名到正常:
星座/白羊/_posts/23-6-1-测试.md
, ✓有效,上面无效的可能是因为下划线不支持? - 去掉下划线
星座/白羊/_posts/_twits/23-6-1-测试.md
, ✓有效,生成后url是hmua.github.io/星座/白羊/2023/6/1/测试
- 尝试配置:
- scope: path: "星座/白羊/_posts/tweets" type: posts values: permalink: journal/:year/:month/:day/:title category: journals
✓有效,生成后url是
hmua.github.io/journal/2023/06/01/测试
。 推测:路径中有除_post
之外的另一个下划线开头的文件夹时导致无效, 可能文件夹一下划线开头的,Jekyll都会认为要特殊处理。 - 尝试不输出
- scope: path: "星座/白羊/_posts/tweets" type: posts values: output: false permalink: journal/:year/:month/:day/:title category: journals
以及
- scope: path: "星座/白羊/_posts/tweets" type: posts values: output: false permalink: journal/:year/:month/:day/:title category: journals
都无效。
加入集合设置
- 加入集合设置
collections: tweets: output: true defaults: # Journals - scope: path: "星座/白羊/_posts/_tweets" #output: false values: permalink: journal/:year/:month/:day/:title category: journals
无效。
- 补
collections: tw: output: true defaults: # Journals - scope: path: "_tw/星座/白羊/_posts" type: posts
无效,日志中无记录。 推测路径不能有两个集合(下划线开头文件夹)
- 更改路径:
_tw/星座/白羊/23-6-1-测试.md
, 无效,日志中无记录。 - 去掉路径中的日期:
_tw/星座/白羊/测试.md
, 无效,日志中无记录。 - 改成最简单路径
_tw/测试.md
, 无效,日志中无记录。 - 改成英文文件名
_tw/testtest.md
,日志无记录。 - 加上front matter,无记录。