-
Notifications
You must be signed in to change notification settings - Fork 22
/
default.html
37 lines (33 loc) · 1.07 KB
/
default.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
layout: core
---
{%- include variable-core.liquid -%}
{%- capture page-title -%}
{%- if page.titleH1 -%}
{{ page.titleH1 }}
{%- elsif page.title -%}
{{ page.title }}
{%- else -%}
Page untitled
{%- endif -%}
{%- endcapture -%}
{%- if page.secondarymenu -%}
{%- comment -%} The pattern with the secondary menu is probably deprecated, but we do have pages published like this on Canada.ca {%- endcomment -%}
<div class="container">
<div class="row">
<main property="mainContentOfPage" class="col-md-9 col-md-push-3" resource="#wb-main" typeof="WebPageElement">
{%- else -%}
<main class="container" property="mainContentOfPage" resource="#wb-main" typeof="WebPageElement">
{%- endif -%}
{% include main-page-title/main-page-title.html %}
{{ content }}
{% include page-details/footer.html %}
</main>
{%- if page.secondarymenu -%}
<nav class="wb-sec col-md-3 col-md-pull-9" typeof="SiteNavigationElement" id="wb-sec">
<h2 id="wb-sec-h" class="wb-inv">{{ i18nText-secondaryMenu }}</h2>
{% include secondary-menu/secondary-menu.html -%}
</nav>
</div>
</div>
{%- endif -%}