This commit is contained in:
parent
b36abcd3bf
commit
0d40b85f76
13 changed files with 232 additions and 58 deletions
28
site/blueprints/pages/scribble.yml
Normal file
28
site/blueprints/pages/scribble.yml
Normal file
|
@ -0,0 +1,28 @@
|
|||
title: Scribble
|
||||
|
||||
num: '{{ page.date.toDate("YmdHis") }}'
|
||||
|
||||
create:
|
||||
title: "{{ page.date.toDate('Y-m-d H:i') }}"
|
||||
slug: "{{ page.date.toDate('Ymd-Hi') }}"
|
||||
fields:
|
||||
- date
|
||||
|
||||
sections:
|
||||
meta:
|
||||
type: fields
|
||||
fields:
|
||||
date:
|
||||
type: date
|
||||
label: Date
|
||||
required: true
|
||||
time:
|
||||
step: 1
|
||||
default: now
|
||||
text:
|
||||
type: textarea
|
||||
label: Scribble
|
||||
font: monospace
|
||||
size: small
|
||||
files:
|
||||
type: files
|
24
site/blueprints/pages/scribbles.yml
Normal file
24
site/blueprints/pages/scribbles.yml
Normal file
|
@ -0,0 +1,24 @@
|
|||
title: Scribbles Page
|
||||
|
||||
sections:
|
||||
fields:
|
||||
type: fields
|
||||
fields:
|
||||
text:
|
||||
type: textarea
|
||||
font: monospace
|
||||
size: small
|
||||
drafts:
|
||||
extends: sections/scribbles
|
||||
label: Drafts
|
||||
status: draft
|
||||
unlisted:
|
||||
extends: sections/scribbles
|
||||
label: Unlisted
|
||||
status: unlisted
|
||||
listed:
|
||||
extends: sections/scribbles
|
||||
label: Published
|
||||
status: listed
|
||||
seo:
|
||||
extends: sections/seo
|
11
site/blueprints/sections/scribbles.yml
Normal file
11
site/blueprints/sections/scribbles.yml
Normal file
|
@ -0,0 +1,11 @@
|
|||
type: pages
|
||||
search: true
|
||||
image: false
|
||||
template: scribble
|
||||
sortBy: date desc
|
||||
empty: No scribbles yet
|
||||
layout: table
|
||||
columns:
|
||||
date:
|
||||
label: Published on
|
||||
width: 1/4
|
Loading…
Add table
Add a link
Reference in a new issue