Replace site.find() with kirby.page()
This commit is contained in:
committed by
Bastian Allgeier
parent
dfb74b1f52
commit
487b0f4ed3
@@ -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"
|
||||
|
@@ -16,4 +16,4 @@ fields:
|
||||
label: Image
|
||||
type: files
|
||||
max: 1
|
||||
parent: site.find('photography').children.first
|
||||
parent: kirby.page('photography').children.first
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user