There are no notes for this item.
- Handle: @unit-masthead--subsite
- Variants (4): Basic , Subsite , Logo , Subsite with logo
- Preview:
- Filesystem Path: src\components\02-blocks\unit-masthead\unit-masthead.hbs
<div id="UnitMastheadWrapper" class="UnitMastheadWrapper">
<div id="UnitMasthead" class="UnitMasthead">
<div class="SiteTitle">
<div class="ParentTitle">
<a href="#">Parent site name</a>
</div>
<a href="#">
Basic unit masthead
</a>
</div>
</div>
</div>
<div id="UnitMastheadWrapper" class="UnitMastheadWrapper">
<div id="UnitMasthead" class="UnitMasthead">
<div class="SiteTitle">
{{#if parentSite}}
<div class="ParentTitle">
<a href="{{parentSite.url}}">{{parentSite.name}}</a>
</div>
{{/if}}
{{#if site.logo}}
{{#if page.homepage}}
<h1>
{{else}}
<a href="{{site.url}}">
{{/if}}
<img src="{{path site.logo.image}}" alt="{{site.logo.alt}}" />
{{#if page.homepage}}
</h1>
{{else}}
</a>
{{/if}}
{{else}}
{{#if page.homepage}}
<h1>
{{else}}
<a href="{{site.url}}">
{{/if}}
{{site.name}}
{{#if page.homepage}}
</h1>
{{else}}
</a>
{{/if}}
{{/if}}
</div>
</div>
</div>
{
"parentSite": {
"name": "Parent site name",
"url": "#"
},
"site": {
"name": "Basic unit masthead",
"url": "#"
}
}