Langsung ke konten
FM Journal
ArtikelTerbit: 1 menit bacaContoh

Typed local content before a CMS

Starting a journal with typed data files and a small repository interface, so a database or CMS can arrive later without rewriting the pages.

Belum diterjemahkan

Entri ini belum tersedia dalam Bahasa Indonesia, jadi Anda sedang membaca versi asli berbahasa Inggris.

A CMS answers questions a new journal doesn't have yet: who edits, how drafts are reviewed, how images are stored. Typed data files answer the questions it does have: what an entry is, and how pages read it.

The model first

Each entry has a stable id, a slug, a type, a status, categories, tags, dates and a translation per language. A translation is all or nothing: title, summary and body together, so a page never mixes an Indonesian title with an English body.

A seam, not a framework

Pages call content.list() and content.get(). Those two methods return published entries only, so drafts can't leak into a list, a feed or a sitemap by accident. Swapping the local implementation for a remote one changes one file.

Ilustrasi: sebuah dokumen di pusat tiga orbit, dengan garis putus-putus menjangkau benda-benda kecil.
ArtikelTerbit: 2 menit bacaContoh

Membaca konfigurasi bersama saat build

Mengapa setiap aplikasi di ekosistem mengambil satu registri sebelum build, dan mengapa pengambilan yang gagal seharusnya menggagalkan build alih-alih memakai cadangan.