Create the ability to create blog pages and blog-posts.
This commit is contained in:
24
blueprints/pages/blog-post.yml
Normal file
24
blueprints/pages/blog-post.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
title: Blog Post
|
||||
|
||||
num: "{{ page.created.toDate('YmdHi') }}"
|
||||
|
||||
columns:
|
||||
- width: 2/3
|
||||
sections:
|
||||
content:
|
||||
type: fields
|
||||
fields:
|
||||
text:
|
||||
label: Content
|
||||
type: textarea
|
||||
autofocus: true
|
||||
size: large
|
||||
customExcerpt:
|
||||
label: Custom Excerpt
|
||||
type: textarea
|
||||
size: medium
|
||||
- width: 1/3
|
||||
sections:
|
||||
pinned: fields/pinned
|
||||
showOnHome: fields/show-on-home
|
||||
dates: fields/dates
|
||||
30
blueprints/pages/blog.yml
Normal file
30
blueprints/pages/blog.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
title: Blog
|
||||
|
||||
columns:
|
||||
- width: 2/3
|
||||
sections:
|
||||
drafts:
|
||||
type: pages
|
||||
status: draft
|
||||
templates: blog-post
|
||||
info: "{{ page.created.toDate('Y-m-d @ g:ia') }}"
|
||||
published:
|
||||
type: pages
|
||||
status: published
|
||||
info: "{{ page.created.toDate('Y-m-d @ g:ia') }}"
|
||||
- width: 1/3
|
||||
sections:
|
||||
options:
|
||||
type: fields
|
||||
fields:
|
||||
postsPerPage:
|
||||
label: Posts Per Page
|
||||
type: number
|
||||
default: 10
|
||||
|
||||
line:
|
||||
type: fields
|
||||
fields:
|
||||
line:
|
||||
type: line
|
||||
linkLocation: fields/link-location
|
||||
Reference in New Issue
Block a user