grav-theme-future2021/blueprints/blog.yaml
2023-03-05 22:08:25 +01:00

121 lines
3.4 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: section
underline: true
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.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
shareicons_title:
type: section
underline: true
title: FUTURE.ADMIN.BLOG.BLOG_CONTENT_SHAREICONS_TITLE
header.shareicons:
type: checkboxes
style: vertical
label: FUTURE.ADMIN.BLOG.BLOG_CONTENT_SHAREICONS
help: FUTURE.ADMIN.BLOG.BLOG_CONTENT_SHAREICONS_HELP
default:
facebook: true
twitter: true
whatsapp: true
telegram: true
options:
facebook: Facebook
twitter: Twitter
whatsapp: Whatsapp
telegram: Telegram
use: keys
import@:
type: partials/blog-bits
context: blueprints://pages