Basically you put that query into a collection: https://getkirby.com/docs/guide/templates/collections
// /site/collections/yourname.php
return function ($site) {
return $site->index()->filterBy('template', 'in', ['note', 'album']);
};
and then in the blueprint
query: kirby.collection('yourname')