@brunoalz/smartgesti-site-editor 1.7.0 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/engine/export/exporters/sections/BlogPostExporters.d.ts.map +1 -1
- package/dist/engine/export/exporters/sections/BlogPostExporters.js +585 -227
- package/dist/engine/export/exporters/sections/BlogPostExporters.js.map +1 -1
- package/dist/engine/plugins/builtin/blog/manifest.d.ts.map +1 -1
- package/dist/engine/plugins/builtin/blog/manifest.js +264 -112
- package/dist/engine/plugins/builtin/blog/manifest.js.map +1 -1
- package/dist/engine/plugins/contentHydration.js +93 -77
- package/dist/engine/plugins/contentHydration.js.map +1 -1
- package/dist/engine/registry/blocks/sections/blogCategoryFilter.d.ts.map +1 -1
- package/dist/engine/registry/blocks/sections/blogCategoryFilter.js +0 -1
- package/dist/engine/registry/blocks/sections/blogCategoryFilter.js.map +1 -1
- package/dist/engine/registry/blocks/sections/blogPostGrid.d.ts.map +1 -1
- package/dist/engine/registry/blocks/sections/blogPostGrid.js +321 -6
- package/dist/engine/registry/blocks/sections/blogPostGrid.js.map +1 -1
- package/dist/engine/registry/blocks/sections/blogRecentPosts.d.ts.map +1 -1
- package/dist/engine/registry/blocks/sections/blogRecentPosts.js +11 -2
- package/dist/engine/registry/blocks/sections/blogRecentPosts.js.map +1 -1
- package/dist/engine/registry/blocks/sections/blogTagCloud.d.ts.map +1 -1
- package/dist/engine/registry/blocks/sections/blogTagCloud.js +0 -1
- package/dist/engine/registry/blocks/sections/blogTagCloud.js.map +1 -1
- package/dist/engine/render/renderers/sections/BlogPostCardRenderer.d.ts.map +1 -1
- package/dist/engine/render/renderers/sections/BlogPostCardRenderer.js +35 -33
- package/dist/engine/render/renderers/sections/BlogPostCardRenderer.js.map +1 -1
- package/dist/engine/render/renderers/sections/BlogPostGridRenderer.d.ts.map +1 -1
- package/dist/engine/render/renderers/sections/BlogPostGridRenderer.js +251 -66
- package/dist/engine/render/renderers/sections/BlogPostGridRenderer.js.map +1 -1
- package/dist/engine/render/renderers/sections/BlogRecentPostsRenderer.d.ts.map +1 -1
- package/dist/engine/render/renderers/sections/BlogRecentPostsRenderer.js +31 -30
- package/dist/engine/render/renderers/sections/BlogRecentPostsRenderer.js.map +1 -1
- package/dist/engine/schema/siteDocument.d.ts +36 -1
- package/dist/engine/schema/siteDocument.d.ts.map +1 -1
- package/dist/engine/schema/siteDocument.js.map +1 -1
- package/dist/engine/shared/iconUtils.d.ts +25 -0
- package/dist/engine/shared/iconUtils.d.ts.map +1 -0
- package/dist/engine/shared/iconUtils.js +43 -0
- package/dist/engine/shared/iconUtils.js.map +1 -0
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { pluginRegistry as f } from "../../pluginRegistry.js";
|
|
2
|
-
import { logger as
|
|
2
|
+
import { logger as g } from "../../../../utils/logger.js";
|
|
3
3
|
const m = "plugin-blog-home-grid", c = [
|
|
4
4
|
{
|
|
5
5
|
title: "Feira de Ciências 2026: Inovação e Criatividade",
|
|
6
6
|
excerpt: "Nossos alunos apresentaram projetos incríveis na Feira de Ciências deste ano. Confira os destaques e premiações!",
|
|
7
|
-
image: "https://images.unsplash.com/photo-
|
|
7
|
+
image: "https://images.unsplash.com/photo-1532094349884-543bc11b234d?w=800&h=400&fit=crop",
|
|
8
8
|
category: "Eventos",
|
|
9
9
|
date: "05 Fev 2026",
|
|
10
10
|
linkHref: "/site/p/blog/feira-de-ciencias-2026",
|
|
@@ -13,7 +13,7 @@ const m = "plugin-blog-home-grid", c = [
|
|
|
13
13
|
{
|
|
14
14
|
title: "Matrículas Abertas para o Segundo Semestre",
|
|
15
15
|
excerpt: "Garanta a vaga do seu filho na melhor escola da região. Condições especiais para matrículas antecipadas.",
|
|
16
|
-
image: "https://images.unsplash.com/photo-
|
|
16
|
+
image: "https://images.unsplash.com/photo-1427504494785-3a9ca7044f45?w=800&h=400&fit=crop",
|
|
17
17
|
category: "Institucional",
|
|
18
18
|
date: "01 Fev 2026",
|
|
19
19
|
linkHref: "/site/p/blog/matriculas-segundo-semestre",
|
|
@@ -27,6 +27,96 @@ const m = "plugin-blog-home-grid", c = [
|
|
|
27
27
|
date: "28 Jan 2026",
|
|
28
28
|
linkHref: "/site/p/blog/dicas-preparar-ano-letivo",
|
|
29
29
|
linkText: "Ler mais"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
title: "Projeto de Robótica Conquista Prêmio Regional",
|
|
33
|
+
excerpt: "Nossa equipe de robótica conquistou o primeiro lugar na competição regional. Saiba como foi essa jornada!",
|
|
34
|
+
image: "https://images.unsplash.com/photo-1485827404703-89b55fcc595e?w=800&h=400&fit=crop",
|
|
35
|
+
category: "Conquistas",
|
|
36
|
+
date: "22 Jan 2026",
|
|
37
|
+
linkHref: "/site/p/blog/robotica-premio-regional",
|
|
38
|
+
linkText: "Ler mais"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
title: "Como a Tecnologia Transforma a Educação",
|
|
42
|
+
excerpt: "Descubra como ferramentas digitais e metodologias ativas estão revolucionando o aprendizado em sala de aula.",
|
|
43
|
+
image: "https://images.unsplash.com/photo-1509062522246-3755977927d7?w=800&h=400&fit=crop",
|
|
44
|
+
category: "Educação",
|
|
45
|
+
date: "18 Jan 2026",
|
|
46
|
+
linkHref: "/site/p/blog/tecnologia-educacao",
|
|
47
|
+
linkText: "Ler mais"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
title: "Calendário Escolar 2026: Datas Importantes",
|
|
51
|
+
excerpt: "Confira todas as datas importantes do ano letivo 2026, incluindo feriados, provas e eventos especiais.",
|
|
52
|
+
image: "https://images.unsplash.com/photo-1506784983877-45594efa4cbe?w=800&h=400&fit=crop",
|
|
53
|
+
category: "Institucional",
|
|
54
|
+
date: "10 Jan 2026",
|
|
55
|
+
linkHref: "/site/p/blog/calendario-escolar-2026",
|
|
56
|
+
linkText: "Ler mais"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
title: "Atividades Extracurriculares: Inscrições Abertas",
|
|
60
|
+
excerpt: "Música, esportes, artes e idiomas. Conheça as atividades disponíveis e inscreva seu filho!",
|
|
61
|
+
image: "https://images.unsplash.com/photo-1571260899304-425eee4c7efc?w=800&h=400&fit=crop",
|
|
62
|
+
category: "Novidades",
|
|
63
|
+
date: "05 Jan 2026",
|
|
64
|
+
linkHref: "/site/p/blog/atividades-extracurriculares",
|
|
65
|
+
linkText: "Ler mais"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
title: "Parceria com Universidades para Projetos de Pesquisa",
|
|
69
|
+
excerpt: "Alunos do Ensino Médio agora podem participar de projetos de iniciação científica em parceria com universidades da região.",
|
|
70
|
+
image: "https://images.unsplash.com/photo-1541339907198-e08756dedf3f?w=800&h=400&fit=crop",
|
|
71
|
+
category: "Conquistas",
|
|
72
|
+
date: "28 Dez 2025",
|
|
73
|
+
linkHref: "/site/p/blog/parceria-universidades",
|
|
74
|
+
linkText: "Ler mais"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
title: "Semana da Leitura: Escritores Visitam a Escola",
|
|
78
|
+
excerpt: "Autores renomados da literatura infanto-juvenil participaram de bate-papos e oficinas com nossos alunos.",
|
|
79
|
+
image: "https://images.unsplash.com/photo-1481627834876-b7833e8f5570?w=800&h=400&fit=crop",
|
|
80
|
+
category: "Eventos",
|
|
81
|
+
date: "20 Dez 2025",
|
|
82
|
+
linkHref: "/site/p/blog/semana-leitura",
|
|
83
|
+
linkText: "Ler mais"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
title: "Olimpíada de Matemática: Resultados Impressionantes",
|
|
87
|
+
excerpt: "Nossos alunos conquistaram 5 medalhas de ouro e 8 de prata na Olimpíada Regional de Matemática 2025.",
|
|
88
|
+
image: "https://images.unsplash.com/photo-1635070041078-e363dbe005cb?w=800&h=400&fit=crop",
|
|
89
|
+
category: "Conquistas",
|
|
90
|
+
date: "15 Dez 2025",
|
|
91
|
+
linkHref: "/site/p/blog/olimpiada-matematica",
|
|
92
|
+
linkText: "Ler mais"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
title: "Nova Biblioteca Digital para Alunos e Professores",
|
|
96
|
+
excerpt: "A escola lança plataforma digital com mais de 10.000 livros, artigos e materiais didáticos acessíveis de qualquer dispositivo.",
|
|
97
|
+
image: "https://images.unsplash.com/photo-1524995997946-a1c2e315a42f?w=800&h=400&fit=crop",
|
|
98
|
+
category: "Novidades",
|
|
99
|
+
date: "10 Dez 2025",
|
|
100
|
+
linkHref: "/site/p/blog/biblioteca-digital",
|
|
101
|
+
linkText: "Ler mais"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
title: "Formatura do Ensino Médio: Celebrando Conquistas",
|
|
105
|
+
excerpt: "Uma noite emocionante de celebração para os formandos de 2025. Confira os melhores momentos da cerimônia.",
|
|
106
|
+
image: "https://images.unsplash.com/photo-1523580846011-d3a5bc25702b?w=800&h=400&fit=crop",
|
|
107
|
+
category: "Eventos",
|
|
108
|
+
date: "05 Dez 2025",
|
|
109
|
+
linkHref: "/site/p/blog/formatura-2025",
|
|
110
|
+
linkText: "Ler mais"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
title: "Projeto Horta Escolar: Aprendendo com a Natureza",
|
|
114
|
+
excerpt: "Alunos do Fundamental cultivam alimentos orgânicos e aprendem sobre sustentabilidade, nutrição e trabalho em equipe.",
|
|
115
|
+
image: "https://images.unsplash.com/photo-1416879595882-3373a0480b5b?w=800&h=400&fit=crop",
|
|
116
|
+
category: "Educação",
|
|
117
|
+
date: "28 Nov 2025",
|
|
118
|
+
linkHref: "/site/p/blog/horta-escolar",
|
|
119
|
+
linkText: "Ler mais"
|
|
30
120
|
}
|
|
31
121
|
], v = `
|
|
32
122
|
<h2>O que é a Feira de Ciências?</h2>
|
|
@@ -58,8 +148,8 @@ const m = "plugin-blog-home-grid", c = [
|
|
|
58
148
|
<p>Os três projetos finalistas representarão nossa escola na <strong>Feira Regional de Ciências</strong>, que acontecerá em março na capital. Os alunos já estão se preparando para levar suas apresentações a um público ainda maior.</p>
|
|
59
149
|
<p>Parabéns a todos os participantes, professores orientadores e famílias que apoiaram essa jornada de descobertas!</p>
|
|
60
150
|
`.trim();
|
|
61
|
-
function b(
|
|
62
|
-
return { ...JSON.parse(JSON.stringify(
|
|
151
|
+
function b(i, p) {
|
|
152
|
+
return { ...JSON.parse(JSON.stringify(i)), id: p };
|
|
63
153
|
}
|
|
64
154
|
const y = {
|
|
65
155
|
manifest: {
|
|
@@ -127,105 +217,172 @@ const y = {
|
|
|
127
217
|
requiredPages: ["blog-listing", "blog-post"]
|
|
128
218
|
}
|
|
129
219
|
},
|
|
130
|
-
onActivate(
|
|
131
|
-
|
|
132
|
-
const
|
|
133
|
-
if (
|
|
134
|
-
const e =
|
|
220
|
+
onActivate(i) {
|
|
221
|
+
g.debug("Blog plugin activating...");
|
|
222
|
+
const p = new Set(i.pages.map((e) => e.id)), t = [...i.pages], s = i.pages.find((e) => e.slug === "home") || i.pages[0], n = s?.structure.find((e) => e.type === "navbar"), r = s?.structure.find((e) => e.type === "footer");
|
|
223
|
+
if (s && n) {
|
|
224
|
+
const e = t.findIndex((o) => o.id === s.id);
|
|
135
225
|
if (e >= 0) {
|
|
136
|
-
const o =
|
|
137
|
-
|
|
138
|
-
|
|
226
|
+
const o = n.props;
|
|
227
|
+
let a = Array.isArray(o.links) ? [...o.links] : [];
|
|
228
|
+
if (a = a.filter((d) => d.href !== "/p/blog"), !a.some(
|
|
229
|
+
(d) => d.href === "/site/p/blog"
|
|
139
230
|
)) {
|
|
140
|
-
const
|
|
141
|
-
|
|
142
|
-
const h =
|
|
143
|
-
|
|
231
|
+
const d = a.length > 0 ? a.length - 1 : 0;
|
|
232
|
+
a.splice(d, 0, { text: "Blog", href: "/site/p/blog" });
|
|
233
|
+
const h = t[e].structure.map((u) => u.id === n.id ? { ...u, props: { ...u.props, links: a } } : u);
|
|
234
|
+
t[e] = { ...t[e], structure: h }, g.debug("Blog link added to home navbar"), n.props = { ...o, links: a };
|
|
144
235
|
}
|
|
145
236
|
}
|
|
146
237
|
}
|
|
147
|
-
if (
|
|
148
|
-
const e =
|
|
149
|
-
(
|
|
238
|
+
if (s) {
|
|
239
|
+
const e = t.findIndex((a) => a.id === s.id), o = s.structure.some(
|
|
240
|
+
(a) => a.id === m
|
|
150
241
|
);
|
|
151
242
|
if (e >= 0 && !o) {
|
|
152
|
-
const
|
|
243
|
+
const a = {
|
|
153
244
|
id: m,
|
|
154
245
|
type: "blogPostGrid",
|
|
155
246
|
props: {
|
|
156
247
|
title: "Blog",
|
|
157
248
|
subtitle: "Últimas publicações",
|
|
158
249
|
columns: 3,
|
|
159
|
-
cards: c,
|
|
250
|
+
cards: c.slice(0, 3),
|
|
160
251
|
variant: "default",
|
|
161
252
|
showViewAll: !0,
|
|
162
253
|
viewAllText: "Ver todos os posts",
|
|
163
254
|
viewAllHref: "/site/p/blog"
|
|
164
255
|
}
|
|
165
|
-
},
|
|
256
|
+
}, l = [...t[e].structure], d = l.findIndex(
|
|
166
257
|
(h) => h.type === "footer"
|
|
167
258
|
);
|
|
168
|
-
|
|
169
|
-
...
|
|
170
|
-
structure:
|
|
171
|
-
},
|
|
259
|
+
d >= 0 ? l.splice(d, 0, a) : l.push(a), t[e] = {
|
|
260
|
+
...t[e],
|
|
261
|
+
structure: l
|
|
262
|
+
}, g.debug("Blog section injected into home page");
|
|
172
263
|
}
|
|
173
264
|
}
|
|
174
|
-
if (!
|
|
265
|
+
if (!p.has("blog")) {
|
|
175
266
|
const e = [];
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
subtitle: "Novidades & Publicações",
|
|
182
|
-
description: "Acompanhe as últimas novidades, eventos e conquistas da nossa comunidade escolar.",
|
|
183
|
-
variant: "centered",
|
|
184
|
-
align: "center",
|
|
185
|
-
overlay: !0,
|
|
186
|
-
overlayColor: "rgba(79, 70, 229, 0.9)",
|
|
187
|
-
background: "#4f46e5",
|
|
188
|
-
minHeight: "280px"
|
|
189
|
-
}
|
|
190
|
-
}), e.push({
|
|
191
|
-
id: "blog-search-bar",
|
|
192
|
-
type: "blogSearchBar",
|
|
193
|
-
props: {
|
|
194
|
-
placeholder: "Buscar posts...",
|
|
195
|
-
variant: "simple",
|
|
196
|
-
showIcon: !0,
|
|
197
|
-
searchUrl: "/site/p/blog"
|
|
198
|
-
}
|
|
199
|
-
}), e.push({
|
|
200
|
-
id: "blog-category-filter",
|
|
201
|
-
type: "blogCategoryFilter",
|
|
202
|
-
props: {
|
|
203
|
-
title: "",
|
|
204
|
-
categories: c.map((o) => ({
|
|
205
|
-
name: o.category,
|
|
206
|
-
slug: o.category.toLowerCase().replace(/\s+/g, "-"),
|
|
207
|
-
count: 1
|
|
208
|
-
})),
|
|
209
|
-
variant: "chips",
|
|
210
|
-
showCount: !1,
|
|
211
|
-
showAll: !0,
|
|
212
|
-
allLabel: "Todas",
|
|
213
|
-
filterUrl: "/site/p/blog"
|
|
214
|
-
}
|
|
215
|
-
}), e.push({
|
|
216
|
-
id: "blog-grid-main",
|
|
217
|
-
type: "blogPostGrid",
|
|
267
|
+
n && e.push(b(n, "blog-page-navbar"));
|
|
268
|
+
const o = [...new Set(c.map((a) => a.category))];
|
|
269
|
+
e.push({
|
|
270
|
+
id: "blog-listing-layout",
|
|
271
|
+
type: "grid",
|
|
218
272
|
props: {
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
273
|
+
cols: 2,
|
|
274
|
+
colTemplate: "1fr 320px",
|
|
275
|
+
gap: "2.5rem",
|
|
276
|
+
maxWidth: "1200px",
|
|
277
|
+
padding: "2rem",
|
|
278
|
+
paddingTop: "7rem",
|
|
279
|
+
paddingBottom: "6rem",
|
|
280
|
+
bg: "var(--sg-bg)",
|
|
281
|
+
children: [
|
|
282
|
+
// Coluna principal: blogPostGrid com variant "magazine"
|
|
283
|
+
{
|
|
284
|
+
id: "blog-grid-main",
|
|
285
|
+
type: "blogPostGrid",
|
|
286
|
+
props: {
|
|
287
|
+
title: "",
|
|
288
|
+
subtitle: "",
|
|
289
|
+
columns: 3,
|
|
290
|
+
cards: c,
|
|
291
|
+
variant: "magazine",
|
|
292
|
+
showViewAll: !1
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
// Sidebar: stack vertical com widgets
|
|
296
|
+
{
|
|
297
|
+
id: "blog-listing-sidebar",
|
|
298
|
+
type: "stack",
|
|
299
|
+
props: {
|
|
300
|
+
direction: "col",
|
|
301
|
+
gap: "1.5rem",
|
|
302
|
+
sticky: !0,
|
|
303
|
+
stickyOffset: "100px",
|
|
304
|
+
children: [
|
|
305
|
+
{
|
|
306
|
+
id: "blog-listing-search",
|
|
307
|
+
type: "blogSearchBar",
|
|
308
|
+
props: {
|
|
309
|
+
placeholder: "Buscar posts...",
|
|
310
|
+
variant: "simple",
|
|
311
|
+
showIcon: !0,
|
|
312
|
+
searchUrl: "/site/p/blog",
|
|
313
|
+
borderRadius: "0.75rem",
|
|
314
|
+
shadow: "sm"
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
id: "blog-listing-categories",
|
|
319
|
+
type: "blogCategoryFilter",
|
|
320
|
+
props: {
|
|
321
|
+
title: "Categorias",
|
|
322
|
+
categories: o.map((a) => ({
|
|
323
|
+
name: a,
|
|
324
|
+
slug: a.toLowerCase().replace(/\s+/g, "-"),
|
|
325
|
+
count: c.filter((l) => l.category === a).length
|
|
326
|
+
})),
|
|
327
|
+
variant: "list",
|
|
328
|
+
showCount: !0,
|
|
329
|
+
showAll: !0,
|
|
330
|
+
allLabel: "Todas",
|
|
331
|
+
filterUrl: "/site/p/blog",
|
|
332
|
+
linkColor: "#374151",
|
|
333
|
+
linkHoverColor: "#2563eb",
|
|
334
|
+
borderRadius: "0.75rem",
|
|
335
|
+
shadow: "sm"
|
|
336
|
+
}
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
id: "blog-listing-recent",
|
|
340
|
+
type: "blogRecentPosts",
|
|
341
|
+
props: {
|
|
342
|
+
title: "Posts Recentes",
|
|
343
|
+
count: 5,
|
|
344
|
+
showThumbnail: !0,
|
|
345
|
+
showDate: !0,
|
|
346
|
+
showCategory: !1,
|
|
347
|
+
posts: c.map((a) => ({
|
|
348
|
+
title: a.title,
|
|
349
|
+
slug: a.linkHref.replace("/site/p/blog/", ""),
|
|
350
|
+
date: a.date,
|
|
351
|
+
image: a.image,
|
|
352
|
+
category: a.category
|
|
353
|
+
})),
|
|
354
|
+
linkColor: "#374151",
|
|
355
|
+
linkHoverColor: "#2563eb",
|
|
356
|
+
borderRadius: "0.75rem",
|
|
357
|
+
shadow: "sm"
|
|
358
|
+
}
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
id: "blog-listing-tags",
|
|
362
|
+
type: "blogTagCloud",
|
|
363
|
+
props: {
|
|
364
|
+
title: "Tags",
|
|
365
|
+
tags: [
|
|
366
|
+
{ name: "Eventos", count: 3 },
|
|
367
|
+
{ name: "Educação", count: 4 },
|
|
368
|
+
{ name: "Institucional", count: 2 },
|
|
369
|
+
{ name: "Tecnologia", count: 2 },
|
|
370
|
+
{ name: "Conquistas", count: 1 },
|
|
371
|
+
{ name: "Sustentabilidade", count: 1 }
|
|
372
|
+
],
|
|
373
|
+
variant: "badges",
|
|
374
|
+
linkColor: "#374151",
|
|
375
|
+
linkHoverColor: "#2563eb",
|
|
376
|
+
borderRadius: "0.75rem",
|
|
377
|
+
shadow: "sm"
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
]
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
]
|
|
227
384
|
}
|
|
228
|
-
}), r && e.push(b(r, "blog-page-footer")),
|
|
385
|
+
}), r && e.push(b(r, "blog-page-footer")), t.push({
|
|
229
386
|
id: "blog",
|
|
230
387
|
name: "Blog",
|
|
231
388
|
slug: "blog",
|
|
@@ -237,15 +394,11 @@ const y = {
|
|
|
237
394
|
mode: "list",
|
|
238
395
|
defaultParams: { limit: 15 }
|
|
239
396
|
}
|
|
240
|
-
}),
|
|
397
|
+
}), g.debug("Blog listing page created with magazine layout");
|
|
241
398
|
}
|
|
242
|
-
if (!
|
|
399
|
+
if (!p.has("blog-post")) {
|
|
243
400
|
const e = [];
|
|
244
|
-
|
|
245
|
-
const o = b(l, "post-page-navbar");
|
|
246
|
-
o.props.sticky = !0, e.push(o);
|
|
247
|
-
}
|
|
248
|
-
e.push({
|
|
401
|
+
n && e.push(b(n, "post-page-navbar")), e.push({
|
|
249
402
|
id: "blog-detail-layout",
|
|
250
403
|
type: "grid",
|
|
251
404
|
props: {
|
|
@@ -254,7 +407,7 @@ const y = {
|
|
|
254
407
|
gap: "2.5rem",
|
|
255
408
|
maxWidth: "1200px",
|
|
256
409
|
padding: "2rem",
|
|
257
|
-
paddingTop: "
|
|
410
|
+
paddingTop: "7rem",
|
|
258
411
|
paddingBottom: "6rem",
|
|
259
412
|
bg: "var(--sg-bg)",
|
|
260
413
|
children: [
|
|
@@ -265,7 +418,7 @@ const y = {
|
|
|
265
418
|
props: {
|
|
266
419
|
title: "Feira de Ciências 2026: Inovação e Criatividade",
|
|
267
420
|
content: v,
|
|
268
|
-
featuredImage: "https://images.unsplash.com/photo-
|
|
421
|
+
featuredImage: "https://images.unsplash.com/photo-1532094349884-543bc11b234d?w=1200&h=600&fit=crop",
|
|
269
422
|
date: "05 Fev 2026",
|
|
270
423
|
category: "Eventos",
|
|
271
424
|
authorVariant: "inline",
|
|
@@ -288,7 +441,6 @@ const y = {
|
|
|
288
441
|
gap: "1.5rem",
|
|
289
442
|
sticky: !0,
|
|
290
443
|
stickyOffset: "100px",
|
|
291
|
-
paddingBottom: "6rem",
|
|
292
444
|
children: [
|
|
293
445
|
{
|
|
294
446
|
id: "blog-sidebar-search",
|
|
@@ -368,7 +520,7 @@ const y = {
|
|
|
368
520
|
}
|
|
369
521
|
]
|
|
370
522
|
}
|
|
371
|
-
}), r && e.push(b(r, "post-page-footer")),
|
|
523
|
+
}), r && e.push(b(r, "post-page-footer")), t.push({
|
|
372
524
|
id: "blog-post",
|
|
373
525
|
name: "Post",
|
|
374
526
|
slug: "blog/:slug",
|
|
@@ -384,48 +536,48 @@ const y = {
|
|
|
384
536
|
editRestrictions: {
|
|
385
537
|
nonRemovable: !0
|
|
386
538
|
}
|
|
387
|
-
}),
|
|
539
|
+
}), g.debug("Blog post detail page created with sidebar layout");
|
|
388
540
|
}
|
|
389
541
|
return {
|
|
390
|
-
...
|
|
391
|
-
pages:
|
|
542
|
+
...i,
|
|
543
|
+
pages: t
|
|
392
544
|
};
|
|
393
545
|
},
|
|
394
|
-
onDeactivate(
|
|
395
|
-
|
|
396
|
-
const
|
|
397
|
-
let
|
|
398
|
-
return
|
|
546
|
+
onDeactivate(i) {
|
|
547
|
+
g.debug("Blog plugin deactivating...");
|
|
548
|
+
const p = i.pages.filter((t) => t.pluginId !== "blog").map((t) => {
|
|
549
|
+
let s = t.structure;
|
|
550
|
+
return s.some(
|
|
399
551
|
(r) => r.id === m
|
|
400
|
-
) && (
|
|
552
|
+
) && (s = s.filter(
|
|
401
553
|
(r) => r.id !== m
|
|
402
|
-
)),
|
|
554
|
+
)), s = s.map((r) => {
|
|
403
555
|
if (r.type !== "navbar") return r;
|
|
404
|
-
const e = r.props, o = Array.isArray(e.links) ? e.links : [],
|
|
405
|
-
return
|
|
406
|
-
}),
|
|
556
|
+
const e = r.props, o = Array.isArray(e.links) ? e.links : [], a = o.filter((l) => l.href !== "/site/p/blog" && l.href !== "/p/blog");
|
|
557
|
+
return a.length !== o.length ? { ...r, props: { ...e, links: a } } : r;
|
|
558
|
+
}), s !== t.structure ? { ...t, structure: s } : t;
|
|
407
559
|
});
|
|
408
|
-
return
|
|
409
|
-
`Removed ${
|
|
560
|
+
return g.debug(
|
|
561
|
+
`Removed ${i.pages.length - p.length} blog page(s) and injected section`
|
|
410
562
|
), {
|
|
411
|
-
...
|
|
412
|
-
pages:
|
|
563
|
+
...i,
|
|
564
|
+
pages: p
|
|
413
565
|
};
|
|
414
566
|
},
|
|
415
|
-
getEditorRestrictions(
|
|
416
|
-
if (
|
|
567
|
+
getEditorRestrictions(i) {
|
|
568
|
+
if (i === "blogPostDetail")
|
|
417
569
|
return {
|
|
418
570
|
lockedFields: ["content", "date"]
|
|
419
571
|
};
|
|
420
|
-
if (
|
|
572
|
+
if (i === "blogCategoryFilter")
|
|
421
573
|
return {
|
|
422
574
|
lockedFields: ["categories"]
|
|
423
575
|
};
|
|
424
|
-
if (
|
|
576
|
+
if (i === "blogRecentPosts")
|
|
425
577
|
return {
|
|
426
578
|
lockedFields: ["posts"]
|
|
427
579
|
};
|
|
428
|
-
if (
|
|
580
|
+
if (i === "blogTagCloud")
|
|
429
581
|
return {
|
|
430
582
|
lockedFields: ["tags"]
|
|
431
583
|
};
|