集合(共1个)

posts [#<Jekyll::Document 星座/相/_posts/22-9-10-背相:机械性.md collection=posts>, #<Jekyll::Document 星座/双…(13444)

测试集合

0

tweets

no

  1. 创建星座/白羊/_twits/23-6-1-测试.mdconfig中加入
    defaults:
      - scope:
       path: "星座/白羊/_twits"
       type: posts
     values:
       permalink: journal/:year/:month/:day/:title
       category: journals
    

    无效,生成日志中忽略了此文件。

  2. 重命名到星座/白羊/_posts/_twits/23-6-1-测试.md, 仍然无效,生成日志中仍然忽略了此文件。
  3. 重命名到正常:星座/白羊/_posts/23-6-1-测试.md, ✓有效,上面无效的可能是因为下划线不支持?
  4. 去掉下划线星座/白羊/_posts/_twits/23-6-1-测试.md, ✓有效,生成后url是hmua.github.io/星座/白羊/2023/6/1/测试
  5. 尝试配置:
      - 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都会认为要特殊处理。

  6. 尝试不输出
      - 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
    

    都无效。

加入集合设置

  1. 加入集合设置
    collections:
      tweets:
     output: true
    defaults:
      # Journals
      - scope:
       path: "星座/白羊/_posts/_tweets"
       #output: false
     values:
       permalink: journal/:year/:month/:day/:title
       category: journals
    

    无效。

  2. collections:
      tw:
     output: true
    defaults:
      # Journals
      - scope:
       path: "_tw/星座/白羊/_posts"
       type: posts
    

    无效,日志中无记录。 推测路径不能有两个集合(下划线开头文件夹)

  3. 更改路径:_tw/星座/白羊/23-6-1-测试.md, 无效,日志中无记录。
  4. 去掉路径中的日期:_tw/星座/白羊/测试.md, 无效,日志中无记录。
  5. 改成最简单路径_tw/测试.md, 无效,日志中无记录。
  6. 改成英文文件名_tw/testtest.md,日志无记录。
  7. 加上front matter,无记录。