Featured event card beside the hero text; Word import: tabs, quotes, callouts, dividers, videos, buttons

From lg up the featured event's photo sits beside its words, so the card
is about as tall as the hero text. Word import turns a 'Tab:' line into a
tab, the Quote and Intense Quote styles into quotes and callouts, '---'
into a divider, a lone video link into a video and 'Button: label' into
a button; Blog posts shows the whole mapping beside Import from Word.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Aidan Dona 2026-10-16 20:43:25 -05:00
parent 3b034eb00e
commit 56acedf926
8 changed files with 143 additions and 16 deletions

View file

@ -46,7 +46,32 @@ export const blogPosts = {
idLabel: "URL ID",
slugFrom: "title",
// Blog posts → Import from Word (server/src/routes/import.js).
importer: { label: "Import from Word", endpoint: "/admin/import/docx", accept: ".docx" },
// `guide` is what becomes what (server/src/docx.js, docs/importing.md),
// shown beside the button.
importer: {
label: "Import from Word",
endpoint: "/admin/import/docx",
accept: ".docx",
guide: {
intro: "A .docx becomes a new, unpublished post. In the document:",
rows: [
["The Title style, or the first Heading 1", "The post's title"],
["A date line under it, eg. Sep 28, 2026", "The post's date"],
["Heading 1 and Heading 2", "Heading blocks"],
["Heading 3 and smaller", "Subheading blocks"],
["A line starting Tab:, eg. Tab: Overview (any style)", "A Tab: the post is split into tabs from there"],
["The Quote style", "A Quote (a dash and a name at the end is who said it)"],
["The Intense Quote style", "A Callout"],
["Bulleted or numbered paragraphs", "One List block"],
["Tables", "Table blocks"],
["A line of --- alone", "A Divider"],
["A YouTube, Vimeo or Facebook link alone on its line", "A Video"],
["Button: Register, with Register linked", "A Button, its label and link"],
["Other paragraphs", "Paragraphs, keeping bold, italic and links"],
],
outro: "Images, text boxes, footnotes, comments, colors and fonts aren't carried over: add images as Image blocks after. PDFs: save as .docx first.",
},
},
list: {
columns: [