Iβm wondering if I miss something about blueprints. Right now I have one blueprint for each section of my website (e.g. Blog, Microblog, Photography) and custom types for each of those (post, status, album) and sections for them - so I have 9 yaml blueprints for 3 different sections. I feel like Iβm missing something here and are on my way into a mess
For example, this is my blog.yaml and post.yaml
# pages/blog.yml
title: Blog
icon: "π"
tabs:
posts:
icon: list-bullet
label: "Posts"
sections:
drafts:
extends: sections/blog
# Only allow children to use post layout
create:
- post
label: Drafts
status: draft
listed:
extends: sections/blog
label: Published Posts
status: listed
flip: true
metadata:
extends: sections/settings
label: Settings
# pages/post.yml
title: Blog Post
icon:
columns:
main:
width: 2/3
sections:
main_fields:
[...]
sidebar:
width: 1/3
sections:
[...]
# sections/blog.yml
type: pages
label: Blog
parent: kirby.page("blog")
size: small
layout: list
template: post
empty: No posts yet
The pages/blog.yml
seems to be unnecessary, I just want to create a page that lists sub-pages - I think this should be a more generic template? Other pages on my site also list sub-pages, is there a way to make it more generic?
This is all my blueprints and it feels a bit too much
site/blueprints
βββ blocks
β βββ spacer.yml
βββ pages
β βββ album.yml
β βββ blog.yml
β βββ book.yml
β βββ bookshelf.yml
β βββ default.yml
β βββ home.yml
β βββ micro.yml
β βββ microblog.yml
β βββ photography.yml
β βββ plaintext.yml
β βββ post.yml
βββ sections
β βββ albums.yml
β βββ blog.yml
β βββ book.yml
β βββ settings.yml
βββ site.yml
βββ users
βββ admin.yml
Any hint and help appreciated, thanks in advance! <3