Design adjustments, new content and more

This commit is contained in:
Bastian Allgeier
2020-12-10 16:10:45 +01:00
parent c378376bc9
commit 4d7b192c94
103 changed files with 1695 additions and 1003 deletions

View File

@@ -17,39 +17,63 @@ options:
changeSlug: false
delete: false
# Define the form layout with two columns, each column has a set of fields
# Columns are optional but help structure the form layout
# More about columns: https://getkirby.com/docs/guide/blueprints/layout#defining-columns
columns:
- width: 1/2
# We use tabs here to focus on the layout in one tab
# and have the additional contact fields in a secondary
# tab. Tabs can really help to clean up the interface
# when it otherwise gets too complicated
tabs:
content:
icon: text
label: content
fields:
text:
label: Text
type: textarea
size: huge
- width: 1/2
# Kirby has many different field types, from simple text fields to the more complex structure field that contains subfields
# All available field types: https://getkirby.com/docs/reference/panel/fields
fields:
address:
label: Address
type: textarea
email:
label: Email
type: email
phone:
label: Phone
type: tel
social:
label: On the web
type: structure
layout:
label: Layout
type: layout
layouts:
- "1/1"
- "1/2, 1/2"
- "1/3, 1/3, 1/3"
# The contact tab pre-defines a set of address
# fields for the contact box at the bottom of the about
# page. Combining modular content from layouts with
# pre-defined content from such fields is a great way to
# offer flexibility and yet keep certain constraints.
#
# The form layout is created with two columns,
# each column has a set of fields
# More about columns:
# https://getkirby.com/docs/guide/blueprints/layout#defining-columns
contact:
icon: map
label: Contact
columns:
- width: 1/2
# Kirby has many different field types, from simple text fields to the more complex structure field that contains subfields
# All available field types: https://getkirby.com/docs/reference/panel/fields
fields:
platform:
label: Platform
type: text
width: 1/2
url:
label: URL
type: url
width: 1/2
address:
label: Address
type: writer
inline: true
email:
label: Email
type: email
phone:
label: Phone
type: tel
- width: 1/2
fields:
social:
label: On the web
type: structure
columns:
platform: true
fields:
platform:
label: Platform
type: text
width: 1/2
url:
label: URL
type: url
width: 1/2

View File

@@ -17,9 +17,30 @@ status:
# More about columns: https://getkirby.com/docs/guide/blueprints/layout#defining-columns
columns:
- width: 1/3
# The first column contains a set of fields to store
# information about the album.
#
# List of all available field types:
# https://getkirby.com/docs/reference/panel/fields
fields:
cover:
type: files
multiple: false
headline:
type: text
placeholder: "{{ page.title }}"
help: Leave empty to use the title as headline
subheadline:
type: text
text:
type: writer
tags: true
- width: 2/3
sections:
## The `images` files section shows all images of the current page that use the `image` template
# The `images` files section shows all images of
# the current page that use the `image` template
images:
type: files
layout: cards
@@ -31,15 +52,3 @@ columns:
min: 1
size: small
- width: 1/3
# The second column contains a set of fields
# List of all available field types: https://getkirby.com/docs/reference/panel/fields
fields:
cover:
type: files
multiple: false
headline:
type: text
description:
type: textarea
tags: true

View File

@@ -12,10 +12,17 @@ options:
# Here we define an info section and a pages section (`photography`)
sections:
info:
headline: Info
type: info
text: All content for the homepage is being pulled from the photography page.
content:
type: fields
fields:
headline:
type: text
width: 1/2
gap:
width: 1/2
subheadline:
type: text
width: 1/2
# The photography section extends a pages section defined in the `/site/blueprints/section/album.yml` blueprint
# More about reusing and extending sections: https://getkirby.com/docs/guide/blueprints/extending-blueprints#reusing-and-extending-sectionss
@@ -23,5 +30,7 @@ sections:
headline: Photography
extends: sections/albums
status: listed
size: small
help: All projects for the homepage are being pulled from the photography page.

View File

@@ -29,8 +29,7 @@ columns:
# This columns only has a single field
fields:
text:
type: textarea
size: large
type: blocks
- width: 1/3
# This second column holds a fields section with multiple fields
@@ -48,13 +47,6 @@ columns:
# Fields types can be added using the shortcut `fieldname: true`
# (however, you can only use a fieldname once per page and this only makes sense for simple fields without configuration)
tags: true
gallery:
type: pages
query: kirby.page("photography").children
multiple: false
info: "{{ page.images.count }} image(s)"
empty: "No gallery selected"
image:
cover: true
# Use the `help` property of fields and section to provide editors with helpful information
help: Place the \{\{ gallery }} tag anywhere in your text to add the selected gallery
files:
type: files
template: blocks/image

View File

@@ -8,7 +8,7 @@ icon: 📖
# More about columns: https://getkirby.com/docs/guide/blueprints/layout#defining-columns
columns:
- width: 1/2
- width: 1/3
# In the first column, we reuse the `notes` section
# (defined in `/site/blueprints/sections/notes.yml` twice with different page status and headline
sections:
@@ -22,12 +22,14 @@ columns:
headline: In Review
status: unlisted
- width: 1/2
- width: 2/3
# In the second column, we reuse the same section, this time for listed pages and with a different headline
sections:
listed:
extends: sections/notes
headline: Published
status: listed
size: small
layout: cards
# More about pages sections: https://getkirby.com/docs/reference/panel/sections/pages

View File

@@ -1,31 +0,0 @@
# Each page blueprint must have a title, the title may be different from the file name
title: Sandbox
# Page presets are a quick way to set up a standard page layout
# More about page presets:
# - https://getkirby.com/docs/guide/blueprints/presets and
# - https://getkirby.com/docs/reference/panel/presets/page
preset: page
# Sorting number scheme that is applied when page status is changed to `listed`
# More about page sorting: https://getkirby.com/docs/reference/panel/blueprints/page#sorting
num: zero
# Limit subpage display to certain templates in a page preset
pages:
template: sandbox
# A page preset can have a freely defined set of fields
# List of all available field types: https://getkirby.com/docs/reference/panel/fields
fields:
headline:
type: text
test:
type: structure
translate: false
fields:
itemimage:
label: Image
type: files
max: 1
parent: kirby.page('photography').children.first