Where the fields go
The original documentation gave Templates and Macros a whole section. A macro marked a place in a template where the engine could supply a value or a piece of page furniture. A theme designer could change the outline of an entry without asking its author to rewrite the body.
Bryan Bell’s themes for Radio UserLand were made available for porting. Porting took more work than copying colors. The receiving engine needed an equivalent for each title, link and repeated entry in the original pattern. Its category navigation and feeds also needed a place in the new page.
One entry, two settings
| Field | In a list | On the entry page |
|---|---|---|
| Title | A link in a sequence of recent entries. | The main heading for one entry. |
| Body | A short extract may be enough. | The complete text with its headings and images. |
| Category | A route to related entries. | The same category destination, close to the article. |
Keeping the category destination and entry ID in the data makes them available wherever the theme needs them. Burying those values in a particular block of HTML makes a second layout harder to produce.
Layouts and Razor
In ASP.NET Core a Razor layout can supply shared HTML around the view for a particular page. The conventional filename is _Layout.cshtml. A call to RenderBody() marks where the view’s output appears. Changing the shared navigation can then update many pages at once. DasBlog Core describes its themes as Razor themes.
