Homepage
Information
- Folder
src/templates/homepage
Files
Schema
{
"$schema": "http://json-schema.org/draft-07/schema",
"required": [
"authorLinks",
"content",
"cta",
"linkList"
],
"properties": {
"authorLinks": {
"type": "object"
},
"content": {
"type": "object"
},
"cta": {
"type": "string"
},
"linkList": {
"type": "object"
}
}
}
Mocks
{
"content": {
"$ref": "components/rte"
},
"cta": {
"$tpl": "components/button",
"$ref": "components/button",
"label": "Get it @ npm",
"url": "https://npmjs.com/package/@miyagi/core",
"external": true
},
"linkList": {
"title": "Links",
"headlineType": "2",
"links": [
{
"$tpl": "components/link",
"$ref": "components/link",
"label": "GitHub",
"url": "https://github.com/mgrsskls/miyagi"
},
{
"$tpl": "components/link",
"$ref": "components/link",
"label": "npm",
"url": "https://npmjs.com/org/miyagi/"
}
]
},
"authorLinks": {
"$ref": "components/link-list"
}
}
Template
<div class="Homepage">
<div class="Homepage-header">
{{> templates/_includes/header/index.hbs}}
</div>
<div class="Homepage-main">
<main class="Homepage-content">
{{> components/rte/index.hbs content}}
<div class="Homepage-cta">
{{{cta}}}
</div>
</main>
<aside class="Homepage-subContent">
{{#if linkList}}
{{> components/link-list/index.hbs linkList}}
{{/if}}
{{#if authorLinks}}
{{> components/link-list/index.hbs authorLinks}}
{{/if}}
</aside>
</div>
<div class="Homepage-footer">
{{> templates/_includes/footer/index.hbs}}
</div>
</div>
Variants