Everything is done in the admin area (/admin). You need an administrator account first — see FIREBASE_SETUP.md, section 3.
Work top to bottom; the save bar at the top shows what is going on (“Unsaved changes · autosaves in a moment”, “Saved 14:32”).
Content — a list of typed blocks. Add, edit, delete and reorder them (drag, or the keyboard buttons). The twelve types:
| Block | Notes |
|---|---|
| Heading | H2, H3 or H4 (the page title is the only H1) · up to 400 characters |
| Paragraph | up to 10,000 characters; inline bold, italic, code and links |
| Image | needs an https:// address (use the media library) and alt text · optional caption |
| Gallery | up to 40 images |
| Video | a YouTube or Vimeo address · optional title |
| Code | language name, optional file name, up to 50,000 characters |
| Quote | optional source |
| Callout | info / success / warning / danger, optional title |
| Button | label and link (only safe links: http(s):, mailto:, tel:, a site path such as /en/blog, or an in-page #anchor) |
| Table | up to 12 columns and 200 rows |
| Divider | |
| List | bulleted or numbered, up to 200 items |
A whole article holds at most 500 blocks and about 900 KB of data. The editor checks all of this before it saves, with the same rules the public site uses to read an article, so it can never store something the site would silently leave out. If a block is too long or a link is not allowed, the save bar says which block (language and number) to fix.
https:// address; empty = the cover image, then the site default), canonical URL (full https://, optional) and Hide from search engines (noindex).| Button | What it does | |—|—| | Save draft | Saves without publishing. Drafts autosave after three seconds without typing. A published post is never changed while you type — use Update published post. | | Publish | Makes the post public (needs a title, at least one non-empty block, and alt text for the cover). Pages refresh immediately; otherwise within a minute. | | Update published post | Saves your changes to the live article. | | Unpublish | Moves the post back to drafts; it disappears from the site. | | View live | Opens the public page (published posts). |
Admin → Posts → Delete asks for confirmation, then deletes the post and its revision history. Images stay in the media library (delete them there if you want them gone).
/bn/blog and /en/blog: all published posts, 9 per page, with search and category/tag filters (changing the search or a filter returns to page 1; turning a page moves focus to the list for keyboard and screen-reader users). The list holds the newest 100 posts — see the README for how older ones stay reachable.Asia/Dhaka time zone, so the server and every visitor’s browser agree.| What you see | Likely cause |
|—|—|
| “Another post already uses this address.” | Pick another slug. (The check runs in the editor; two administrators saving the same new slug in the same second could still collide.) |
| “Add alt text for the cover image.” | Publishing needs alt text in at least one language. |
| “The social share image / canonical URL must be a full https:// address.” | Use the complete address, or leave the field empty. |
| “The article is too large to save (limit about 900 KB).” | Split it, or compress/shrink what the article embeds. |
| A published post is not on the site | Wait a minute (or check that the admin’s revalidation call succeeded), and run npm run diagnose:firestore if the whole blog is empty — most often the composite indexes are not deployed. |
| The blog is empty and the server log shows [firestore] … HTTP 400 | See FIREBASE_SETUP.md → Why the indexes matter. |