grav-theme-future2021/blueprints/blog.yaml
pmoreno.rodriguez b5621e7728 Version 1.0.2
2022-11-08 21:42:43 +01:00

103 lines
2.9 KiB
YAML

title: Blog
'@extends':
type: default
context: blueprints://pages
child_type: item
rules:
slug:
pattern: "[a-z][a-z0-9_-]+"
min: 2
max: 80
form:
fields:
tabs:
type: tabs
active: 1
fields:
advanced:
fields:
overrides:
fields:
header.child_type:
default: item
blog:
type: tab
title: FUTURE.ADMIN.BLOG.BLOG_TAB
fields:
content_title:
type: spacer
title: FUTURE.ADMIN.BLOG.BLOG_CONTENT_TITLE
header.content.items:
type: textarea
yaml: true
label: FUTURE.ADMIN.BLOG.BLOG_CONTENT_ITEMS
default: '-@self.children'
validate:
type: yaml
header.content.limit:
type: text
label: FUTURE.ADMIN.BLOG.BLOG_CONTENT_ITEMS_LIMIT
default: 5
validate:
required: true
type: int
min: 1
header.content.order.by:
type: select
label: FUTURE.ADMIN.BLOG.BLOG_CONTENT_ITEMS_ORDER_BY
default: date
options:
folder: FUTURE.ADMIN.BLOG.BLOG_CONTENT_ITEMS_ORDER_BY_FOLDER
title: FUTURE.ADMIN.BLOG.BLOG_CONTENT_ITEMS_ORDER_BY_TITLE
date: FUTURE.ADMIN.BLOG.BLOG_CONTENT_ITEMS_ORDER_BY_DATE
default: FUTURE.ADMIN.BLOG.BLOG_CONTENT_ITEMS_ORDER_BY_DEFAULT
header.content.order.dir:
type: select
label: FUTURE.ADMIN.BLOG.BLOG_CONTENT_ITEMS_ORDER_DIR
default: desc
options:
asc: FUTURE.ADMIN.BLOG.BLOG_CONTENT_ITEMS_ORDER_DIR_ASC
desc: FUTURE.ADMIN.BLOG.BLOG_CONTENT_ITEMS_ORDER_DIR_DESC
header.show_breadcrumbs:
type: toggle
toggleable: true
label: Show Breadcrumbs
highlight: 1
options:
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED
validate:
type: bool
header.content.pagination:
type: toggle
label: FUTURE.ADMIN.BLOG.BLOG_CONTENT_ITEMS_PAGINATION
highlight: 1
default: 1
options:
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED
validate:
type: bool
header.content.url_taxonomy_filters:
type: toggle
label: FUTURE.ADMIN.BLOG.BLOG_CONTENT_ITEMS_URL_TAXONOMY_FILTERS
highlight: 1
default: 1
options:
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED
validate:
type: bool