ジキルを使用しています。投稿とページの違いは何ですか? 私が見る限り:
- どちらも YAML フロントマターを含めることができます。
- 投稿には日付とパーマリンクがありますが、ページにはありません。
もっと違いはありますか?
ジキルを使用しています。投稿とページの違いは何ですか? 私が見る限り:
もっと違いはありますか?
ここに違いがあります
/2000/01/01/my-post.html
と/about.html
)。_posts
ページはどこにでも配置できますが、投稿はフォルダーの下にしか配置できません。投稿はブログ投稿を表します (したがって、ブログ投稿を簡単に作成するために使用されます)。ページは Web サイトのページを表します。
There are couple difference mostly about how page will be generated and handled:
Post is any document living in _posts directory. If is handled by site.posts
collection and final URL will be generated using permalink configured in config yaml file.
Pages are any documents living outside _posts directory - they will always remain relative path to root directory as URL.
Except of that and mentioned by you differences they both work the same. Some plugins are handling them differently, but it's up to plugin developer(there are no guidelines about this topic).