domma-cms 0.55.1 → 0.69.3
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/CLAUDE.md +194 -3
- package/README.md +18 -14
- package/admin/css/admin.css +1 -1
- package/admin/css/contacts.css +1 -0
- package/admin/dist/domma/domma-tools.css +3 -3
- package/admin/dist/domma/domma-tools.min.js +3 -3
- package/admin/index.html +1 -0
- package/admin/js/api.js +1 -1
- package/admin/js/app.js +4 -4
- package/admin/js/lib/analytics-shape.js +1 -0
- package/admin/js/lib/contacts-arrange.js +1 -0
- package/admin/js/lib/help-popover.js +1 -0
- package/admin/js/lib/notes-arrange.js +1 -0
- package/admin/js/lib/page-picker.js +1 -0
- package/admin/js/lib/plugin-accent.js +1 -0
- package/admin/js/lib/plugin-chrome.js +1 -0
- package/admin/js/lib/shortcode-context-menu.js +2 -2
- package/admin/js/lib/sidebar-grouping.js +1 -1
- package/admin/js/lib/sidebar-grouping.test.js +1 -1
- package/admin/js/lib/sidebar-renderer.js +4 -4
- package/admin/js/lib/slideover-resizable.js +1 -0
- package/admin/js/lib/todo-arrange.js +1 -0
- package/admin/js/lib/tool-kit.js +1 -0
- package/admin/js/templates/analytics.html +138 -0
- package/admin/js/templates/contacts.html +156 -0
- package/admin/js/templates/context-menu-editor.html +212 -0
- package/admin/js/templates/context-menus.html +16 -0
- package/admin/js/templates/notes.html +137 -0
- package/admin/js/templates/plugin-code.html +1 -1
- package/admin/js/templates/plugin-marketplace.html +17 -4
- package/admin/js/templates/plugins.html +13 -7
- package/{plugins/site-search/admin/templates/site-search.html → admin/js/templates/search.html} +50 -4
- package/admin/js/templates/settings.html +16 -97
- package/admin/js/templates/theme.html +211 -0
- package/admin/js/templates/todo.html +113 -0
- package/admin/js/views/analytics.js +62 -0
- package/admin/js/views/contacts.js +174 -0
- package/admin/js/views/context-menu-editor.js +55 -0
- package/admin/js/views/context-menus.js +5 -0
- package/admin/js/views/form-editor.js +7 -7
- package/admin/js/views/index.js +1 -1
- package/admin/js/views/notes.js +104 -0
- package/admin/js/views/plugin-marketplace.js +1 -1
- package/admin/js/views/plugins.js +28 -24
- package/admin/js/views/search.js +1 -0
- package/admin/js/views/settings.js +3 -3
- package/admin/js/views/theme.js +1 -0
- package/admin/js/views/todo.js +96 -0
- package/bin/cli.js +6 -10
- package/bin/lib/plugin-version.js +28 -0
- package/bin/update.js +27 -2
- package/config/menus/admin-sidebar.json +129 -23
- package/config/plugins.json +5 -5
- package/config/search.json +13 -0
- package/config/server.json +3 -1
- package/package.json +14 -10
- package/plugins/_lib/admin/mail/compose-window.js +914 -0
- package/plugins/_lib/admin/mail/contacts.js +301 -0
- package/plugins/_lib/admin/mail/diagnostics-section.js +133 -0
- package/plugins/_lib/admin/mail/folder-tree.js +254 -0
- package/plugins/_lib/admin/mail/identity.js +480 -0
- package/plugins/_lib/admin/mail/image-senders-section.js +131 -0
- package/plugins/_lib/admin/mail/keyboard.js +136 -0
- package/plugins/_lib/admin/mail/mail.css +1 -0
- package/plugins/_lib/admin/mail/mail.html +71 -0
- package/plugins/_lib/admin/mail/panes.js +253 -0
- package/plugins/_lib/admin/mail/reader-view.js +4473 -0
- package/plugins/_lib/admin/mail/resizable.js +26 -0
- package/plugins/_lib/admin/mail/rules.js +343 -0
- package/plugins/_lib/admin/mail/scheduling.js +203 -0
- package/plugins/_lib/admin/mail/section-kit.js +277 -0
- package/plugins/_lib/admin/mail/templates.js +238 -0
- package/plugins/_lib/admin/mail/threads.js +200 -0
- package/plugins/_lib/admin/mail/vacation.js +269 -0
- package/plugins/_lib/admin/ui/help.css +1 -0
- package/plugins/_lib/admin/ui/help.js +174 -0
- package/plugins/_lib/admin/ui/resizable.js +151 -0
- package/plugins/_lib/dataStore.js +117 -0
- package/plugins/_lib/mail/accounts.js +919 -0
- package/plugins/_lib/mail/bodyTokens.js +101 -0
- package/plugins/_lib/mail/compose.js +256 -0
- package/plugins/_lib/mail/defaults.js +57 -0
- package/plugins/_lib/mail/diagnostics.js +154 -0
- package/plugins/_lib/mail/envelope.js +161 -0
- package/plugins/_lib/mail/folders.js +192 -0
- package/plugins/_lib/mail/handoff.js +274 -0
- package/plugins/_lib/mail/imapPool.js +293 -0
- package/plugins/_lib/mail/mbox.js +74 -0
- package/plugins/_lib/mail/pollSchedule.js +79 -0
- package/plugins/_lib/mail/poller.js +135 -0
- package/plugins/_lib/mail/priority.js +138 -0
- package/plugins/_lib/mail/readRoutes.js +680 -0
- package/plugins/_lib/mail/render.js +291 -0
- package/plugins/_lib/mail/ruleRunner.js +152 -0
- package/plugins/_lib/mail/scheduler.js +254 -0
- package/plugins/_lib/mail/secretbox.js +229 -0
- package/plugins/_lib/mail/send.js +396 -0
- package/plugins/_lib/mail/store.js +1022 -0
- package/plugins/_lib/mail/sync.js +292 -0
- package/plugins/_lib/mail/syncPlan.js +126 -0
- package/plugins/_lib/mail/syncSelection.js +82 -0
- package/plugins/_lib/mail/unsubscribe.js +183 -0
- package/plugins/_lib/mail/vacationRunner.js +114 -0
- package/plugins/_lib/mail/write.js +473 -0
- package/plugins/_lib/schemaSync.js +83 -0
- package/plugins/_template/admin/css/index.css +0 -0
- package/plugins/_template/admin/templates/index.html +4 -4
- package/plugins/_template/admin/views/index.js +7 -0
- package/plugins/blog/CLAUDE.md +237 -0
- package/plugins/blog/admin/css/index.css +178 -0
- package/plugins/blog/admin/templates/blog.html +35 -41
- package/plugins/blog/admin/templates/categories.html +19 -6
- package/plugins/blog/admin/templates/comments.html +26 -9
- package/plugins/blog/admin/templates/post-editor.html +63 -40
- package/plugins/blog/admin/templates/settings.html +3 -9
- package/plugins/blog/admin/views/blog.js +288 -159
- package/plugins/blog/admin/views/categories.js +212 -206
- package/plugins/blog/admin/views/comments.js +207 -158
- package/plugins/blog/admin/views/kit.js +372 -0
- package/plugins/blog/admin/views/post-editor.js +306 -39
- package/plugins/blog/admin/views/settings-cog.js +56 -0
- package/plugins/blog/admin/views/settings.js +16 -84
- package/plugins/blog/blocks/blog-card-compact.css +17 -0
- package/plugins/blog/blocks/blog-card-compact.html +8 -0
- package/plugins/blog/blocks/blog-card-row.css +22 -0
- package/plugins/blog/blocks/blog-card-row.html +11 -0
- package/plugins/blog/blocks/blog-card.css +35 -0
- package/plugins/blog/blocks/blog-card.html +16 -0
- package/plugins/blog/blocks/blog-post-classic.css +15 -0
- package/plugins/blog/blocks/blog-post-classic.html +28 -0
- package/plugins/blog/blocks/blog-post-feature.css +20 -0
- package/plugins/blog/blocks/blog-post-feature.html +30 -0
- package/plugins/blog/blocks/blog-post-minimal.css +10 -0
- package/plugins/blog/blocks/blog-post-minimal.html +23 -0
- package/plugins/blog/blocks/blog-post-sidebar.css +22 -0
- package/plugins/blog/blocks/blog-post-sidebar.html +36 -0
- package/plugins/blog/collections/categories/schema.json +7 -6
- package/plugins/blog/collections/comments/schema.json +11 -10
- package/plugins/blog/collections/posts/schema.json +16 -13
- package/plugins/blog/config.js +6 -0
- package/plugins/blog/lib/layouts.js +304 -0
- package/plugins/blog/lib/page.js +158 -0
- package/plugins/blog/lib/render.js +119 -0
- package/plugins/blog/lib/samples.js +234 -0
- package/plugins/blog/plugin.js +259 -26
- package/plugins/blog/plugin.json +21 -73
- package/plugins/blog/plugin.public.js +217 -0
- package/plugins/blog/public/blog.css +177 -0
- package/plugins/blog/public/blog.js +586 -0
- package/plugins/blog/public/samples/aurora.svg +7 -0
- package/plugins/blog/public/samples/dusk.svg +7 -0
- package/plugins/blog/public/samples/ember.svg +7 -0
- package/plugins/blog/public/samples/harbour.svg +7 -0
- package/plugins/blog/public/samples/meadow.svg +7 -0
- package/plugins/blog/public/samples/rosewood.svg +7 -0
- package/plugins/blog/templates/index.html +9 -8
- package/plugins/blog/templates/post.html +4 -17
- package/plugins/blog/tests/layouts.test.js +97 -0
- package/plugins/blog/tests/public.test.js +71 -0
- package/plugins/free-tier.lock.json +74 -0
- package/plugins/mail-reader/CLAUDE.md +78 -0
- package/plugins/mail-reader/admin/views/mail.js +19 -0
- package/plugins/mail-reader/config.js +7 -0
- package/plugins/mail-reader/plugin.js +48 -0
- package/plugins/mail-reader/plugin.json +34 -0
- package/public/css/forms.css +1 -1
- package/public/css/search.css +1 -0
- package/public/css/site.css +1 -1
- package/public/css/theme-switcher.css +1 -0
- package/public/js/analytics.js +1 -0
- package/public/js/collection-context.js +2 -2
- package/public/js/context-menus.js +1 -0
- package/public/js/form-logic-engine.js +1 -1
- package/public/js/forms.js +2 -2
- package/public/js/search.js +1 -0
- package/public/js/site.js +1 -1
- package/public/js/theme-switcher.js +1 -0
- package/scripts/build.js +77 -4
- package/scripts/copy-domma.js +48 -0
- package/scripts/run-tests.mjs +92 -0
- package/scripts/seed.js +1996 -0
- package/{plugins/analytics/plugin.js → server/routes/api/analytics.js} +89 -41
- package/server/routes/api/collections.js +34 -0
- package/server/routes/api/contacts.js +506 -0
- package/server/routes/api/context-menus.js +104 -0
- package/server/routes/api/dashboard.js +8 -2
- package/server/routes/api/forms.js +42 -3
- package/{plugins/notes/plugin.js → server/routes/api/notes.js} +61 -17
- package/server/routes/api/notifications.js +69 -19
- package/server/routes/api/plugin-marketplace.js +78 -23
- package/server/routes/api/plugins.js +198 -9
- package/server/routes/api/search.js +43 -0
- package/server/routes/api/theme.js +69 -0
- package/server/routes/api/todo.js +178 -0
- package/server/routes/public.js +42 -7
- package/server/server.js +135 -1
- package/server/services/adapters/FileAdapter.js +6 -1
- package/server/services/collections.js +13 -3
- package/server/services/content.js +26 -0
- package/server/services/contextMenus.js +477 -0
- package/server/services/managerClient.js +72 -136
- package/server/services/markdown.js +124 -10
- package/server/services/permissionRegistry.js +74 -0
- package/server/services/pluginEntitlement.js +171 -0
- package/server/services/pluginEnvelope.js +242 -0
- package/server/services/pluginFiles.js +52 -11
- package/server/services/pluginInstaller.js +246 -26
- package/server/services/pluginScaffold.js +5 -0
- package/server/services/plugins.js +340 -7
- package/server/services/presetCollections.js +344 -0
- package/server/services/promoted-plugins-migration.js +254 -0
- package/server/services/publicCors.js +46 -0
- package/server/services/renderer.js +224 -22
- package/server/services/roles.js +1 -1
- package/server/services/search-migration.js +82 -0
- package/server/services/search.js +413 -0
- package/server/services/sidebar-migration.js +1 -0
- package/server/services/sidebarBadges.js +37 -0
- package/server/services/siteGitignore.js +307 -0
- package/server/services/themeSettings.js +580 -0
- package/server/services/users.js +8 -0
- package/server/templates/page.html +4 -2
- package/plugins/analytics/admin/templates/analytics.html +0 -61
- package/plugins/analytics/admin/views/analytics.js +0 -176
- package/plugins/analytics/config.js +0 -14
- package/plugins/analytics/plugin.json +0 -57
- package/plugins/analytics/public/inject-body.html +0 -60
- package/plugins/analytics/public/inject-head.html +0 -1
- package/plugins/blog/templates/author.html +0 -9
- package/plugins/blog/templates/category.html +0 -9
- package/plugins/blog/templates/tag.html +0 -9
- package/plugins/contacts/admin/templates/contacts.html +0 -126
- package/plugins/contacts/admin/views/contacts.js +0 -710
- package/plugins/contacts/collections/user-contact-groups/schema.json +0 -35
- package/plugins/contacts/collections/user-contacts/schema.json +0 -71
- package/plugins/contacts/config.js +0 -6
- package/plugins/contacts/data/contacts.json +0 -20
- package/plugins/contacts/plugin.js +0 -291
- package/plugins/contacts/plugin.json +0 -33
- package/plugins/demo-viewer/config.js +0 -4
- package/plugins/demo-viewer/plugin.js +0 -36
- package/plugins/demo-viewer/plugin.json +0 -9
- package/plugins/invoice/admin/templates/editor.html +0 -129
- package/plugins/invoice/admin/templates/index.html +0 -43
- package/plugins/invoice/admin/templates/issuers.html +0 -5
- package/plugins/invoice/admin/templates/receivers.html +0 -5
- package/plugins/invoice/admin/views/editor.js +0 -267
- package/plugins/invoice/admin/views/index.js +0 -155
- package/plugins/invoice/admin/views/issuers.js +0 -23
- package/plugins/invoice/admin/views/party-view.js +0 -148
- package/plugins/invoice/admin/views/receivers.js +0 -22
- package/plugins/invoice/collections/invoice-issuers/schema.json +0 -16
- package/plugins/invoice/collections/invoice-receivers/schema.json +0 -15
- package/plugins/invoice/collections/invoices/schema.json +0 -27
- package/plugins/invoice/config.js +0 -16
- package/plugins/invoice/plugin.js +0 -283
- package/plugins/invoice/plugin.json +0 -85
- package/plugins/invoice/templates/invoice-print.html +0 -213
- package/plugins/notes/admin/templates/notes.html +0 -83
- package/plugins/notes/admin/views/notes.js +0 -281
- package/plugins/notes/collections/user-notes/schema.json +0 -54
- package/plugins/notes/config.js +0 -6
- package/plugins/notes/data/notes.json +0 -1
- package/plugins/notes/plugin.json +0 -33
- package/plugins/site-search/admin/views/site-search.js +0 -116
- package/plugins/site-search/config.js +0 -15
- package/plugins/site-search/plugin.js +0 -188
- package/plugins/site-search/plugin.json +0 -40
- package/plugins/site-search/public/inject-body.html +0 -17
- package/plugins/site-search/public/inject-head.html +0 -1
- package/plugins/site-search/public/search.css +0 -1
- package/plugins/site-search/public/search.js +0 -1
- package/plugins/surveys/admin/templates/audience.html +0 -47
- package/plugins/surveys/admin/templates/results.html +0 -58
- package/plugins/surveys/admin/templates/survey-editor.html +0 -141
- package/plugins/surveys/admin/templates/surveys.html +0 -25
- package/plugins/surveys/admin/views/audience.js +0 -301
- package/plugins/surveys/admin/views/results.js +0 -172
- package/plugins/surveys/admin/views/survey-editor.js +0 -211
- package/plugins/surveys/admin/views/surveys.js +0 -161
- package/plugins/surveys/collections/survey-contacts/schema.json +0 -13
- package/plugins/surveys/collections/survey-groups/schema.json +0 -11
- package/plugins/surveys/collections/survey-invites/schema.json +0 -16
- package/plugins/surveys/collections/surveys/schema.json +0 -23
- package/plugins/surveys/config.js +0 -8
- package/plugins/surveys/plugin.js +0 -174
- package/plugins/surveys/plugin.json +0 -65
- package/plugins/surveys/public/dist-shared.mjs +0 -1
- package/plugins/surveys/public/survey.css +0 -1
- package/plugins/surveys/public/survey.mjs +0 -1
- package/plugins/surveys/templates/survey-page.html +0 -63
- package/plugins/theme-switcher/admin/templates/theme-switcher.html +0 -86
- package/plugins/theme-switcher/admin/views/theme-switcher.js +0 -65
- package/plugins/theme-switcher/config.js +0 -10
- package/plugins/theme-switcher/plugin.js +0 -26
- package/plugins/theme-switcher/plugin.json +0 -74
- package/plugins/theme-switcher/public/inject-body.html +0 -153
- package/plugins/theme-switcher/public/inject-head.html +0 -260
- package/plugins/todo/admin/templates/todo.html +0 -158
- package/plugins/todo/admin/views/todo.js +0 -343
- package/plugins/todo/collections/todos/schema.json +0 -60
- package/plugins/todo/config.js +0 -7
- package/plugins/todo/data/todos.json +0 -1
- package/plugins/todo/plugin.js +0 -102
- package/plugins/todo/plugin.json +0 -33
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
display: grid;
|
|
2
|
+
grid-template-columns: 7.5rem 1fr auto auto;
|
|
3
|
+
align-items: baseline;
|
|
4
|
+
gap: 1rem;
|
|
5
|
+
padding: .6rem .25rem;
|
|
6
|
+
border-bottom: 1px solid var(--dm-border, rgba(127,127,127,.2));
|
|
7
|
+
&:hover { background: rgba(127,127,127,.06); }
|
|
8
|
+
.bk-date { font-variant-numeric: tabular-nums; color: var(--dm-text-muted); font-size: .85rem; }
|
|
9
|
+
.bk-title { font-weight: 600; color: inherit; text-decoration: none; min-width: 0; }
|
|
10
|
+
.bk-title:hover { color: var(--dm-primary); }
|
|
11
|
+
.bk-cats { display: inline-flex; gap: .3rem; }
|
|
12
|
+
.bk-time { font-size: .8rem; color: var(--dm-text-muted); white-space: nowrap; }
|
|
13
|
+
@media (max-width: 640px) {
|
|
14
|
+
grid-template-columns: 1fr auto;
|
|
15
|
+
.bk-date { grid-column: 1 / -1; }
|
|
16
|
+
.bk-cats { display: none; }
|
|
17
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
blog-card-compact - a title and a date on one line (the Compact display).
|
|
3
|
+
Same placeholders as blog-card.
|
|
4
|
+
-->
|
|
5
|
+
<time class="bk-date" datetime="{{publishedAt}}">{{publishedAt:DD MMM YYYY}}</time>
|
|
6
|
+
<a class="bk-title" href="{{url}}">{{title}}</a>
|
|
7
|
+
<span class="bk-cats">{{{categories}}}</span>
|
|
8
|
+
<span class="bk-time">{{readingTime}}</span>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
display: grid;
|
|
2
|
+
grid-template-columns: minmax(0, 15rem) 1fr;
|
|
3
|
+
gap: 1.25rem;
|
|
4
|
+
align-items: start;
|
|
5
|
+
padding: 1.1rem 0;
|
|
6
|
+
border-bottom: 1px solid var(--dm-border, rgba(127,127,127,.25));
|
|
7
|
+
&:has(.br-media.no-image) { grid-template-columns: 1fr; }
|
|
8
|
+
.br-media { display: block; aspect-ratio: 4 / 3; border-radius: var(--dm-radius-md, 8px); overflow: hidden; }
|
|
9
|
+
.br-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
|
|
10
|
+
&:hover .br-media img { transform: scale(1.04); }
|
|
11
|
+
.br-media.no-image { display: none; }
|
|
12
|
+
.br-body { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
|
|
13
|
+
.br-meta { margin: 0; font-size: .8rem; color: var(--dm-text-muted); text-transform: uppercase; letter-spacing: .04em; }
|
|
14
|
+
.br-title { margin: 0; font-size: 1.35rem; line-height: 1.25; }
|
|
15
|
+
.br-title a { color: inherit; text-decoration: none; }
|
|
16
|
+
.br-title a:hover { color: var(--dm-primary); }
|
|
17
|
+
.br-excerpt { margin: 0; color: var(--dm-text-muted); line-height: 1.6; }
|
|
18
|
+
.br-excerpt:empty { display: none; }
|
|
19
|
+
.br-foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; font-size: .85rem; }
|
|
20
|
+
.br-cats { display: inline-flex; gap: .35rem; flex-wrap: wrap; }
|
|
21
|
+
.br-author { color: var(--dm-text-muted); }
|
|
22
|
+
@media (max-width: 640px) { grid-template-columns: 1fr; }
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
blog-card-row - one post per row, picture beside the text (the List display).
|
|
3
|
+
Same placeholders as blog-card.
|
|
4
|
+
-->
|
|
5
|
+
<a class="br-media {{imageClass}}" href="{{url}}" tabindex="-1" aria-hidden="true">{{{image}}}</a>
|
|
6
|
+
<div class="br-body">
|
|
7
|
+
<p class="br-meta"><time datetime="{{publishedAt}}">{{publishedAt:D MMMM YYYY}}</time> · {{readingTime}}</p>
|
|
8
|
+
<h2 class="br-title"><a href="{{url}}">{{title}}</a></h2>
|
|
9
|
+
<p class="br-excerpt">{{excerpt}}</p>
|
|
10
|
+
<div class="br-foot"><span class="br-cats">{{{categories}}}</span><a class="br-author" href="{{authorUrl}}">{{authorName}}</a></div>
|
|
11
|
+
</div>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
display: flex;
|
|
2
|
+
flex-direction: column;
|
|
3
|
+
border: 1px solid var(--dm-border, rgba(127,127,127,.25));
|
|
4
|
+
border-radius: var(--dm-radius-lg, 12px);
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
background: var(--dm-surface, transparent);
|
|
7
|
+
transition: transform .15s ease, box-shadow .15s ease;
|
|
8
|
+
&:hover { transform: translateY(-2px); box-shadow: var(--dm-shadow-md, 0 10px 28px rgba(0,0,0,.12)); }
|
|
9
|
+
.bc-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: rgba(127,127,127,.08); }
|
|
10
|
+
.bc-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
|
|
11
|
+
&:hover .bc-media img { transform: scale(1.04); }
|
|
12
|
+
.bc-media.no-image { display: none; }
|
|
13
|
+
.bc-body { flex: 1; display: flex; flex-direction: column; gap: .45rem; padding: 1rem 1.1rem 1.1rem; }
|
|
14
|
+
.bc-kicker { display: flex; flex-wrap: wrap; gap: .35rem; }
|
|
15
|
+
.bc-kicker:empty { display: none; }
|
|
16
|
+
.bc-title { margin: 0; font-size: 1.15rem; line-height: 1.3; }
|
|
17
|
+
.bc-title a { color: inherit; text-decoration: none; }
|
|
18
|
+
.bc-title a:hover { color: var(--dm-primary); }
|
|
19
|
+
.bc-excerpt { margin: 0; color: var(--dm-text-muted); font-size: .93rem; line-height: 1.55;
|
|
20
|
+
display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
|
|
21
|
+
.bc-excerpt:empty { display: none; }
|
|
22
|
+
.bc-meta { margin: auto 0 0; padding-top: .35rem; font-size: .8rem; color: var(--dm-text-muted); }
|
|
23
|
+
.bc-meta a { color: inherit; }
|
|
24
|
+
/* Magazine: the first post leads, across the whole grid. */
|
|
25
|
+
&.is-lead { grid-column: 1 / -1; flex-direction: row; }
|
|
26
|
+
&.is-lead .bc-media { flex: 0 0 58%; aspect-ratio: auto; min-height: 320px; }
|
|
27
|
+
&.is-lead .bc-body { justify-content: center; padding: 1.75rem; }
|
|
28
|
+
&.is-lead .bc-title { font-size: 1.85rem; }
|
|
29
|
+
&.is-lead .bc-excerpt { font-size: 1.05rem; -webkit-line-clamp: 5; }
|
|
30
|
+
&.is-lead .bc-meta { margin-top: .5rem; }
|
|
31
|
+
@media (max-width: 760px) {
|
|
32
|
+
&.is-lead { flex-direction: column; }
|
|
33
|
+
&.is-lead .bc-media { min-height: 0; aspect-ratio: 16 / 9; }
|
|
34
|
+
&.is-lead .bc-title { font-size: 1.4rem; }
|
|
35
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
blog-card - one post in a Blog listing (the Cards and Magazine displays).
|
|
3
|
+
Edit it here to restyle every card; copy it as blog-card-<name> to add a display.
|
|
4
|
+
|
|
5
|
+
{{title}} {{url}} {{excerpt}} {{authorName}} {{authorUrl}} {{readingTime}} {{date}}
|
|
6
|
+
{{publishedAt:D MMM YYYY}} any date format
|
|
7
|
+
{{imageUrl}} {{imageClass}} (has-image | no-image) {{category}} (the first one)
|
|
8
|
+
{{{image}}} {{{categories}}} {{{tags}}} ready-made markup
|
|
9
|
+
-->
|
|
10
|
+
<a class="bc-media {{imageClass}}" href="{{url}}" tabindex="-1" aria-hidden="true">{{{image}}}</a>
|
|
11
|
+
<div class="bc-body">
|
|
12
|
+
<div class="bc-kicker">{{{categories}}}</div>
|
|
13
|
+
<h2 class="bc-title"><a href="{{url}}">{{title}}</a></h2>
|
|
14
|
+
<p class="bc-excerpt">{{excerpt}}</p>
|
|
15
|
+
<p class="bc-meta"><a href="{{authorUrl}}">{{authorName}}</a> · <time datetime="{{publishedAt}}">{{publishedAt:D MMM YYYY}}</time> · {{readingTime}}</p>
|
|
16
|
+
</div>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
.pc { max-width: 46rem; margin: 0 auto; }
|
|
2
|
+
.pc-head { text-align: center; margin: 1rem 0 1.75rem; }
|
|
3
|
+
.pc-kicker { display: flex; justify-content: center; gap: .4rem; flex-wrap: wrap; margin-bottom: .75rem; }
|
|
4
|
+
.pc-title { font-size: clamp(2rem, 4.5vw, 2.9rem); line-height: 1.12; margin: 0 0 .75rem; letter-spacing: -.015em; }
|
|
5
|
+
.pc-standfirst { font-size: 1.2rem; color: var(--dm-text-muted); margin: 0 auto .9rem; max-width: 38rem; line-height: 1.5; }
|
|
6
|
+
.pc-standfirst:empty { display: none; }
|
|
7
|
+
.pc-meta { color: var(--dm-text-muted); font-size: .9rem; margin: 0; }
|
|
8
|
+
.pc-meta a { color: inherit; font-weight: 600; }
|
|
9
|
+
.pc-figure { margin: 0 -2rem 2rem; border-radius: var(--dm-radius-lg, 12px); overflow: hidden; }
|
|
10
|
+
.pc-figure img { width: 100%; display: block; }
|
|
11
|
+
.pc-figure.no-image { display: none; }
|
|
12
|
+
.pc-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
|
|
13
|
+
margin: 2.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--dm-border, rgba(127,127,127,.25)); }
|
|
14
|
+
.pc-tags { display: flex; gap: .4rem; flex-wrap: wrap; }
|
|
15
|
+
@media (max-width: 900px) { .pc-figure { margin-left: 0; margin-right: 0; } }
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
blog-post-classic - title, image, then the story in one centred column.
|
|
3
|
+
Edit it to restyle every post that uses Classic; copy it as blog-post-<name>
|
|
4
|
+
to add a layout authors can choose.
|
|
5
|
+
|
|
6
|
+
{{title}} {{excerpt}} {{url}} {{authorName}} {{authorUrl}} {{readingTime}} {{date}}
|
|
7
|
+
{{publishedAt:D MMMM YYYY}} any date format
|
|
8
|
+
{{imageUrl}} {{imageClass}} (has-image | no-image)
|
|
9
|
+
Ready-made markup: {{{content}}} {{{image}}} {{{categories}}} {{{tags}}} {{{toc}}}
|
|
10
|
+
{{{share}}} {{{prevNext}}} {{{related}}} {{{comments}}}
|
|
11
|
+
-->
|
|
12
|
+
<article class="pc">
|
|
13
|
+
<header class="pc-head">
|
|
14
|
+
<div class="pc-kicker">{{{categories}}}</div>
|
|
15
|
+
<h1 class="pc-title">{{title}}</h1>
|
|
16
|
+
<p class="pc-standfirst">{{excerpt}}</p>
|
|
17
|
+
<p class="pc-meta">By <a href="{{authorUrl}}">{{authorName}}</a> · <time datetime="{{publishedAt}}">{{publishedAt:D MMMM YYYY}}</time> · {{readingTime}}</p>
|
|
18
|
+
</header>
|
|
19
|
+
<figure class="pc-figure {{imageClass}}">{{{image}}}</figure>
|
|
20
|
+
<div class="pc-body blog-content">{{{content}}}</div>
|
|
21
|
+
<footer class="pc-foot">
|
|
22
|
+
<div class="pc-tags">{{{tags}}}</div>
|
|
23
|
+
{{{share}}}
|
|
24
|
+
</footer>
|
|
25
|
+
{{{prevNext}}}
|
|
26
|
+
{{{related}}}
|
|
27
|
+
{{{comments}}}
|
|
28
|
+
</article>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
.pf-hero { position: relative; min-height: min(72vh, 40rem); display: flex; align-items: flex-end;
|
|
2
|
+
margin: 0 calc(50% - 50vw) 2.5rem; padding: 0 calc(50vw - 50%);
|
|
3
|
+
background: var(--pf-image) center / cover no-repeat, var(--dm-primary, #334155); color: #fff; }
|
|
4
|
+
.pf-hero.no-image { min-height: 22rem;
|
|
5
|
+
background: linear-gradient(135deg, var(--dm-primary, #334155), color-mix(in srgb, var(--dm-primary, #334155) 55%, #000)); }
|
|
6
|
+
.pf-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 25%, rgba(0,0,0,.72) 100%); }
|
|
7
|
+
.pf-hero-inner { position: relative; width: 100%; max-width: 52rem; margin: 0 auto; padding: 3rem 1.25rem 2.5rem; }
|
|
8
|
+
.pf-kicker { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .9rem; }
|
|
9
|
+
.pf-kicker .blog-chip { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.35); }
|
|
10
|
+
.pf-title { font-size: clamp(2.2rem, 5.5vw, 3.8rem); line-height: 1.05; margin: 0 0 .9rem; color: #fff; letter-spacing: -.02em;
|
|
11
|
+
text-shadow: 0 2px 18px rgba(0,0,0,.35); }
|
|
12
|
+
.pf-standfirst { font-size: 1.25rem; line-height: 1.5; margin: 0 0 1rem; max-width: 40rem; opacity: .92; }
|
|
13
|
+
.pf-standfirst:empty { display: none; }
|
|
14
|
+
.pf-meta { margin: 0; font-size: .92rem; opacity: .85; }
|
|
15
|
+
.pf-meta a { color: inherit; font-weight: 600; }
|
|
16
|
+
.pf-wrap { max-width: 44rem; margin: 0 auto; }
|
|
17
|
+
.pf-body > p:first-of-type::first-letter { float: left; font-size: 3.6em; line-height: .85; padding: .08em .12em 0 0; font-weight: 700; color: var(--dm-primary); }
|
|
18
|
+
.pf-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
|
|
19
|
+
margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--dm-border, rgba(127,127,127,.25)); }
|
|
20
|
+
.pf-tags { display: flex; gap: .4rem; flex-wrap: wrap; }
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
blog-post-feature - a full-width hero image with the title over it.
|
|
3
|
+
Without a featured image the hero falls back to the theme's primary colour.
|
|
4
|
+
|
|
5
|
+
{{title}} {{excerpt}} {{url}} {{authorName}} {{authorUrl}} {{readingTime}} {{date}}
|
|
6
|
+
{{publishedAt:D MMMM YYYY}} any date format
|
|
7
|
+
{{imageUrl}} {{imageClass}} (has-image | no-image)
|
|
8
|
+
Ready-made markup: {{{content}}} {{{image}}} {{{categories}}} {{{tags}}} {{{toc}}}
|
|
9
|
+
{{{share}}} {{{prevNext}}} {{{related}}} {{{comments}}}
|
|
10
|
+
-->
|
|
11
|
+
<article class="pf">
|
|
12
|
+
<header class="pf-hero {{imageClass}}" style="--pf-image: url('{{imageUrl}}')">
|
|
13
|
+
<div class="pf-hero-inner">
|
|
14
|
+
<div class="pf-kicker">{{{categories}}}</div>
|
|
15
|
+
<h1 class="pf-title">{{title}}</h1>
|
|
16
|
+
<p class="pf-standfirst">{{excerpt}}</p>
|
|
17
|
+
<p class="pf-meta"><a href="{{authorUrl}}">{{authorName}}</a> · <time datetime="{{publishedAt}}">{{publishedAt:D MMMM YYYY}}</time> · {{readingTime}}</p>
|
|
18
|
+
</div>
|
|
19
|
+
</header>
|
|
20
|
+
<div class="pf-wrap">
|
|
21
|
+
<div class="pf-body blog-content">{{{content}}}</div>
|
|
22
|
+
<footer class="pf-foot">
|
|
23
|
+
<div class="pf-tags">{{{tags}}}</div>
|
|
24
|
+
{{{share}}}
|
|
25
|
+
</footer>
|
|
26
|
+
{{{prevNext}}}
|
|
27
|
+
{{{related}}}
|
|
28
|
+
{{{comments}}}
|
|
29
|
+
</div>
|
|
30
|
+
</article>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
.pm { max-width: 38rem; margin: 0 auto; }
|
|
2
|
+
.pm-head { margin: 2.5rem 0 2.25rem; }
|
|
3
|
+
.pm-meta { margin: 0 0 .6rem; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dm-text-muted); }
|
|
4
|
+
.pm-title { font-size: clamp(1.9rem, 4vw, 2.5rem); line-height: 1.15; margin: 0 0 .6rem; font-weight: 700; }
|
|
5
|
+
.pm-by { margin: 0; font-style: italic; color: var(--dm-text-muted); }
|
|
6
|
+
.pm-by a { color: inherit; }
|
|
7
|
+
.pm-body { font-size: 1.13rem; line-height: 1.85; }
|
|
8
|
+
.pm-foot { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--dm-border, rgba(127,127,127,.25));
|
|
9
|
+
display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
|
|
10
|
+
.pm-tags { display: flex; gap: .4rem; flex-wrap: wrap; }
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
blog-post-minimal - just the words: a narrow reading column, no image.
|
|
3
|
+
|
|
4
|
+
{{title}} {{excerpt}} {{url}} {{authorName}} {{authorUrl}} {{readingTime}} {{date}}
|
|
5
|
+
{{publishedAt:D MMMM YYYY}} any date format
|
|
6
|
+
{{imageUrl}} {{imageClass}} (has-image | no-image)
|
|
7
|
+
Ready-made markup: {{{content}}} {{{image}}} {{{categories}}} {{{tags}}} {{{toc}}}
|
|
8
|
+
{{{share}}} {{{prevNext}}} {{{related}}} {{{comments}}}
|
|
9
|
+
-->
|
|
10
|
+
<article class="pm">
|
|
11
|
+
<header class="pm-head">
|
|
12
|
+
<p class="pm-meta"><time datetime="{{publishedAt}}">{{publishedAt:D MMMM YYYY}}</time> · {{readingTime}}</p>
|
|
13
|
+
<h1 class="pm-title">{{title}}</h1>
|
|
14
|
+
<p class="pm-by">by <a href="{{authorUrl}}">{{authorName}}</a></p>
|
|
15
|
+
</header>
|
|
16
|
+
<div class="pm-body blog-content">{{{content}}}</div>
|
|
17
|
+
<footer class="pm-foot">
|
|
18
|
+
<div class="pm-tags">{{{categories}}}{{{tags}}}</div>
|
|
19
|
+
{{{share}}}
|
|
20
|
+
</footer>
|
|
21
|
+
{{{prevNext}}}
|
|
22
|
+
{{{comments}}}
|
|
23
|
+
</article>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
.ps-head { max-width: 50rem; margin: 1rem 0 2rem; }
|
|
2
|
+
.ps-kicker { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .75rem; }
|
|
3
|
+
.ps-title { font-size: clamp(2rem, 4.2vw, 2.8rem); line-height: 1.12; margin: 0 0 .7rem; letter-spacing: -.015em; }
|
|
4
|
+
.ps-standfirst { font-size: 1.15rem; color: var(--dm-text-muted); margin: 0; line-height: 1.55; }
|
|
5
|
+
.ps-standfirst:empty { display: none; }
|
|
6
|
+
.ps-grid { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: 3rem; align-items: start; }
|
|
7
|
+
.ps-figure { margin: 0 0 2rem; border-radius: var(--dm-radius-lg, 12px); overflow: hidden; }
|
|
8
|
+
.ps-figure img { width: 100%; display: block; }
|
|
9
|
+
.ps-figure.no-image { display: none; }
|
|
10
|
+
.ps-aside { align-self: stretch; display: flex; flex-direction: column; gap: 1.25rem; }
|
|
11
|
+
.ps-aside .blog-toc { position: sticky; top: calc(var(--dm-navbar-height, 64px) + 1.25rem); max-height: calc(100vh - var(--dm-navbar-height, 64px) - 2.5rem); overflow-y: auto; }
|
|
12
|
+
.ps-card { padding: 1.1rem 1.2rem; border: 1px solid var(--dm-border, rgba(127,127,127,.25)); border-radius: var(--dm-radius-lg, 12px); font-size: .9rem; }
|
|
13
|
+
.ps-card p { margin: 0 0 .7rem; }
|
|
14
|
+
.ps-label { font-size: .72rem !important; letter-spacing: .06em; text-transform: uppercase; color: var(--dm-text-muted); margin-bottom: .15rem !important; }
|
|
15
|
+
.ps-author a { font-weight: 600; color: inherit; }
|
|
16
|
+
.ps-tags { display: flex; gap: .35rem; flex-wrap: wrap; margin: .25rem 0 .9rem; }
|
|
17
|
+
.ps-tags:empty { display: none; }
|
|
18
|
+
@media (max-width: 960px) {
|
|
19
|
+
.ps-grid { grid-template-columns: 1fr; gap: 2rem; }
|
|
20
|
+
.ps-aside { order: -1; }
|
|
21
|
+
.ps-aside .blog-toc { display: none; }
|
|
22
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
blog-post-sidebar - the story beside a sticky contents list, details and share links.
|
|
3
|
+
|
|
4
|
+
{{title}} {{excerpt}} {{url}} {{authorName}} {{authorUrl}} {{readingTime}} {{date}}
|
|
5
|
+
{{publishedAt:D MMMM YYYY}} any date format
|
|
6
|
+
{{imageUrl}} {{imageClass}} (has-image | no-image)
|
|
7
|
+
Ready-made markup: {{{content}}} {{{image}}} {{{categories}}} {{{tags}}} {{{toc}}}
|
|
8
|
+
{{{share}}} {{{prevNext}}} {{{related}}} {{{comments}}}
|
|
9
|
+
-->
|
|
10
|
+
<article class="ps">
|
|
11
|
+
<header class="ps-head">
|
|
12
|
+
<div class="ps-kicker">{{{categories}}}</div>
|
|
13
|
+
<h1 class="ps-title">{{title}}</h1>
|
|
14
|
+
<p class="ps-standfirst">{{excerpt}}</p>
|
|
15
|
+
</header>
|
|
16
|
+
<div class="ps-grid">
|
|
17
|
+
<div class="ps-main">
|
|
18
|
+
<figure class="ps-figure {{imageClass}}">{{{image}}}</figure>
|
|
19
|
+
<div class="ps-body blog-content">{{{content}}}</div>
|
|
20
|
+
{{{prevNext}}}
|
|
21
|
+
{{{comments}}}
|
|
22
|
+
</div>
|
|
23
|
+
<aside class="ps-aside">
|
|
24
|
+
<div class="ps-card">
|
|
25
|
+
<p class="ps-label">Written by</p>
|
|
26
|
+
<p class="ps-author"><a href="{{authorUrl}}">{{authorName}}</a></p>
|
|
27
|
+
<p class="ps-label">Published</p>
|
|
28
|
+
<p><time datetime="{{publishedAt}}">{{publishedAt:D MMMM YYYY}}</time> · {{readingTime}}</p>
|
|
29
|
+
<div class="ps-tags">{{{tags}}}</div>
|
|
30
|
+
{{{share}}}
|
|
31
|
+
</div>
|
|
32
|
+
{{{toc}}}
|
|
33
|
+
</aside>
|
|
34
|
+
</div>
|
|
35
|
+
{{{related}}}
|
|
36
|
+
</article>
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "blog-categories",
|
|
3
|
-
"label": "Blog Categories",
|
|
4
2
|
"slug": "blog-categories",
|
|
3
|
+
"title": "Blog Categories",
|
|
4
|
+
"description": "Post categories managed by the Blog plugin.",
|
|
5
|
+
"plugin": "blog",
|
|
5
6
|
"storage": { "adapter": "file" },
|
|
6
7
|
"fields": [
|
|
7
|
-
{ "
|
|
8
|
-
{ "
|
|
9
|
-
{ "
|
|
10
|
-
{ "
|
|
8
|
+
{ "name": "name", "label": "Name", "type": "text", "required": true },
|
|
9
|
+
{ "name": "slug", "label": "Slug", "type": "text", "required": true },
|
|
10
|
+
{ "name": "description", "label": "Description", "type": "textarea", "required": false },
|
|
11
|
+
{ "name": "parentId", "label": "Parent", "type": "text", "required": false }
|
|
11
12
|
]
|
|
12
13
|
}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "blog-comments",
|
|
3
|
-
"label": "Blog Comments",
|
|
4
2
|
"slug": "blog-comments",
|
|
3
|
+
"title": "Blog Comments",
|
|
4
|
+
"description": "Post comments managed by the Blog plugin.",
|
|
5
|
+
"plugin": "blog",
|
|
5
6
|
"storage": { "adapter": "file" },
|
|
6
7
|
"fields": [
|
|
7
|
-
{ "
|
|
8
|
-
{ "
|
|
9
|
-
{ "
|
|
10
|
-
{ "
|
|
11
|
-
{ "
|
|
12
|
-
{ "
|
|
13
|
-
{ "
|
|
14
|
-
{ "
|
|
8
|
+
{ "name": "postId", "label": "Post", "type": "text", "required": true },
|
|
9
|
+
{ "name": "parentId", "label": "Parent", "type": "text", "required": false },
|
|
10
|
+
{ "name": "authorName", "label": "Author Name", "type": "text", "required": true },
|
|
11
|
+
{ "name": "authorEmail", "label": "Author Email", "type": "text", "required": true },
|
|
12
|
+
{ "name": "authorUrl", "label": "Author URL", "type": "text", "required": false },
|
|
13
|
+
{ "name": "body", "label": "Body", "type": "textarea", "required": true },
|
|
14
|
+
{ "name": "status", "label": "Status", "type": "select", "required": true, "options": ["pending", "approved", "rejected", "spam"] },
|
|
15
|
+
{ "name": "createdAt", "label": "Created At", "type": "datetime", "required": false }
|
|
15
16
|
]
|
|
16
17
|
}
|
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "blog-posts",
|
|
3
|
-
"label": "Blog Posts",
|
|
4
2
|
"slug": "blog-posts",
|
|
3
|
+
"title": "Blog Posts",
|
|
4
|
+
"description": "Posts managed by the Blog plugin.",
|
|
5
|
+
"plugin": "blog",
|
|
5
6
|
"storage": { "adapter": "file" },
|
|
6
7
|
"fields": [
|
|
7
|
-
{ "
|
|
8
|
-
{ "
|
|
9
|
-
{ "
|
|
10
|
-
{ "
|
|
11
|
-
{ "
|
|
12
|
-
{ "
|
|
13
|
-
{ "
|
|
14
|
-
{ "
|
|
15
|
-
{ "
|
|
16
|
-
{ "
|
|
17
|
-
{ "
|
|
8
|
+
{ "name": "title", "label": "Title", "type": "text", "required": true },
|
|
9
|
+
{ "name": "slug", "label": "Slug", "type": "text", "required": true },
|
|
10
|
+
{ "name": "excerpt", "label": "Excerpt", "type": "textarea", "required": false },
|
|
11
|
+
{ "name": "content", "label": "Content", "type": "markdown", "required": false },
|
|
12
|
+
{ "name": "featuredImage", "label": "Featured Image", "type": "text", "required": false },
|
|
13
|
+
{ "name": "categories", "label": "Categories", "type": "array", "required": false },
|
|
14
|
+
{ "name": "tags", "label": "Tags", "type": "array", "required": false },
|
|
15
|
+
{ "name": "authorId", "label": "Author", "type": "text", "required": true },
|
|
16
|
+
{ "name": "status", "label": "Status", "type": "select", "required": true, "options": ["draft", "scheduled", "published"] },
|
|
17
|
+
{ "name": "publishedAt", "label": "Published At", "type": "datetime", "required": false },
|
|
18
|
+
{ "name": "template", "label": "Layout", "type": "text", "required": false },
|
|
19
|
+
{ "name": "seo", "label": "SEO", "type": "object", "required": false },
|
|
20
|
+
{ "name": "sample", "label": "Sample post", "type": "boolean", "required": false }
|
|
18
21
|
]
|
|
19
22
|
}
|
package/plugins/blog/config.js
CHANGED
|
@@ -4,5 +4,11 @@ export default {
|
|
|
4
4
|
commentsEnabled: false,
|
|
5
5
|
commentModeration: true,
|
|
6
6
|
feedLength: 20,
|
|
7
|
+
// Display - see lib/layouts.js. Read live, so no restart is needed.
|
|
8
|
+
postLayout: 'blog-post-classic',
|
|
9
|
+
listDisplay: 'cards',
|
|
10
|
+
displaySwitcher: true,
|
|
11
|
+
interactive: true,
|
|
12
|
+
relatedCount: 3,
|
|
7
13
|
storage: { adapter: 'file' }
|
|
8
14
|
};
|