Replace site.find() with kirby.page()

This commit is contained in:
Sonja Broda
2019-07-01 20:36:15 +02:00
committed by Bastian Allgeier
parent dfb74b1f52
commit 487b0f4ed3
4 changed files with 4 additions and 4 deletions

View File

@@ -34,7 +34,7 @@ columns:
tags: true tags: true
gallery: gallery:
type: pages type: pages
query: site.find("photography").children query: kirby.page("photography").children
multiple: false multiple: false
info: "{{ page.images.count }} image(s)" info: "{{ page.images.count }} image(s)"
empty: "No gallery selected" empty: "No gallery selected"

View File

@@ -16,4 +16,4 @@ fields:
label: Image label: Image
type: files type: files
max: 1 max: 1
parent: site.find('photography').children.first parent: kirby.page('photography').children.first

View File

@@ -1,6 +1,6 @@
type: pages type: pages
headline: Photography headline: Photography
parent: site.find("photography") parent: kirby.page("photography")
size: tiny size: tiny
info: "{{ page.images.count }} image(s)" info: "{{ page.images.count }} image(s)"
layout: cards layout: cards

View File

@@ -1,6 +1,6 @@
type: pages type: pages
headline: Notes headline: Notes
parent: site.find("notes") parent: kirby.page("notes")
info: "{{ page.date.toDate('d.m.Y') }}" info: "{{ page.date.toDate('d.m.Y') }}"
template: note template: note
empty: No notes yet empty: No notes yet