0010. Bookmark is an attribute any document can carry
- Status: Accepted (any document can be a bookmark). Proposed (the
bookmarkkey name). Thebookmarktype formetaweb/files is superseded by ADR-0013:bookmarks/sites/and thebookmarkscollection. - Date: 2026-10-13
Context
- Spec 0.1 drafts made a bookmark a type: files under
metaweb/, ortype: bookmark. - Many pages are already about one resource: a wiki page on a book, a note on a paper, a blog post reviewing a tool. Under a type-only model, each would need a duplicate
metaweb/file to show up in CuratedCommons. - The earlier draft used front matter
urlfor the resource. Hugo treatsurlas a page path override, so publictxt-pages would publish bookmarks at broken paths.
Decision
- Any document with a
bookmarkattribute is a bookmark and keeps its own type. - The attribute is front matter
bookmark: <url>.urlis not reserved. - Type
bookmarkremains formetaweb/files that exist only to bookmark a resource, and those files must carry the attribute. resource_idis computed for every document with the attribute.
Consequences
- CuratedCommons aggregates every bookmarked page, not only
metaweb/, with no duplicate files.
- CuratedCommons aggregates every bookmarked page, not only
- Supports ADR-0007: bookmarking is a facet across types, which a separate MetaWeb module could not own.
- − The same resource can appear in several documents in one repo. Views group by
resource_id. Whether that should warn is open (spec §13). - − Any existing content or the publictxt-pages scaffold that uses
urlfor bookmarks must be renamed tobookmark.