mirror of
https://github.com/cobalt-org/cobalt.rs
synced 2024-11-15 08:27:15 +00:00
d280a35329
`page.collection` contains the collection slug which is `posts` for, well, the built-in posts collection. `collections.posts.pages` is a sorted list of all of the pages that are part of the posts collection. Fixes #323 BREAKING CHANGES: `page.is_post` is replaced by `page.collection`. Generally, it'll look like `{% if page.is_post %}` and can be replaced by `{% if page.collection == "posts" %}` `posts` is replaced by `collections.posts.pages`. Generally, it'll look like `{% for post in posts %}` and can be replaced by `{% for post in collections.posts.pages %}` `cobalt migrate` should do this for you.
23 lines
672 B
HTML
23 lines
672 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<!-- start default.liquid -->
|
|
<head>
|
|
<title>README for different directory layouts</title>
|
|
</head>
|
|
<body>
|
|
<div>
|
|
|
|
<h1>Test for different blog layouts</h1>
|
|
<h2>posts inside a single directory</h2>
|
|
<p>All blog posts reside inside a single directory.</p>
|
|
<h2>posts inside some folders</h2>
|
|
<p>For example there can be one folder per year. This makes managing of blog posts easier.</p>
|
|
<h2>one folder per post</h2>
|
|
<p>There is one folder per blog post. Especially useful if there are many associated files
|
|
to one blog post (pictures, source files, ...)</p>
|
|
|
|
|
|
</div>
|
|
</body>
|
|
<!-- end default.liquid -->
|
|
</html>
|