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
|
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"
|
||||||
|
@@ -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
|
||||||
|
@@ -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
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user