databook-theme 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +21 -21
- data/README.MD +1 -1
- data/_includes/blog/blog.liquid +50 -50
- data/_includes/blog/features.liquid +36 -36
- data/_includes/blog/full.liquid +3 -3
- data/_includes/blog/list.liquid +41 -41
- data/_includes/blog/post.liquid +6 -6
- data/_includes/components/analytics.google.liquid +11 -11
- data/_includes/components/analytics.liquid +11 -11
- data/_includes/components/comments.disqus.liquid +17 -17
- data/_includes/components/comments.gitalk.liquid +22 -22
- data/_includes/components/comments.liquid +13 -13
- data/_includes/components/navmenu.items.liquid +51 -51
- data/_includes/components/navmenu.liquid +4 -4
- data/_includes/components/pagination.liquid +83 -83
- data/_includes/components/prevnext.liquid +1 -1
- data/_includes/components/search.baidu.liquid +7 -7
- data/_includes/components/search.bing.liquid +6 -6
- data/_includes/components/search.google.liquid +6 -6
- data/_includes/components/search.liquid +21 -21
- data/_includes/components/social_button.liquid +9 -9
- data/_includes/components/social_link.liquid +14 -14
- data/_includes/components/title.liquid +41 -41
- data/_includes/components/toc.liquid +28 -28
- data/_includes/custom/analytics.liquid +3 -3
- data/_includes/custom/blog.liquid +3 -3
- data/_includes/custom/body.liquid +3 -3
- data/_includes/custom/comments.liquid +3 -3
- data/_includes/custom/favicon.liquid +11 -0
- data/_includes/custom/footer.liquid +3 -3
- data/_includes/custom/head.liquid +3 -3
- data/_includes/custom/katex.liquid +15 -15
- data/_includes/custom/mathjax.liquid +19 -19
- data/_includes/custom/search.liquid +3 -3
- data/_includes/extensions/toc.liquid +182 -182
- data/_includes/functions/get_config.liquid +11 -11
- data/_includes/functions/get_config_data.liquid +23 -23
- data/_includes/functions/get_icon.liquid +5 -5
- data/_includes/functions/get_page_meta.liquid +74 -60
- data/_includes/functions/get_page_thumbnail.liquid +22 -23
- data/_includes/functions/get_page_title.liquid +7 -7
- data/_includes/functions/get_recent_posts.liquid +17 -17
- data/_includes/functions/get_taxonomy_link.liquid +9 -9
- data/_includes/head/head.liquid +11 -12
- data/_includes/head/meta.liquid +50 -41
- data/_includes/head/requirements.liquid +87 -87
- data/_includes/head/styles.liquid +10 -10
- data/_includes/js/codes.js +116 -116
- data/_includes/js/scrollspy.js +16 -16
- data/_includes/layout/article.liquid +74 -71
- data/_includes/layout/footer.liquid +53 -53
- data/_includes/layout/header.liquid +31 -31
- data/_includes/layout/hero.liquid +29 -29
- data/_includes/layout/page.liquid +33 -33
- data/_includes/layout/pagehead.liquid +17 -17
- data/_includes/layout/sidebar.liquid +178 -178
- data/_includes/localize +29 -29
- data/_includes/notice +6 -6
- data/_includes/version +1 -1
- data/_layouts/article.liquid +10 -10
- data/_layouts/default.liquid +132 -131
- data/_layouts/home.liquid +20 -20
- data/_layouts/page.liquid +9 -9
- data/_layouts/post.liquid +9 -9
- data/_layouts/system.liquid +35 -35
- data/_layouts/taxonomy.liquid +67 -67
- data/_sass/_databook.scss +42 -42
- data/_sass/_debug.scss +7 -7
- data/_sass/_variables.scss +24 -24
- data/_sass/base/_mixins.scss +32 -32
- data/_sass/base/_normalize.scss +45 -45
- data/_sass/base/_responsive.scss +28 -28
- data/_sass/components/_archive.scss +49 -49
- data/_sass/components/_blog.scss +249 -249
- data/_sass/components/_forms.scss +30 -30
- data/_sass/components/_hero.scss +70 -70
- data/_sass/components/_misc.scss +3 -3
- data/_sass/components/_notice.scss +27 -27
- data/_sass/components/_notification.scss +10 -10
- data/_sass/components/_post.scss +19 -19
- data/_sass/components/_sidebar.scss +303 -303
- data/_sass/components/_tabs.scss +67 -67
- data/_sass/components/_text.scss +27 -27
- data/_sass/components/_toc.scss +50 -50
- data/_sass/layout/_article.scss +211 -211
- data/_sass/layout/_body.scss +26 -26
- data/_sass/layout/_footer.scss +75 -75
- data/_sass/layout/_header.scss +124 -124
- data/_sass/layout/_main.scss +8 -8
- data/_sass/layout/_misc.scss +7 -7
- data/_sass/layout/_navbar.scss +323 -323
- data/_sass/layout/_sidebar.scss +115 -115
- data/_sass/layout/_wrapper.scss +7 -7
- data/_sass/theme/_scheme.scss +112 -112
- data/_sass/typography/_article.scss +49 -49
- data/_sass/typography/_doc.scss +104 -104
- data/_sass/typography/_highlight.scss +208 -208
- data/_sass/typography/_markdown.scss +18 -18
- data/_sass/typography/_table.scss +119 -119
- data/_sass/typography/_typography.scss +103 -108
- data/_sass/utilities/_thinscrollbar.scss +35 -35
- data/assets/databook/css/databook.scss +6 -6
- data/assets/databook/js/databook.js +8 -8
- data/assets/databook/js/search.js +47 -47
- data/assets/databook/version.json +9 -9
- data/assets/search.json +30 -30
- metadata +8 -8
- data/_includes/head/opengraph.liquid +0 -1
data/_includes/js/scrollspy.js
CHANGED
@@ -1,16 +1,16 @@
|
|
1
|
-
{
|
2
|
-
if (!!window.databookConfig?.scrollspy) {
|
3
|
-
window.addEventListener('load', () => {
|
4
|
-
let links = Array.from(document.querySelectorAll('.c-toc__link'));
|
5
|
-
let headers = links.map(x => decodeURI(x.href).split('#', 2)[1]).map(x => document.getElementById(x));
|
6
|
-
if (links.length <= 1) return;
|
7
|
-
window.onscroll = () => {
|
8
|
-
let scrollPosition = document.documentElement.scrollTop;
|
9
|
-
let offsets = headers.map(x => x.offsetTop);
|
10
|
-
offsets = offsets.map((x, i) => x - (x - ((i == 0) ? 0 : offsets[i - 1])) * .33);
|
11
|
-
let target = offsets.findIndex(x => x > scrollPosition);
|
12
|
-
links.forEach((link, i) => link.classList.toggle('is-active', i == target - 1));
|
13
|
-
};
|
14
|
-
});
|
15
|
-
}
|
16
|
-
}
|
1
|
+
{
|
2
|
+
if (!!window.databookConfig?.scrollspy) {
|
3
|
+
window.addEventListener('load', () => {
|
4
|
+
let links = Array.from(document.querySelectorAll('.c-toc__link'));
|
5
|
+
let headers = links.map(x => decodeURI(x.href).split('#', 2)[1]).map(x => document.getElementById(x));
|
6
|
+
if (links.length <= 1) return;
|
7
|
+
window.onscroll = () => {
|
8
|
+
let scrollPosition = document.documentElement.scrollTop;
|
9
|
+
let offsets = headers.map(x => x.offsetTop);
|
10
|
+
offsets = offsets.map((x, i) => x - (x - ((i == 0) ? 0 : offsets[i - 1])) * .33);
|
11
|
+
let target = offsets.findIndex(x => x > scrollPosition);
|
12
|
+
links.forEach((link, i) => link.classList.toggle('is-active', i == target - 1));
|
13
|
+
};
|
14
|
+
});
|
15
|
+
}
|
16
|
+
}
|
@@ -1,71 +1,74 @@
|
|
1
|
-
{%- assign pageitem = include.page | default: page -%}
|
2
|
-
{%- assign html_content = include.content | default: pageitem.content -%}
|
3
|
-
|
4
|
-
{%- assign typography = pageitem.typography | default: layout.typography | default: site.typography | default: "article" -%}
|
5
|
-
{%- assign hide_title = pageitem.hide_title -%}
|
6
|
-
|
7
|
-
{%- capture page_title -%}
|
8
|
-
{%- include functions/get_page_title.liquid page=pageitem -%}
|
9
|
-
{%- endcapture -%}
|
10
|
-
|
11
|
-
{%- capture page_meta -%}
|
12
|
-
{%- include functions/get_page_meta.liquid
|
13
|
-
page = pageitem
|
14
|
-
tags = true
|
15
|
-
authors = true
|
16
|
-
details = true
|
17
|
-
-%}
|
18
|
-
{%- endcapture -%}
|
19
|
-
|
20
|
-
{%- capture breadcrumb -%}
|
21
|
-
<div class="c-breadcrumb">
|
22
|
-
<span class="c-breadcrumb__item">
|
23
|
-
<a href="{{- '/' | relative_url -}}">{%- include localize key="title_home" default="Home" -%}</a>
|
24
|
-
</span>
|
25
|
-
{%- for category in pageitem.categories -%}
|
26
|
-
<span class="c-breadcrumb__item">
|
27
|
-
<a href="{%- include functions/get_taxonomy_link.liquid category=category -%}">{{- category -}}</a>
|
28
|
-
</span>
|
29
|
-
{%- endfor -%}
|
30
|
-
</div>
|
31
|
-
{%- endcapture -%}
|
32
|
-
|
33
|
-
{%- capture page_header -%}
|
34
|
-
{%- unless hide_title -%}
|
35
|
-
{%- include components/title.liquid
|
36
|
-
breadcrumb = breadcrumb
|
37
|
-
title = page_title
|
38
|
-
url = pageitem.url
|
39
|
-
meta = page_meta
|
40
|
-
-%}
|
41
|
-
{%- endunless -%}
|
42
|
-
{%- endcapture -%}
|
43
|
-
|
44
|
-
{%- assign has_side = include.has_side -%}
|
45
|
-
{%- assign page_side = false -%}
|
46
|
-
{%- if has_side -%}
|
47
|
-
{%- capture page_side -%}
|
48
|
-
{%- include components/toc.liquid html=html_content -%}
|
49
|
-
{%- endcapture -%}
|
50
|
-
{%- endif -%}
|
51
|
-
|
52
|
-
{%- capture page_content -%}
|
53
|
-
{%-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
{
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
{%- include
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
1
|
+
{%- assign pageitem = include.page | default: page -%}
|
2
|
+
{%- assign html_content = include.content | default: pageitem.content | markdownify -%}
|
3
|
+
|
4
|
+
{%- assign typography = include.typography | default: pageitem.typography | default: layout.typography | default: site.typography | default: "article" -%}
|
5
|
+
{%- assign hide_title = include.hide_title | default: pageitem.hide_title -%}
|
6
|
+
|
7
|
+
{%- capture page_title -%}
|
8
|
+
{%- include functions/get_page_title.liquid page=pageitem -%}
|
9
|
+
{%- endcapture -%}
|
10
|
+
|
11
|
+
{%- capture page_meta -%}
|
12
|
+
{%- include functions/get_page_meta.liquid
|
13
|
+
page = pageitem
|
14
|
+
tags = true
|
15
|
+
authors = true
|
16
|
+
details = true
|
17
|
+
-%}
|
18
|
+
{%- endcapture -%}
|
19
|
+
|
20
|
+
{%- capture breadcrumb -%}
|
21
|
+
<div class="c-breadcrumb">
|
22
|
+
<span class="c-breadcrumb__item">
|
23
|
+
<a href="{{- '/' | relative_url -}}">{%- include localize key="title_home" default="Home" -%}</a>
|
24
|
+
</span>
|
25
|
+
{%- for category in pageitem.categories -%}
|
26
|
+
<span class="c-breadcrumb__item">
|
27
|
+
<a href="{%- include functions/get_taxonomy_link.liquid category=category -%}">{{- category -}}</a>
|
28
|
+
</span>
|
29
|
+
{%- endfor -%}
|
30
|
+
</div>
|
31
|
+
{%- endcapture -%}
|
32
|
+
|
33
|
+
{%- capture page_header -%}
|
34
|
+
{%- unless hide_title -%}
|
35
|
+
{%- include components/title.liquid
|
36
|
+
breadcrumb = breadcrumb
|
37
|
+
title = page_title
|
38
|
+
url = pageitem.url
|
39
|
+
meta = page_meta
|
40
|
+
-%}
|
41
|
+
{%- endunless -%}
|
42
|
+
{%- endcapture -%}
|
43
|
+
|
44
|
+
{%- assign has_side = include.has_side -%}
|
45
|
+
{%- assign page_side = false -%}
|
46
|
+
{%- if has_side -%}
|
47
|
+
{%- capture page_side -%}
|
48
|
+
{%- include components/toc.liquid html=html_content -%}
|
49
|
+
{%- endcapture -%}
|
50
|
+
{%- endif -%}
|
51
|
+
|
52
|
+
{%- capture page_content -%}
|
53
|
+
{%- assign thumbnail_src = pageitem.thumbnail | default: pageitem.image.path | default: pageitem.image -%}
|
54
|
+
{%- if thumbnail_src -%}
|
55
|
+
<div class="c-thumbnail">
|
56
|
+
<img src="{{- thumbnail_src -}}" />
|
57
|
+
</div>
|
58
|
+
{%- endif -%}
|
59
|
+
{{- html_content -}}
|
60
|
+
{%- endcapture -%}
|
61
|
+
|
62
|
+
{%- capture page_footer -%}
|
63
|
+
{%- include components/prevnext.liquid -%}
|
64
|
+
{%- endcapture -%}
|
65
|
+
|
66
|
+
{%- include layout/page.liquid
|
67
|
+
type = "article"
|
68
|
+
src = pageitem.url
|
69
|
+
header = page_header
|
70
|
+
content = page_content
|
71
|
+
side = page_side
|
72
|
+
footer = page_footer
|
73
|
+
typography = typography
|
74
|
+
-%}
|
@@ -1,53 +1,53 @@
|
|
1
|
-
{%- assign footer_data = include.data -%}
|
2
|
-
|
3
|
-
{%- comment -%}todo: existence check{%- endcomment -%}
|
4
|
-
{%- assign custom_footer_file = footer_data.custom_file | default: "custom/footer.liquid" -%}
|
5
|
-
{%- capture custom_footer -%}
|
6
|
-
{%- include {{custom_footer_file}} -%}
|
7
|
-
{%- endcapture -%}
|
8
|
-
{%- assign custom_size = custom_footer | strip | strip_newlines | size -%}
|
9
|
-
|
10
|
-
<footer class="l-footer">
|
11
|
-
{%- if custom_size > 0 -%}
|
12
|
-
<div class="l-footer__custom">
|
13
|
-
{{- custom_footer -}}
|
14
|
-
</div>
|
15
|
-
{%- endif -%}
|
16
|
-
|
17
|
-
{%- if footer_data.text -%}
|
18
|
-
<div class="l-footer__text">
|
19
|
-
{{- footer_data.text -}}
|
20
|
-
</div>
|
21
|
-
{%- endif -%}
|
22
|
-
|
23
|
-
<div class="l-footer__left">
|
24
|
-
<div class="c-footer-list">
|
25
|
-
{%- if footer_data.copyright or site.copyright -%}
|
26
|
-
<div class="c-footer-list__item">
|
27
|
-
{{- footer_data.copyright | default: site.copyright | markdownify | remove: "<p>" | remove: "</p>" -}}
|
28
|
-
</div>
|
29
|
-
{%- endif -%}
|
30
|
-
{%- if footer_data.links -%}
|
31
|
-
{%- for item in footer_data.links -%}
|
32
|
-
<div class="c-footer-list__item">
|
33
|
-
{%- if item.url -%}<a href="{{ item.url }}">{%- endif -%}
|
34
|
-
{{- item.text -}}
|
35
|
-
{%- if item.url -%}</a>{%- endif -%}
|
36
|
-
</div>
|
37
|
-
{%- endfor -%}
|
38
|
-
{%- endif -%}
|
39
|
-
</div>
|
40
|
-
</div>
|
41
|
-
|
42
|
-
<div class="l-footer__middle">
|
43
|
-
</div>
|
44
|
-
|
45
|
-
<div class="l-footer__right">
|
46
|
-
{%- if footer_data.provider or site.provider -%}
|
47
|
-
{{- footer_data.provider | default: site.provider | markdownify | remove: "<p>" | remove: "</p>" -}}
|
48
|
-
{%- else -%}
|
49
|
-
Powered by <a href="https://jekyllrb.com" rel="nofollow">Jekyll</a> & <a href="https://github.com/fortelle/databook-theme" rel="nofollow">Databook</a>
|
50
|
-
{%- endif -%}
|
51
|
-
</div>
|
52
|
-
|
53
|
-
</footer>
|
1
|
+
{%- assign footer_data = include.data -%}
|
2
|
+
|
3
|
+
{%- comment -%}todo: existence check{%- endcomment -%}
|
4
|
+
{%- assign custom_footer_file = footer_data.custom_file | default: "custom/footer.liquid" -%}
|
5
|
+
{%- capture custom_footer -%}
|
6
|
+
{%- include {{custom_footer_file}} -%}
|
7
|
+
{%- endcapture -%}
|
8
|
+
{%- assign custom_size = custom_footer | strip | strip_newlines | size -%}
|
9
|
+
|
10
|
+
<footer class="l-footer">
|
11
|
+
{%- if custom_size > 0 -%}
|
12
|
+
<div class="l-footer__custom">
|
13
|
+
{{- custom_footer -}}
|
14
|
+
</div>
|
15
|
+
{%- endif -%}
|
16
|
+
|
17
|
+
{%- if footer_data.text -%}
|
18
|
+
<div class="l-footer__text">
|
19
|
+
{{- footer_data.text -}}
|
20
|
+
</div>
|
21
|
+
{%- endif -%}
|
22
|
+
|
23
|
+
<div class="l-footer__left">
|
24
|
+
<div class="c-footer-list">
|
25
|
+
{%- if footer_data.copyright or site.copyright -%}
|
26
|
+
<div class="c-footer-list__item">
|
27
|
+
{{- footer_data.copyright | default: site.copyright | markdownify | remove: "<p>" | remove: "</p>" -}}
|
28
|
+
</div>
|
29
|
+
{%- endif -%}
|
30
|
+
{%- if footer_data.links -%}
|
31
|
+
{%- for item in footer_data.links -%}
|
32
|
+
<div class="c-footer-list__item">
|
33
|
+
{%- if item.url -%}<a href="{{ item.url }}">{%- endif -%}
|
34
|
+
{{- item.text -}}
|
35
|
+
{%- if item.url -%}</a>{%- endif -%}
|
36
|
+
</div>
|
37
|
+
{%- endfor -%}
|
38
|
+
{%- endif -%}
|
39
|
+
</div>
|
40
|
+
</div>
|
41
|
+
|
42
|
+
<div class="l-footer__middle">
|
43
|
+
</div>
|
44
|
+
|
45
|
+
<div class="l-footer__right">
|
46
|
+
{%- if footer_data.provider or site.provider -%}
|
47
|
+
{{- footer_data.provider | default: site.provider | markdownify | remove: "<p>" | remove: "</p>" -}}
|
48
|
+
{%- else -%}
|
49
|
+
Powered by <a href="https://jekyllrb.com" rel="nofollow">Jekyll</a> & <a href="https://github.com/fortelle/databook-theme" rel="nofollow">Databook</a>
|
50
|
+
{%- endif -%}
|
51
|
+
</div>
|
52
|
+
|
53
|
+
</footer>
|
@@ -1,31 +1,31 @@
|
|
1
|
-
{%- assign header_data = include.data -%}
|
2
|
-
|
3
|
-
<header class="l-header {%- if header_data.sticky %} l-header--sticky{%- endif -%}">
|
4
|
-
|
5
|
-
<div class="l-header__left">
|
6
|
-
{%- if include.has_sidebar -%}
|
7
|
-
<label class="c-navbutton c-navbutton--sidebar" for="sidebar-toggler"></label>
|
8
|
-
{%- endif -%}
|
9
|
-
|
10
|
-
{%- if header_data.left_menu -%}
|
11
|
-
{%- include components/navmenu.liquid data=header_data.left_menu -%}
|
12
|
-
{%- endif -%}
|
13
|
-
</div>
|
14
|
-
|
15
|
-
<div class="l-header__logo">
|
16
|
-
<a class="c-logo" href="{{- '/' | relative_url -}}">
|
17
|
-
<img class="c-logo__image" src="{{- header_data.logo_url | default: site.logo | relative_url -}}" alt="Logo" />
|
18
|
-
<span class="c-logo__text">{{- header_data.logo_text | default: site.title | escape -}}</span>
|
19
|
-
</a>
|
20
|
-
</div>
|
21
|
-
|
22
|
-
<div class="l-header__right">
|
23
|
-
{%- if site.search -%}
|
24
|
-
{%- include components/search.liquid -%}
|
25
|
-
{%- endif -%}
|
26
|
-
{%- if header_data.right_menu -%}
|
27
|
-
{%- include components/navmenu.liquid data=header_data.right_menu is_right=true -%}
|
28
|
-
{%- endif -%}
|
29
|
-
</div>
|
30
|
-
|
31
|
-
</header>
|
1
|
+
{%- assign header_data = include.data -%}
|
2
|
+
|
3
|
+
<header class="l-header {%- if header_data.sticky %} l-header--sticky{%- endif -%}">
|
4
|
+
|
5
|
+
<div class="l-header__left">
|
6
|
+
{%- if include.has_sidebar -%}
|
7
|
+
<label class="c-navbutton c-navbutton--sidebar" for="sidebar-toggler"></label>
|
8
|
+
{%- endif -%}
|
9
|
+
|
10
|
+
{%- if header_data.left_menu -%}
|
11
|
+
{%- include components/navmenu.liquid data=header_data.left_menu -%}
|
12
|
+
{%- endif -%}
|
13
|
+
</div>
|
14
|
+
|
15
|
+
<div class="l-header__logo">
|
16
|
+
<a class="c-logo" href="{{- '/' | relative_url -}}">
|
17
|
+
<img class="c-logo__image" src="{{- header_data.logo_url | default: site.logo | relative_url -}}" alt="Logo" />
|
18
|
+
<span class="c-logo__text">{{- header_data.logo_text | default: site.title | escape -}}</span>
|
19
|
+
</a>
|
20
|
+
</div>
|
21
|
+
|
22
|
+
<div class="l-header__right">
|
23
|
+
{%- if site.search -%}
|
24
|
+
{%- include components/search.liquid -%}
|
25
|
+
{%- endif -%}
|
26
|
+
{%- if header_data.right_menu -%}
|
27
|
+
{%- include components/navmenu.liquid data=header_data.right_menu is_right=true -%}
|
28
|
+
{%- endif -%}
|
29
|
+
</div>
|
30
|
+
|
31
|
+
</header>
|
@@ -1,29 +1,29 @@
|
|
1
|
-
{%- assign hero_data = include.data -%}
|
2
|
-
|
3
|
-
{%- assign hero_style = "" -%}
|
4
|
-
{%- if hero_data.image -%}
|
5
|
-
{%- assign hero_style = hero_style | append: "background-image: url(" | append: hero_data.image | append: ");" -%}
|
6
|
-
{%- endif -%}
|
7
|
-
{%- if hero_data.height -%}
|
8
|
-
{%- assign hero_style = hero_style | append: "height: " | append: hero_data.height | append: ";" -%}
|
9
|
-
{%- endif -%}
|
10
|
-
|
11
|
-
<div class="l-hero {%- if hero_data.overflow %} l-hero--overflow{%- endif -%}">
|
12
|
-
<div class="c-hero" style="{{- hero_style -}}">
|
13
|
-
{%- if hero_data.title -%}
|
14
|
-
<div class="c-hero__title">
|
15
|
-
{{- hero_data.title -}}
|
16
|
-
</div>
|
17
|
-
{%- endif -%}
|
18
|
-
{%- if hero_data.description -%}
|
19
|
-
<div class="c-hero__description">
|
20
|
-
{{- hero_data.description -}}
|
21
|
-
</div>
|
22
|
-
{%- endif -%}
|
23
|
-
{%- if hero_data.links -%}
|
24
|
-
<div class="c-hero__links">
|
25
|
-
{{- hero_data.links -}}
|
26
|
-
</div>
|
27
|
-
{%- endif -%}
|
28
|
-
</div>
|
29
|
-
</div>
|
1
|
+
{%- assign hero_data = include.data -%}
|
2
|
+
|
3
|
+
{%- assign hero_style = "" -%}
|
4
|
+
{%- if hero_data.image -%}
|
5
|
+
{%- assign hero_style = hero_style | append: "background-image: url(" | append: hero_data.image | append: ");" -%}
|
6
|
+
{%- endif -%}
|
7
|
+
{%- if hero_data.height -%}
|
8
|
+
{%- assign hero_style = hero_style | append: "height: " | append: hero_data.height | append: ";" -%}
|
9
|
+
{%- endif -%}
|
10
|
+
|
11
|
+
<div class="l-hero {%- if hero_data.overflow %} l-hero--overflow{%- endif -%}">
|
12
|
+
<div class="c-hero" style="{{- hero_style -}}">
|
13
|
+
{%- if hero_data.title -%}
|
14
|
+
<div class="c-hero__title">
|
15
|
+
{{- hero_data.title -}}
|
16
|
+
</div>
|
17
|
+
{%- endif -%}
|
18
|
+
{%- if hero_data.description -%}
|
19
|
+
<div class="c-hero__description">
|
20
|
+
{{- hero_data.description -}}
|
21
|
+
</div>
|
22
|
+
{%- endif -%}
|
23
|
+
{%- if hero_data.links -%}
|
24
|
+
<div class="c-hero__links">
|
25
|
+
{{- hero_data.links -}}
|
26
|
+
</div>
|
27
|
+
{%- endif -%}
|
28
|
+
</div>
|
29
|
+
</div>
|
@@ -1,33 +1,33 @@
|
|
1
|
-
{%- capture page_header -%}
|
2
|
-
{%- unless include.hide_title -%}
|
3
|
-
<div class="l-page__header">
|
4
|
-
{%- if include.header -%}
|
5
|
-
{{- include.header -}}
|
6
|
-
{%- elsif include.title -%}
|
7
|
-
{%- include components/title.liquid
|
8
|
-
title = include.title
|
9
|
-
-%}
|
10
|
-
{%- endif -%}
|
11
|
-
</div>
|
12
|
-
{%- endunless -%}
|
13
|
-
{%- endcapture -%}
|
14
|
-
|
15
|
-
<div class="l-page" {%- if include.type %} data-type="{{include.type}}"{%- endif -%} {%- if include.src %} data-src="{{include.src}}"{%- endif -%}>
|
16
|
-
|
17
|
-
{{- page_header | strip_newlines -}}
|
18
|
-
|
19
|
-
{%- if include.side -%}
|
20
|
-
<div class="l-page__side" >
|
21
|
-
{{- include.side | strip_newlines -}}
|
22
|
-
</div>
|
23
|
-
{%- endif -%}
|
24
|
-
|
25
|
-
<div class="l-page__content {%- if include.typography %} l-typography l-typography--{{include.typography}}{%- endif -%}" >
|
26
|
-
{{- include.content -}}
|
27
|
-
</div>
|
28
|
-
|
29
|
-
<div class="l-page__footer">
|
30
|
-
{{- include.footer | strip_newlines -}}
|
31
|
-
</div>
|
32
|
-
|
33
|
-
</div>
|
1
|
+
{%- capture page_header -%}
|
2
|
+
{%- unless include.hide_title -%}
|
3
|
+
<div class="l-page__header">
|
4
|
+
{%- if include.header -%}
|
5
|
+
{{- include.header -}}
|
6
|
+
{%- elsif include.title -%}
|
7
|
+
{%- include components/title.liquid
|
8
|
+
title = include.title
|
9
|
+
-%}
|
10
|
+
{%- endif -%}
|
11
|
+
</div>
|
12
|
+
{%- endunless -%}
|
13
|
+
{%- endcapture -%}
|
14
|
+
|
15
|
+
<div class="l-page" {%- if include.type %} data-type="{{include.type}}"{%- endif -%} {%- if include.src %} data-src="{{include.src}}"{%- endif -%}>
|
16
|
+
|
17
|
+
{{- page_header | strip_newlines -}}
|
18
|
+
|
19
|
+
{%- if include.side -%}
|
20
|
+
<div class="l-page__side" >
|
21
|
+
{{- include.side | strip_newlines -}}
|
22
|
+
</div>
|
23
|
+
{%- endif -%}
|
24
|
+
|
25
|
+
<div class="l-page__content {%- if include.typography %} l-typography l-typography--{{include.typography}}{%- endif -%}" >
|
26
|
+
{{- include.content -}}
|
27
|
+
</div>
|
28
|
+
|
29
|
+
<div class="l-page__footer">
|
30
|
+
{{- include.footer | strip_newlines -}}
|
31
|
+
</div>
|
32
|
+
|
33
|
+
</div>
|
@@ -1,17 +1,17 @@
|
|
1
|
-
<div class="c-pagehead">
|
2
|
-
<div class="c-pagehead__breadcrumb">{{- include.breadcrumb -}}</div>
|
3
|
-
|
4
|
-
<h1 class="c-pagehead__title">
|
5
|
-
<a href="{{ include.url | relative_url }}">
|
6
|
-
{{- include.title -}}
|
7
|
-
</a>
|
8
|
-
</h1>
|
9
|
-
|
10
|
-
<div class="c-pagehead__right">
|
11
|
-
</div>
|
12
|
-
<div class="c-pagehead__tagline">{{- include.tagline | markdownify -}}</div>
|
13
|
-
|
14
|
-
<div class="c-pagehead__divider"></div>
|
15
|
-
<div class="c-pagehead__meta">{{- include.meta -}}</div>
|
16
|
-
<div class="c-pagehead__indicator">{{- include.indicator -}}</div>
|
17
|
-
</div>
|
1
|
+
<div class="c-pagehead">
|
2
|
+
<div class="c-pagehead__breadcrumb">{{- include.breadcrumb -}}</div>
|
3
|
+
|
4
|
+
<h1 class="c-pagehead__title">
|
5
|
+
<a href="{{ include.url | relative_url }}">
|
6
|
+
{{- include.title -}}
|
7
|
+
</a>
|
8
|
+
</h1>
|
9
|
+
|
10
|
+
<div class="c-pagehead__right">
|
11
|
+
</div>
|
12
|
+
<div class="c-pagehead__tagline">{{- include.tagline | markdownify -}}</div>
|
13
|
+
|
14
|
+
<div class="c-pagehead__divider"></div>
|
15
|
+
<div class="c-pagehead__meta">{{- include.meta -}}</div>
|
16
|
+
<div class="c-pagehead__indicator">{{- include.indicator -}}</div>
|
17
|
+
</div>
|