From 487b0f4ed3e413037c7771a682703e1d33288081 Mon Sep 17 00:00:00 2001 From: Sonja Broda Date: Mon, 1 Jul 2019 20:36:15 +0200 Subject: [PATCH] Replace site.find() with kirby.page() --- site/blueprints/pages/note.yml | 2 +- site/blueprints/pages/sandbox.yml | 2 +- site/blueprints/sections/albums.yml | 2 +- site/blueprints/sections/notes.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/site/blueprints/pages/note.yml b/site/blueprints/pages/note.yml index 0b16885..39dcae1 100755 --- a/site/blueprints/pages/note.yml +++ b/site/blueprints/pages/note.yml @@ -34,7 +34,7 @@ columns: tags: true gallery: type: pages - query: site.find("photography").children + query: kirby.page("photography").children multiple: false info: "{{ page.images.count }} image(s)" empty: "No gallery selected" diff --git a/site/blueprints/pages/sandbox.yml b/site/blueprints/pages/sandbox.yml index bc88d4a..0f7904d 100644 --- a/site/blueprints/pages/sandbox.yml +++ b/site/blueprints/pages/sandbox.yml @@ -16,4 +16,4 @@ fields: label: Image type: files max: 1 - parent: site.find('photography').children.first + parent: kirby.page('photography').children.first diff --git a/site/blueprints/sections/albums.yml b/site/blueprints/sections/albums.yml index c2f99d4..514bbfb 100644 --- a/site/blueprints/sections/albums.yml +++ b/site/blueprints/sections/albums.yml @@ -1,6 +1,6 @@ type: pages headline: Photography -parent: site.find("photography") +parent: kirby.page("photography") size: tiny info: "{{ page.images.count }} image(s)" layout: cards diff --git a/site/blueprints/sections/notes.yml b/site/blueprints/sections/notes.yml index 5264fad..6654532 100644 --- a/site/blueprints/sections/notes.yml +++ b/site/blueprints/sections/notes.yml @@ -1,6 +1,6 @@ type: pages headline: Notes -parent: site.find("notes") +parent: kirby.page("notes") info: "{{ page.date.toDate('d.m.Y') }}" template: note empty: No notes yet