-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Blueprints): Added basic article/page Blueprints and site Blueprint
- Loading branch information
Showing
14 changed files
with
199 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Title: Articles | ||
|
||
---- | ||
|
||
Uuid: YmUg8qxLk7uMIDuj |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
type: files | ||
multiple: false | ||
query: page.images.template('image') | ||
uploads: | ||
template: image |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# The blocks/image template is automatically assigned to all uploaded | ||
# images in the blocks field. We don't really need a separate blueprint | ||
# for this and can therefor extend the already existing files/image blueprint | ||
extends: files/image |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Each file blueprint must have a title, the title may be different from the file name | ||
title: Image | ||
|
||
# Like page blueprints, file blueprints can define a layout with tabs, columns, sections and fields | ||
# File blueprints define what sort of information should get stored in a file's meta data file | ||
# In addition to the fields defined in this example blueprint, you can also set what type of file is acceptable | ||
# when this blueprint is used, which allows you to control what users can upload. | ||
# More about file blueprints: https://getkirby.com/docs/reference/panel/blueprints/file | ||
|
||
accept: | ||
type: image | ||
|
||
columns: | ||
- width: 1/2 | ||
sections: | ||
content: | ||
type: fields | ||
fields: | ||
caption: | ||
label: Caption | ||
type: textarea | ||
size: medium | ||
- width: 1/2 | ||
sections: | ||
meta: | ||
type: fields | ||
fields: | ||
alt: | ||
label: Alternative Text | ||
type: text | ||
photographer: | ||
label: Photographer | ||
type: text | ||
width: 2/3 | ||
license: | ||
label: License | ||
type: select | ||
width: 1/3 | ||
options: | ||
- Unsplash | ||
- CC BY 4.0 | ||
- CC BY-SA 4.0 | ||
- CC BY-NC 4.0 | ||
- CC BY-ND 4.0 | ||
link: | ||
label: Link | ||
type: url |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
title: Article | ||
|
||
tabs: | ||
content: | ||
icon: dashboard | ||
columns: | ||
- width: 2/3 | ||
fields: | ||
text: | ||
type: blocks | ||
|
||
- width: 1/3 | ||
sections: | ||
meta: | ||
type: fields | ||
fields: | ||
cover: fields/cover | ||
date: | ||
type: date | ||
time: true | ||
default: now | ||
author: | ||
type: users | ||
tags: true | ||
|
||
seotab: seo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
title: Articles | ||
|
||
icon: page | ||
|
||
options: | ||
preview: false | ||
create: false | ||
delete: false | ||
duplicate: false | ||
changeStatus: false | ||
changeSlug: false | ||
changeTitle: false | ||
|
||
columns: | ||
- width: 2/3 | ||
sections: | ||
listed: | ||
extends: sections/articles | ||
label: Published | ||
status: listed | ||
search: true | ||
limit: 2 | ||
|
||
- width: 1/3 | ||
sections: | ||
drafts: | ||
extends: sections/articles | ||
label: Drafts | ||
status: draft | ||
|
||
unlisted: | ||
extends: sections/articles | ||
label: In Review | ||
status: unlisted |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,26 @@ | ||
title: Default Page | ||
title: Article | ||
|
||
tabs: | ||
content: | ||
icon: dashboard | ||
columns: | ||
main: | ||
width: 2/3 | ||
- width: 2/3 | ||
fields: | ||
text: | ||
type: blocks | ||
|
||
- width: 1/3 | ||
sections: | ||
fields: | ||
meta: | ||
type: fields | ||
fields: | ||
text: | ||
type: textarea | ||
size: huge | ||
sidebar: | ||
width: 1/3 | ||
sections: | ||
pages: | ||
type: pages | ||
template: default | ||
files: | ||
type: files | ||
cover: fields/cover | ||
date: | ||
type: date | ||
time: true | ||
default: now | ||
author: | ||
type: users | ||
tags: true | ||
|
||
seotab: seo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
title: Error | ||
icon: 💥 | ||
icon: bug | ||
|
||
options: | ||
create: false | ||
delete: false | ||
duplicate: false | ||
changeSlug: false | ||
changeStatus: false | ||
|
||
content: | ||
sections: | ||
fields: | ||
type: fields | ||
fields: | ||
text: | ||
type: textarea | ||
size: huge | ||
fields: | ||
text: | ||
type: textarea | ||
size: huge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,18 @@ | ||
title: Homepage | ||
icon: 🏠 | ||
icon: home | ||
|
||
options: | ||
create: false | ||
delete: false | ||
duplicate: false | ||
changeSlug: false | ||
changeStatus: false | ||
|
||
tabs: | ||
content: | ||
columns: | ||
main: | ||
width: 2/3 | ||
sections: | ||
fields: | ||
type: fields | ||
fields: | ||
text: | ||
type: textarea | ||
size: huge | ||
sidebar: | ||
width: 1/3 | ||
sections: | ||
pages: | ||
type: pages | ||
template: default | ||
files: | ||
type: files | ||
icon: dashboard | ||
fields: | ||
text: | ||
type: blocks | ||
|
||
seotab: seo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
type: pages | ||
label: Articles | ||
parent: kirby.page("articles") | ||
info: "{{ page.published }}" | ||
template: article | ||
empty: No articles yet | ||
sortBy: date desc | ||
image: | ||
query: page.cover | ||
cover: true | ||
ratio: 3/2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.