@tideworthy/tidysites 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -62,6 +62,15 @@ References: a record names another by its id (what the pull shows), or by
|
|
|
62
62
|
|
|
63
63
|
Rich text (a section's `copy`, a post's `content`) is markdown.
|
|
64
64
|
|
|
65
|
+
Custom HTML (a row's `.html` file, a Columns HTML slot) reads the records:
|
|
66
|
+
`{{ business.phone }}`, `{{ page.title }}`, `{{#each services as s}}…{{ s.url }}…{{/each}}`,
|
|
67
|
+
`{{#if page.collection == "services"}}…{{/if}}`, and the drop-ins `{{> menu "primary"}}`,
|
|
68
|
+
`{{> logo}}`, `{{> phone}}`, `{{> address}}`, `{{> hours}}`, `{{> social}}`, `{{> year}}`,
|
|
69
|
+
`{{> button "Label" "/url" style=outline}}`, `{{> form "Name"}}`. A link to `#form:<Name>`
|
|
70
|
+
opens that form in a dialog. So a custom header is written once against `page.*` and
|
|
71
|
+
`business.*` and fits every page; `frame/frame.json` names it as `header_row`, or a page
|
|
72
|
+
names its own in `header_row`.
|
|
73
|
+
|
|
65
74
|
## Building a site from these files
|
|
66
75
|
|
|
67
76
|
1. `tidysites schema` for the section types, `tidysites gallery` to see them in this theme.
|
package/package.json
CHANGED