jekyll-text-theme 2.1.0 → 2.2.0
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +171 -0
- data/README.md +5 -4
- data/_data/variables.yml +22 -8
- data/_includes/article-footer/author-profile.html +29 -27
- data/_includes/article-footer/license.html +4 -13
- data/_includes/article-header.html +47 -0
- data/_includes/article-info.html +79 -50
- data/_includes/article-list.html +82 -15
- data/_includes/article-section-navigator.html +2 -2
- data/_includes/author-links.html +1 -2
- data/_includes/footer.html +3 -1
- data/_includes/head.html +2 -2
- data/_includes/header.html +38 -32
- data/_includes/markdown-enhancements.html +6 -9
- data/_includes/markdown-enhancements/mathjax.html +2 -2
- data/_includes/scripts/article.js +1 -1
- data/_includes/scripts/lib/affix.js +2 -2
- data/_includes/scripts/lib/toc.js +1 -1
- data/_includes/scripts/variables.html +1 -0
- data/_includes/snippets/{page-title.html → get-article-title.html} +2 -2
- data/_layouts/archive.html +1 -1
- data/_layouts/article.html +17 -4
- data/_layouts/articles.html +89 -0
- data/_layouts/home.html +8 -2
- data/_layouts/landing.html +77 -101
- data/_layouts/page.html +158 -74
- data/_sass/additional/_alert.scss +8 -4
- data/_sass/additional/_tag.scss +21 -0
- data/_sass/common/_classes.scss +1 -0
- data/_sass/common/_variables.scss +26 -2
- data/_sass/common/classes/_grid.scss +112 -29
- data/_sass/common/classes/_spacing.scss +53 -42
- data/_sass/common/classes/_text.scss +37 -0
- data/_sass/common/components/_button.scss +9 -0
- data/_sass/common/components/_card.scss +93 -9
- data/_sass/common/components/_hero.scss +79 -0
- data/_sass/common/components/_image.scss +19 -0
- data/_sass/common/components/_item.scss +13 -9
- data/_sass/components/_article-header.scss +47 -0
- data/_sass/components/_article-info.scss +1 -1
- data/_sass/components/_article-list.scss +8 -0
- data/_sass/components/_author-links.scss +1 -1
- data/_sass/components/_author-profile.scss +10 -28
- data/_sass/components/_footer.scss +7 -11
- data/_sass/components/_header.scss +30 -19
- data/_sass/components/_main.scss +1 -0
- data/_sass/layout/_archive.scss +0 -6
- data/_sass/layout/_articles.scss +13 -0
- data/_sass/layout/_landing.scss +2 -99
- data/_sass/layout/_page.scss +26 -30
- data/assets/css/main.scss +12 -6
- metadata +17 -6
data/_layouts/home.html
CHANGED
@@ -1,14 +1,20 @@
|
|
1
1
|
---
|
2
|
-
layout:
|
2
|
+
layout: articles
|
3
3
|
titles:
|
4
4
|
en: Home
|
5
5
|
zh: 主页
|
6
6
|
zh-Hans: 主頁
|
7
7
|
zh-Hant: 主頁
|
8
8
|
show_title: false
|
9
|
+
articles:
|
10
|
+
data_source: paginator.posts
|
11
|
+
article_type: BlogPosting
|
12
|
+
show_cover: false
|
13
|
+
show_excerpt: true
|
14
|
+
show_readmore: true
|
15
|
+
show_info: true
|
9
16
|
---
|
10
17
|
<div class="layout--home">
|
11
|
-
{%- include article-list.html articles=paginator.posts type='common' show_excerpt=true excerpt_type=site.excerpt_type -%}
|
12
18
|
{%- include paginator.html -%}
|
13
19
|
</div>
|
14
20
|
<script>
|
data/_layouts/landing.html
CHANGED
@@ -1,50 +1,23 @@
|
|
1
1
|
---
|
2
2
|
layout: page
|
3
|
-
|
4
|
-
show_title: false
|
5
|
-
show_header: false
|
3
|
+
header: false
|
6
4
|
full_width: true
|
5
|
+
article_header:
|
6
|
+
type: overlay
|
7
|
+
align: center
|
8
|
+
height: 80vh
|
7
9
|
---
|
8
|
-
{%- include snippets/page-title.html -%}
|
9
|
-
{%- assign _title = __return -%}
|
10
|
-
|
11
10
|
<div class="layout--landing">
|
12
|
-
|
13
|
-
{%- assign _url = __return -%}
|
14
|
-
{%- if page.data.theme == 'light' -%}
|
15
|
-
<section class="section section--light overlay" style="background-image: url({{ _url }});">
|
16
|
-
{%- elsif page.data.theme == 'dark' -%}
|
17
|
-
<section class="section section--dark overlay" style="background-image: url({{ _url }});">
|
18
|
-
{%- else -%}
|
19
|
-
<section class="section overlay" style="background-image: url({{ _url }});">
|
20
|
-
{%- endif -%}
|
21
|
-
<div class="section__content">
|
22
|
-
<h1>{{ _title }}</h1>
|
23
|
-
{%- if page.data.sub_title -%}
|
24
|
-
<h2 itemprop="alternativeHeadline">{{ page.data.sub_title }}</h2>
|
25
|
-
{%- endif -%}
|
26
|
-
{%- if page.data.actions -%}
|
27
|
-
<ul class="menu menu--center">
|
28
|
-
{%- for _action in page.data.actions -%}
|
29
|
-
{%- include snippets/get-nav-url.html path=_action.url -%}
|
30
|
-
{%- assign _url = __return -%}
|
31
|
-
{%- assign _type = _action.type | default: 'info' -%}
|
32
|
-
<li><a class="button button--{{ _type }} button--pill button--lg" href="{{ _url }}">{{ _action.text }}</a></li>
|
33
|
-
{%- endfor -%}
|
34
|
-
</ul>
|
35
|
-
{%- endif -%}
|
36
|
-
</div>
|
37
|
-
</section>
|
38
|
-
|
11
|
+
<div class="heros">
|
39
12
|
{%- for _section in page.data.sections -%}
|
40
13
|
{%- include snippets/get-nav-url.html path=_section.background_image.src -%}
|
41
14
|
{%- assign _url = __return -%}
|
42
15
|
{%- if _section.theme == 'light' -%}
|
43
|
-
<section class="
|
16
|
+
<section class="hero hero--center hero--light" id="hero-{{ forloop.index }}"
|
44
17
|
{%- elsif _section.theme == 'dark' -%}
|
45
|
-
<section class="
|
18
|
+
<section class="hero hero--center hero--dark" id="hero-{{ forloop.index }}"
|
46
19
|
{%- else -%}
|
47
|
-
<section class="
|
20
|
+
<section class="hero hero--center" id="hero-{{ forloop.index }}"
|
48
21
|
{%- endif -%}
|
49
22
|
{%- if _section.background_color -%}
|
50
23
|
style="background-image: url({{ _url }}); background-color: {{ _section.background_color }};">
|
@@ -52,16 +25,16 @@ full_width: true
|
|
52
25
|
style="background-image: url({{ _url }});">
|
53
26
|
{%- endif -%}
|
54
27
|
|
55
|
-
<div class="
|
56
|
-
<div class="
|
28
|
+
<div class="hero__content">
|
29
|
+
<div class="mb-5">
|
57
30
|
|
58
31
|
<h3>{{ _section.title }}</h3>
|
59
|
-
{%- if _section.
|
60
|
-
<p>{{ _section.
|
32
|
+
{%- if _section.excerpt-%}
|
33
|
+
<p>{{ _section.excerpt }}</p>
|
61
34
|
{%- endif -%}
|
62
35
|
|
63
36
|
{%- if _section.actions -%}
|
64
|
-
<ul class="menu
|
37
|
+
<ul class="menu">
|
65
38
|
{%- for _action in _section.actions -%}
|
66
39
|
{%- include snippets/get-nav-url.html path=_action.url -%}
|
67
40
|
{%- assign _url = __return -%}
|
@@ -75,67 +48,67 @@ full_width: true
|
|
75
48
|
|
76
49
|
{%- if _section.children -%}
|
77
50
|
{%- assign _size = _section.children | size -%}
|
78
|
-
<div class="grid">
|
79
|
-
<div class="
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
51
|
+
<div class="grid--container">
|
52
|
+
<div class="grid grid--p-3">
|
53
|
+
|
54
|
+
{%- for child in _section.children -%}
|
55
|
+
<div class="cell cell--{{ 12 | divided_by: _size }} cell--sm-12">
|
56
|
+
|
57
|
+
<div class="mb-5">
|
58
|
+
<h4>{{ child.title }}</h4>
|
59
|
+
|
60
|
+
{%- if child.excerpt-%}
|
61
|
+
<p>{{ child.excerpt }}</p>
|
62
|
+
{%- endif -%}
|
63
|
+
|
64
|
+
{%- if child.actions -%}
|
65
|
+
<ul class="menu">
|
66
|
+
{%- for _action in child.actions -%}
|
67
|
+
{%- include snippets/get-nav-url.html path=_action.url -%}
|
68
|
+
{%- assign _url = __return -%}
|
69
|
+
{%- assign _type = _action.type | default: 'outline-info' -%}
|
70
|
+
<li><a class="button button--{{ _type }} button--pill button--lg" href="{{ _url }}">{{ _action.text }}</a></li>
|
71
|
+
{%- endfor -%}
|
72
|
+
</ul>
|
73
|
+
{%- endif -%}
|
74
|
+
</div>
|
75
|
+
|
76
|
+
{%- if child.image -%}
|
77
|
+
|
78
|
+
{%- if child.image.url -%}
|
79
|
+
{%- include snippets/get-nav-url.html path=child.image.url -%}
|
80
|
+
{%- assign _item_image_url = __return -%}
|
81
|
+
{%- else -%}
|
82
|
+
{%- assign _item_image_url = nil -%}
|
83
|
+
{%- endif -%}
|
84
|
+
|
85
|
+
{%- if child.image.src -%}
|
86
|
+
{%- include snippets/get-nav-url.html path=child.image.src -%}
|
87
|
+
{%- assign _item_image_src = __return -%}
|
88
|
+
{%- else -%}
|
89
|
+
{%- assign _item_image_src = nil -%}
|
90
|
+
{%- endif -%}
|
91
|
+
{%- if child.image.is_row -%}
|
92
|
+
<div class="mb-5">
|
93
|
+
{%- endif -%}
|
94
|
+
<div class="mx-auto" style="{{ child.image.style }}">
|
95
|
+
{%- if _item_image_url -%}
|
96
|
+
<a href="{{ _item_image_url }}">
|
97
|
+
{%- endif -%}
|
98
|
+
{%- if _item_image_src -%}
|
99
|
+
<img src="{{ _item_image_src }}"/>
|
100
|
+
{%- endif -%}
|
101
|
+
{%- if _item_image_url -%}
|
102
|
+
</a>
|
103
|
+
{%- endif -%}
|
104
|
+
</div>
|
105
|
+
{%- if child.image.is_row -%}
|
106
|
+
</div>
|
107
|
+
{%- endif -%}
|
90
108
|
{%- endif -%}
|
91
109
|
|
92
|
-
{%- if child.actions -%}
|
93
|
-
<ul class="menu menu--center">
|
94
|
-
{%- for _action in child.actions -%}
|
95
|
-
{%- include snippets/get-nav-url.html path=_action.url -%}
|
96
|
-
{%- assign _url = __return -%}
|
97
|
-
{%- assign _type = _action.type | default: 'outline-info' -%}
|
98
|
-
<li><a class="button button--{{ _type }} button--pill button--lg" href="{{ _url }}">{{ _action.text }}</a></li>
|
99
|
-
{%- endfor -%}
|
100
|
-
</ul>
|
101
|
-
{%- endif -%}
|
102
110
|
</div>
|
103
|
-
|
104
|
-
{%- if child.image -%}
|
105
|
-
|
106
|
-
{%- if child.image.url -%}
|
107
|
-
{%- include snippets/get-nav-url.html path=child.image.url -%}
|
108
|
-
{%- assign _item_image_url = __return -%}
|
109
|
-
{%- else -%}
|
110
|
-
{%- assign _item_image_url = nil -%}
|
111
|
-
{%- endif -%}
|
112
|
-
|
113
|
-
{%- if child.image.src -%}
|
114
|
-
{%- include snippets/get-nav-url.html path=child.image.src -%}
|
115
|
-
{%- assign _item_image_src = __return -%}
|
116
|
-
{%- else -%}
|
117
|
-
{%- assign _item_image_src = nil -%}
|
118
|
-
{%- endif -%}
|
119
|
-
|
120
|
-
{%- if child.image.is_row -%}
|
121
|
-
<div class="content__row">
|
122
|
-
{%- endif -%}
|
123
|
-
{%- if _item_image_url -%}
|
124
|
-
<a href="{{ _item_image_url }}">
|
125
|
-
{%- endif -%}
|
126
|
-
{%- if _item_image_src -%}
|
127
|
-
<img class="content__cover" src="{{ _item_image_src }}" style="{{ child.image.style }}"></img>
|
128
|
-
{%- endif -%}
|
129
|
-
{%- if _item_image_url -%}
|
130
|
-
</a>
|
131
|
-
{%- endif -%}
|
132
|
-
{%- if child.image.is_row -%}
|
133
|
-
</div>
|
134
|
-
{%- endif -%}
|
135
|
-
{%- endif -%}
|
136
|
-
|
137
|
-
</div>
|
138
|
-
{%- endfor-%}
|
111
|
+
{%- endfor-%}
|
139
112
|
|
140
113
|
</div>
|
141
114
|
</div>
|
@@ -143,12 +116,14 @@ full_width: true
|
|
143
116
|
|
144
117
|
{%- if _section.image -%}
|
145
118
|
{%- if _section.image.is_row -%}
|
146
|
-
<div class="
|
119
|
+
<div class="mb-5">
|
147
120
|
{%- endif -%}
|
148
121
|
{%- if child.image.url -%}
|
149
122
|
<a href="{{ child.image.url }}">
|
150
123
|
{%- endif -%}
|
151
|
-
|
124
|
+
{%- include snippets/get-nav-url.html path=_section.image.src -%}
|
125
|
+
{%- assign _url = __return -%}
|
126
|
+
<img class="hero__cover" src="{{ _url }}" style="{{ _section.image.style }}" />
|
152
127
|
{%- if child.image.url -%}
|
153
128
|
</a>
|
154
129
|
{%- endif -%}
|
@@ -160,6 +135,7 @@ full_width: true
|
|
160
135
|
</div>
|
161
136
|
</section>
|
162
137
|
{%- endfor -%}
|
138
|
+
</div>
|
163
139
|
</div>
|
164
140
|
|
165
141
|
{{ content }}
|
data/_layouts/page.html
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
---
|
2
2
|
layout: base
|
3
3
|
---
|
4
|
+
{%- assign _page_mode = page.mode | default: layout.mode | default: site.data.variables.default.page.mode -%}
|
4
5
|
{%- assign _page_type = page.type | default: layout.type | default: site.data.variables.default.page.type -%}
|
5
|
-
|
6
|
-
{%-
|
7
|
-
{%- assign _page_title = __return -%}
|
6
|
+
{%- assign _header_type = page.header.type | default: layout.header.type | default: site.data.variables.default.page.header.type -%}
|
7
|
+
{%- assign _article_header_type = page.article_header.type | default: layout.article_header.type -%}
|
8
8
|
|
9
9
|
{%- include snippets/assign.html
|
10
|
-
target=
|
11
|
-
|
12
|
-
{%- assign _show_header = __return -%}
|
10
|
+
target=layout.header source0=page.header -%}
|
11
|
+
{%- assign _header = __return -%}
|
13
12
|
|
14
13
|
{%- include snippets/assign.html
|
15
14
|
target = site.data.variables.default.page.full_width
|
@@ -17,106 +16,191 @@ layout: base
|
|
17
16
|
{%- assign _full_width = __return -%}
|
18
17
|
|
19
18
|
{%- include snippets/assign.html
|
20
|
-
target=site.data.variables.default.page.
|
21
|
-
source0=layout.
|
22
|
-
{%- assign
|
19
|
+
target = site.data.variables.default.page.comment
|
20
|
+
source0=layout.comment source1=page.comment -%}
|
21
|
+
{%- assign _comment = __return -%}
|
23
22
|
|
24
|
-
|
25
|
-
|
26
|
-
source0=layout.show_edit_on_github source1=page.show_edit_on_github -%}
|
27
|
-
{%- assign _show_edit_on_github = __return -%}
|
23
|
+
|
24
|
+
{%- assign _article_header_excerpt_truncate = include.excerpt_truncate | default: 200 -%}
|
28
25
|
|
29
26
|
{%- if page.sidebar -%}
|
30
27
|
<div class="layout--page layout--page--sidebar clearfix js-page-root">
|
31
28
|
<div class="page__actions">
|
32
|
-
<div class="button button--circle
|
29
|
+
<div class="button button--circle button--lg box-shadow-2 sidebar-button js-sidebar-show">
|
33
30
|
<i class="fas fa-bars icon--show"></i>
|
34
31
|
</div>
|
35
32
|
</div>
|
33
|
+
<div class="page__mask js-sidebar-hide"></div>
|
34
|
+
|
36
35
|
<div class="page__sidebar">
|
37
36
|
{%- include sidebar/toc.html -%}
|
38
37
|
</div>
|
39
|
-
<div class="page__mask js-sidebar-hide"></div>
|
40
38
|
|
41
39
|
{%- else -%}
|
42
|
-
<div class="layout--page
|
40
|
+
<div class="layout--page js-page-root">
|
43
41
|
{%- endif -%}
|
44
42
|
|
45
|
-
{%-
|
46
|
-
|
47
|
-
|
48
|
-
<div class="page__main js-page-main has-aside">
|
49
|
-
{%- else -%}
|
50
|
-
<div class="page__main js-page-main">
|
43
|
+
{%- assign _page_main_class = 'page__main js-page-main' -%}
|
44
|
+
{%- if _page_mode == 'immersive' -%}
|
45
|
+
{%- assign _page_main_class = _page_main_class | append: ' page__main--immersive' -%}
|
51
46
|
{%- endif -%}
|
47
|
+
{%- if page.aside -%}
|
48
|
+
{%- assign _page_main_class = _page_main_class | append: ' has-aside' -%}
|
49
|
+
{%- elsif _full_width -%}
|
50
|
+
{%- assign _page_main_class = _page_main_class | append: ' full-width' -%}
|
51
|
+
{%- endif -%}
|
52
|
+
<div class="{{ _page_main_class }}">
|
52
53
|
|
53
54
|
<div class="page__main-inner">
|
54
|
-
|
55
|
-
{%- if
|
56
|
-
<div class="page__header">
|
55
|
+
<div></div>
|
56
|
+
{%- if _header != false -%}
|
57
|
+
<div class="page__header">
|
58
|
+
{%- if _header_type == 'normal' -%}
|
59
|
+
{%- include header.html -%}
|
60
|
+
{%- elsif _header_type == 'translucent' -%}
|
61
|
+
{%- assign _header_theme = page.header.theme | default: layout.header.theme | default: site.data.variables.default.page.header.theme -%}
|
62
|
+
{%- if _header_theme == 'dark'-%}
|
63
|
+
{%- include header.html theme='dark'-%}
|
64
|
+
{%- else -%}
|
65
|
+
{%- include header.html theme='light'-%}
|
66
|
+
{%- endif -%}
|
67
|
+
{%- endif -%}
|
68
|
+
</div>
|
57
69
|
{%- endif -%}
|
70
|
+
|
71
|
+
|
58
72
|
<div class="page__content">
|
59
|
-
{%- if
|
60
|
-
|
61
|
-
|
73
|
+
{%- if _article_header_type == 'overlay' or _article_header_type == 'cover' -%}
|
74
|
+
|
75
|
+
{%- if _article_header_type == 'overlay' -%}
|
76
|
+
|
77
|
+
{%- assign _article_header_height = page.article_header.height | default: layout.article_header.height -%}
|
78
|
+
{%- assign _article_header_align = page.article_header.align | default: layout.article_header.align | default: site.data.variables.default.page.article_header.align -%}
|
79
|
+
{%- assign _article_header_theme = page.article_header.theme | default: layout.article_header.theme | default: site.data.variables.default.page.article_header.theme -%}
|
62
80
|
|
63
|
-
|
64
|
-
{%-
|
65
|
-
|
66
|
-
|
67
|
-
|
81
|
+
{%- if page.article_header.background_image.src -%}
|
82
|
+
{%- assign _header_background_image_src = page.article_header.background_image.src -%}
|
83
|
+
{%- elsif page.article_header.background_image != false and page.cover -%}
|
84
|
+
{%- assign _header_background_image_src = page.cover -%}
|
85
|
+
{%- endif -%}
|
86
|
+
|
87
|
+
{%- if page.article_header.background_image.gradient -%}
|
88
|
+
{%- assign _header_background_image = page.article_header.background_image.gradient -%}
|
89
|
+
{%- if _header_background_image_src -%}
|
90
|
+
{%- assign _header_background_image = _header_background_image | append: ',' -%}
|
68
91
|
{%- endif -%}
|
69
|
-
|
92
|
+
{%- endif -%}
|
93
|
+
|
94
|
+
{%- if _header_background_image_src -%}
|
95
|
+
{%- include snippets/get-nav-url.html path=_header_background_image_src -%}
|
96
|
+
{%- assign _header_background_image_src = __return -%}
|
97
|
+
{%- assign _header_background_image = _header_background_image
|
98
|
+
| append: 'url(' | append: _header_background_image_src | append: ')'-%}
|
99
|
+
{%- endif -%}
|
100
|
+
|
101
|
+
{%- assign _header_style = 'background-image:' | append: _header_background_image | append: ';' -%}
|
102
|
+
|
103
|
+
{%- if page.article_header.background_color -%}
|
104
|
+
{%- assign _header_style = _header_style | append: 'background-color:' | append: page.article_header.background_color | append: ';' -%}
|
105
|
+
{%- endif -%}
|
70
106
|
|
71
|
-
|
72
|
-
{%-
|
73
|
-
|
74
|
-
|
75
|
-
|
107
|
+
{%- if _article_header_height -%}
|
108
|
+
{%- assign _header_style = _header_style | append: 'min-height:' | append: _article_header_height | append: ';' -%}
|
109
|
+
{%- endif -%}
|
110
|
+
|
111
|
+
<div class="article__header--overlay">
|
112
|
+
|
113
|
+
{%- if _article_header_theme == 'light' -%}
|
114
|
+
{%- if _article_header_align == 'center' -%}
|
115
|
+
<div class="hero hero--center hero--light overlay" style="{{ _header_style }}">
|
76
116
|
{%- else -%}
|
77
|
-
<
|
117
|
+
<div class="hero hero--light overlay" style="{{ _header_style }}">
|
78
118
|
{%- endif -%}
|
79
|
-
|
80
|
-
|
81
|
-
{
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
<span class="split-space"> </span>
|
101
|
-
<a class="edit-on-github"
|
102
|
-
title="{{ _locale_post_on_github }}"
|
103
|
-
href="https://github.com/{{ _github_path }}">
|
104
|
-
<i class="far fa-edit"></i></a>
|
119
|
+
{%- elsif _article_header_theme == 'dark' -%}
|
120
|
+
{%- if _article_header_align == 'center' -%}
|
121
|
+
<div class="hero hero--center hero--dark overlay" style="{{ _header_style }}">
|
122
|
+
{%- else -%}
|
123
|
+
<div class="hero hero--dark overlay" style="{{ _header_style }}">
|
124
|
+
{%- endif -%}
|
125
|
+
{%- else -%}
|
126
|
+
{%- if _article_header_align == 'center' -%}
|
127
|
+
<div class="hero hero--center overlay" style="{{ _header_style }}">
|
128
|
+
{%- else -%}
|
129
|
+
<div class="hero overlay" style="{{ _header_style }}">
|
130
|
+
{%- endif -%}
|
131
|
+
{%- endif -%}
|
132
|
+
<div class="hero__content">
|
133
|
+
{%- if _full_width == false -%}
|
134
|
+
<div class ="main">
|
135
|
+
{%- endif -%}
|
136
|
+
{%- include article-info.html article=page semantic=false -%}
|
137
|
+
{%- include article-header.html article=page semantic=false -%}
|
138
|
+
{%- if page.excerpt -%}
|
139
|
+
<p class="overlay__excerpt">{{ page.excerpt | strip_html | strip_newlines | strip | truncate: _article_header_excerpt_truncate }}</p>
|
105
140
|
{%- endif -%}
|
141
|
+
{%- if page.article_header.actions -%}
|
142
|
+
<ul class="menu">
|
143
|
+
{%- for _action in page.article_header.actions -%}
|
144
|
+
{%- include snippets/get-nav-url.html path=_action.url -%}
|
145
|
+
{%- assign _url = __return -%}
|
146
|
+
{%- assign _type = _action.type | default: 'info' -%}
|
147
|
+
<li><a class="button button--{{ _type }} button--rounded button--xl" href="{{ _url }}">{{ _action.text }}</a></li>
|
148
|
+
{%- endfor -%}
|
149
|
+
</ul>
|
150
|
+
{%- endif -%}
|
151
|
+
{%- if _full_width == false -%}
|
152
|
+
</div>
|
106
153
|
{%- endif -%}
|
107
|
-
{%- if _show_title or _show_edit_on_github -%}
|
108
154
|
</div>
|
109
|
-
|
155
|
+
</div>
|
156
|
+
</div>
|
157
|
+
{%- elsif _article_header_type == 'cover' -%}
|
158
|
+
{%- if page.article_header.image.src -%}
|
159
|
+
{%- include snippets/get-nav-url.html path=page.article_header.image.src -%}
|
160
|
+
{%- assign _header_image_src = __return -%}
|
161
|
+
<img class="article__header--cover" src="{{ _header_image_src }}"></img>
|
162
|
+
{%- endif -%}
|
163
|
+
{%- endif -%}
|
164
|
+
|
165
|
+
{%- endif -%}
|
110
166
|
|
111
|
-
{%- include article-info.html article=page -%}
|
112
167
|
|
113
|
-
|
168
|
+
{%- if _full_width == false -%}
|
169
|
+
<div class ="main">
|
170
|
+
{%- endif -%}
|
171
|
+
<div class="grid grid--reverse">
|
172
|
+
|
173
|
+
<div class="col-aside js-col-aside">
|
174
|
+
{%- if page.aside -%}
|
175
|
+
<aside class="page__aside js-page-aside">
|
176
|
+
{%- include aside/toc.html -%}
|
177
|
+
</aside>
|
178
|
+
{%- endif -%}
|
179
|
+
</div>
|
180
|
+
|
181
|
+
<div class="col-main cell--auto">
|
182
|
+
{%- if _page_type == 'article' -%}
|
183
|
+
<article itemscope itemtype="http://schema.org/Article">
|
184
|
+
{%- elsif _page_type == 'webpage' -%}
|
185
|
+
<article itemscope itemtype="http://schema.org/WebPage">
|
186
|
+
{%- else -%}
|
187
|
+
<article>
|
188
|
+
{%- endif -%}
|
114
189
|
|
115
|
-
{%- if
|
116
|
-
|
190
|
+
{%- if _article_header_type == 'overlay' or page.article_header == false -%}
|
191
|
+
{%- include article-header.html article=page html=false -%}
|
192
|
+
{%- include article-info.html article=page html=false -%}
|
193
|
+
{%- else -%}
|
194
|
+
{%- include article-header.html article=page -%}
|
195
|
+
{%- include article-info.html article=page -%}
|
117
196
|
{%- endif -%}
|
118
197
|
|
119
|
-
|
198
|
+
<div class="js-article-content">{{ content }}</div>
|
199
|
+
{%- if jekyll.environment != "development" and _comment != false -%}
|
200
|
+
<section class="page__comments">{%- include comments.html -%}</section>
|
201
|
+
{%- endif -%}
|
202
|
+
</article>
|
203
|
+
</div>
|
120
204
|
</div>
|
121
205
|
|
122
206
|
{%- if _full_width == false -%}
|
@@ -127,7 +211,7 @@ layout: base
|
|
127
211
|
<div class="page__footer">{%- include footer.html -%}</div>
|
128
212
|
</div>
|
129
213
|
</div>
|
130
|
-
{%- if
|
214
|
+
{%- if _header != false -%}
|
131
215
|
<div class="page__search-panel">{%- include search.html -%}</div>
|
132
216
|
{%- endif -%}
|
133
217
|
</div>
|