Add Site Studio themes and Theme Manager
Support categorized fragments, theme presets, block widths, and server-backed theme editing with onboarding and preview. Include Site Studio, design sources, specification and verification reports; remove the legacy studio-site example.
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
# Контракт демонстрационного фрагмента. Renderer production может уточнить DTO.
|
||||
id: collection_list
|
||||
name: Список коллекции
|
||||
category: data
|
||||
version: 1
|
||||
fields:
|
||||
- key: heading
|
||||
type: text
|
||||
required: false
|
||||
- key: collection
|
||||
type: select
|
||||
required: true
|
||||
- key: sort
|
||||
type: select
|
||||
required: false
|
||||
- key: limit
|
||||
type: number
|
||||
required: false
|
||||
slots: {}
|
||||
@@ -0,0 +1,6 @@
|
||||
name: Список коллекции
|
||||
props:
|
||||
heading: ''
|
||||
collection: ''
|
||||
sort: ''
|
||||
limit: ''
|
||||
@@ -0,0 +1 @@
|
||||
<section class="section" id="{{ block.anchor or block.id }}"><div class="container"><h2>{{ props.heading or 'Направления' }}</h2><p class="section-lead">Технологические решения для ваших процессов.</p><div class="cards">{% for item in query_entries(props.collection, props.sort or 'order', props.limit or 6) %}<a class="card" href="{{ site_link(item.url) }}"><small>0{{ loop.index }} / {{ item.collection|upper }}</small><strong>{{ item.title }}</strong><p>{{ item.summary }}</p></a>{% else %}<p>Пока нет опубликованных записей.</p>{% endfor %}</div></div></section>
|
||||
Reference in New Issue
Block a user