veltiosoft / vss

Easy-to-use static site generator
MIT License
32 stars 3 forks source link

layout の作成方法について #37

Closed zztkm closed 1 year ago

zztkm commented 1 year ago

方針

layout 適用優先順位

  1. ディレクトリ階層とファイル名一致
  2. ディレクトリ階層のみ一致
  3. ディレクトリ一致なし

以下の例だと

├── about.md
├── config.toml
├── index.md
├── posts
     ├── hello.md
     └── first.md
├── layouts
     └── index.html
     ├── posts
          ├── index.md
          └── hello.md