paperMod設定方法

コンバータ

TOML

Table

[] はTableをあらわす

[table]
key1 = "A"
key2 = 1

"table"に属するkey1とkey2。値は"A"と1

同じ名前のテーブルは1つしか作れない。

Table 配列

[[]] はテーブル配列。menuに表示するリストなどはこれを使う。 ならmenuとかicon群とか。

[menu]
          [[menu.main]]
              identifier = "categories"
              name = "categories"
              url = "/categories/"
              weight = 10

          [[menu.main]]
                identifier = "tags"
                name = "tags"
                url = "/tags/"
                weight = 20

YAML

同じものをYAMLで書くとこうなる。

menu:
  main:
    - identifier: categories
      name: categories
      url: /categories/
      weight: 10
    - identifier: tags
      name: tags
      url: /tags/
      weight: 20
    - identifier: example
      name: example.org
      url: https://example.org
      weight: 30