From 5f86fe88d240e59bf0a694394417e1947ccf9e3c Mon Sep 17 00:00:00 2001 From: Stefan Sterz Date: Fri, 25 Jan 2019 16:31:15 +0100 Subject: [PATCH] feat: small layout improvements in panel --- site/blueprints/pages/default.yml | 41 +++++++++++++++++------------- site/blueprints/pages/imprint.yml | 3 +++ site/blueprints/pages/notes.yml | 2 +- site/blueprints/pages/projects.yml | 2 +- site/blueprints/site.yml | 32 ++++++++++++----------- 5 files changed, 46 insertions(+), 34 deletions(-) create mode 100644 site/blueprints/pages/imprint.yml diff --git a/site/blueprints/pages/default.yml b/site/blueprints/pages/default.yml index 762be85..e6db765 100755 --- a/site/blueprints/pages/default.yml +++ b/site/blueprints/pages/default.yml @@ -1,18 +1,25 @@ title: Page -drafts: - headline: Sub-Pages - type: pages - status: all - templates: note -sections: - files: - headline: Files - type: files -files: true -fields: - title: - label: Title - type: text - text: - label: Text - type: textarea + +columns: + - width: 2/3 + sections: + content: + type: fields + fields: + title: + label: Title + type: text + text: + label: Text + type: textarea + size: large + - width: 1/3 + sections: + drafts: + headline: Sub-Pages + type: pages + status: all + files: + headline: Files + type: files + diff --git a/site/blueprints/pages/imprint.yml b/site/blueprints/pages/imprint.yml new file mode 100644 index 0000000..e017a56 --- /dev/null +++ b/site/blueprints/pages/imprint.yml @@ -0,0 +1,3 @@ +title: Imprint +extends: pages/default +icon: email diff --git a/site/blueprints/pages/notes.yml b/site/blueprints/pages/notes.yml index eda894a..6307d37 100755 --- a/site/blueprints/pages/notes.yml +++ b/site/blueprints/pages/notes.yml @@ -1,6 +1,6 @@ +title: Notes icon: edit -title: Notes columns: - width: 1 fields: diff --git a/site/blueprints/pages/projects.yml b/site/blueprints/pages/projects.yml index f2bffc2..26720d6 100755 --- a/site/blueprints/pages/projects.yml +++ b/site/blueprints/pages/projects.yml @@ -1,4 +1,4 @@ -icon: document +icon: code columns: - width: 2/3 fields: diff --git a/site/blueprints/site.yml b/site/blueprints/site.yml index d1be311..bafe2de 100644 --- a/site/blueprints/site.yml +++ b/site/blueprints/site.yml @@ -1,7 +1,22 @@ title: Site columns: - - width: 2/3 + - width: 1 + sections: + pages: + type: pages + create: default + layout: cards + image: + back: black + query: page.icon + template: + - notes + - error + - projects + - default + - imprint + - width: 1 fields: title: label: Title @@ -17,7 +32,7 @@ columns: description: label: Description type: textarea - size: large + size: small copyright: label: Copyright type: textarea @@ -28,16 +43,3 @@ columns: type: textarea width: 1/2 size: medium - - width: 1/3 - sections: - pages: - type: pages - create: default - image: - back: black - template: - - notes - - error - - projects - - default - - imprint