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.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +171 -0
  3. data/README.md +5 -4
  4. data/_data/variables.yml +22 -8
  5. data/_includes/article-footer/author-profile.html +29 -27
  6. data/_includes/article-footer/license.html +4 -13
  7. data/_includes/article-header.html +47 -0
  8. data/_includes/article-info.html +79 -50
  9. data/_includes/article-list.html +82 -15
  10. data/_includes/article-section-navigator.html +2 -2
  11. data/_includes/author-links.html +1 -2
  12. data/_includes/footer.html +3 -1
  13. data/_includes/head.html +2 -2
  14. data/_includes/header.html +38 -32
  15. data/_includes/markdown-enhancements.html +6 -9
  16. data/_includes/markdown-enhancements/mathjax.html +2 -2
  17. data/_includes/scripts/article.js +1 -1
  18. data/_includes/scripts/lib/affix.js +2 -2
  19. data/_includes/scripts/lib/toc.js +1 -1
  20. data/_includes/scripts/variables.html +1 -0
  21. data/_includes/snippets/{page-title.html → get-article-title.html} +2 -2
  22. data/_layouts/archive.html +1 -1
  23. data/_layouts/article.html +17 -4
  24. data/_layouts/articles.html +89 -0
  25. data/_layouts/home.html +8 -2
  26. data/_layouts/landing.html +77 -101
  27. data/_layouts/page.html +158 -74
  28. data/_sass/additional/_alert.scss +8 -4
  29. data/_sass/additional/_tag.scss +21 -0
  30. data/_sass/common/_classes.scss +1 -0
  31. data/_sass/common/_variables.scss +26 -2
  32. data/_sass/common/classes/_grid.scss +112 -29
  33. data/_sass/common/classes/_spacing.scss +53 -42
  34. data/_sass/common/classes/_text.scss +37 -0
  35. data/_sass/common/components/_button.scss +9 -0
  36. data/_sass/common/components/_card.scss +93 -9
  37. data/_sass/common/components/_hero.scss +79 -0
  38. data/_sass/common/components/_image.scss +19 -0
  39. data/_sass/common/components/_item.scss +13 -9
  40. data/_sass/components/_article-header.scss +47 -0
  41. data/_sass/components/_article-info.scss +1 -1
  42. data/_sass/components/_article-list.scss +8 -0
  43. data/_sass/components/_author-links.scss +1 -1
  44. data/_sass/components/_author-profile.scss +10 -28
  45. data/_sass/components/_footer.scss +7 -11
  46. data/_sass/components/_header.scss +30 -19
  47. data/_sass/components/_main.scss +1 -0
  48. data/_sass/layout/_archive.scss +0 -6
  49. data/_sass/layout/_articles.scss +13 -0
  50. data/_sass/layout/_landing.scss +2 -99
  51. data/_sass/layout/_page.scss +26 -30
  52. data/assets/css/main.scss +12 -6
  53. metadata +17 -6
@@ -1,6 +1,9 @@
1
1
  {%- assign _excerpt_truncate = include.excerpt_truncate | default: 350 -%}
2
2
 
3
- {%- assign _excerpt_type = include.excerpt_type | default: site.data.variables.default.excerpt_type -%}
3
+ {%- assign _excerpt_type = include.excerpt_type -%}
4
+
5
+ {%- include snippets/locale-to-string.html locale=site.data.locale.READMORE -%}
6
+ {%- assign _locale_readmore = __return -%}
4
7
 
5
8
  {%- assign _sorted_list = include.articles -%}
6
9
  {%- if include.group_by == 'year' -%}
@@ -10,37 +13,65 @@
10
13
  {%- assign _sorted_list = _sorted_list | reverse -%}
11
14
  {%- endif -%}
12
15
 
13
- {%- if include.type == 'common' -%}
14
- <div class="items items--divided">
16
+ {%- if include.type == 'item' -%}
17
+ <div class="article-list items items--divided">
15
18
  {%- elsif include.type == 'brief' -%}
16
- <div class="items">
19
+ <div class="article-list items">
20
+ {%- elsif include.type == 'grid' -%}
21
+ <div class="article-list grid grid--p-3">
17
22
  {%- endif -%}
18
23
 
19
24
  {%- for _article in _sorted_list -%}
20
25
 
21
26
  {%- include snippets/prepend-baseurl.html path=_article.url -%}
22
- {%- assign _href = __return -%}
27
+ {%- assign _article_url = __return -%}
23
28
 
24
- {%- include snippets/locale-to-string.html locale=site.data.locale.READMORE -%}
25
- {%- assign _locale_readmore = __return -%}
29
+ {%- if _article.cover -%}
30
+ {%- include snippets/get-nav-url.html path=_article.cover -%}
31
+ {%- assign _article_cover = __return -%}
32
+ {%- endif -%}
26
33
 
27
- {%- if include.type == 'common' -%}
28
- <article class="item" itemscope itemtype="http://schema.org/BlogPosting">
34
+ {%- if include.type == 'item' -%}
35
+ {%- if include.article_type == 'BlogPosting' -%}
36
+ <article class="item" itemscope itemtype="http://schema.org/BlogPosting">
37
+ {%- else -%}
38
+ <article class="item">
39
+ {%- endif -%}
40
+ {%- if _article.cover and include.show_cover-%}
41
+ {%- include snippets/get-nav-url.html path=_article.cover -%}
42
+ {%- assign _article_cover = __return -%}
43
+ <div class="item__image">
44
+ {%- if include.cover_size == 'lg' -%}
45
+ <img class="image image--lg" src="{{ _article_cover }}" />
46
+ {%- elsif include.cover_size == 'sm' -%}
47
+ <img class="image image--sm" src="{{ _article_cover }}" />
48
+ {%- else -%}
49
+ <img class="image" src="{{ _article_cover }}" />
50
+ {%- endif -%}
51
+ </div>
52
+ {%- endif -%}
29
53
  <div class="item__content">
30
- <header><h2 itemprop="headline" class="item__header"><a href="{{ _href }}">{{ _article.title }}</a></h2></header>
54
+ <header><h2 itemprop="headline" class="item__header"><a href="{{ _article_url }}">{{ _article.title }}</a></h2></header>
31
55
  <div class="item__description">
32
56
  {%- if _article.excerpt and include.show_excerpt -%}
33
57
  <div class="article__content" itemprop="description articleBody">
34
58
  {%- if _excerpt_type == 'html' -%}
35
59
  {{ _article.excerpt }}
36
60
  {%- else -%}
37
- {{ _article.excerpt | strip_html | truncate: _excerpt_truncate }}
61
+ {{ _article.excerpt | strip_html | strip | truncate: _excerpt_truncate }}
38
62
  {%- endif -%}
39
63
  </div>
40
64
  {%- endif -%}
41
- <p><a href="{{ _href }}">{{ _locale_readmore }}</a></p>
65
+ {%- if include.show_readmore -%}
66
+ <p><a href="{{ _article_url }}">{{ _locale_readmore }}</a></p>
67
+ {%- endif -%}
42
68
  </div>
43
- {%- include article-info.html article=_article show_pageview=true -%}
69
+ {%- if include.show_info -%}
70
+ {%- include snippets/assign.html target=site.data.variables.default.page.pageview
71
+ source0=_article.pageview -%}
72
+ {%- assign _show_pageview = __return -%}
73
+ {%- include article-info.html article=_article show_pageview=_show_pageview -%}
74
+ {%- endif -%}
44
75
  </div>
45
76
  </article>
46
77
 
@@ -65,9 +96,45 @@
65
96
  {%- endif -%}
66
97
  {%- include snippets/locale-to-string.html locale=site.data.locale.ARTICLE_LIST_DATE_FORMAT -%}
67
98
  <li class="item" itemscope itemtype="http://schema.org/BlogPosting" data-tags="{{ _tags }}">
68
- <div class="item__content"><span class="item__meta">{{ _article.date | date: __return }}</span><a itemprop="headline" class="item__header" href="{{ _href }}">{{ _article.title }}</a></div>
99
+ <div class="item__content">
100
+ {%- if include.show_info -%}
101
+ <span class="item__meta">{{ _article.date | date: __return }}</span>
102
+ {%- endif -%}
103
+ <a itemprop="headline" class="item__header" href="{{ _article_url }}">{{ _article.title }}</a></div>
69
104
  </li>
70
- {%- endif -%}
71
105
 
106
+ {%- elsif include.type == 'grid' -%}
107
+ {%- if include.size == 'sm' -%}
108
+ <div class="cell cell--3 cell--md-4 cell--sm-12">
109
+ <div class="card">
110
+ {%- if _article_cover -%}
111
+ <div class="card__image">
112
+ <img class="image" src="{{ _article_cover }}" />
113
+ <div class="overlay overlay--bottom">
114
+ <header>
115
+ <a class="card__header" href="{{ _article_url }}">{{ _article.title }}</a>
116
+ </header>
117
+ </div>
118
+ </div>
119
+ {%- endif -%}
120
+ </div>
121
+ </div>
122
+ {%- else -%}
123
+
124
+ <div class="cell cell--4 cell--md-6 cell--sm-12">
125
+ <div class="card card--flat">
126
+ {%- if _article_cover -%}
127
+ <div class="card__image"><img src="{{ _article_cover }}" /></div>
128
+ {%- endif -%}
129
+ <div class="card__content">
130
+ <header>
131
+ <h2 class="card__header"><a href="{{ _article_url }}">{{ _article.title }}</a></h2>
132
+ </header>
133
+ </div>
134
+ </div>
135
+ </div>
136
+ {%- endif -%}
137
+ {%- endif -%}
72
138
  {%- endfor -%}
139
+
73
140
  </div>
@@ -30,8 +30,8 @@
30
30
  {%- endif -%}
31
31
 
32
32
  {%- else -%}
33
- {%- assign _previous = page.next -%}
34
- {%- assign _next = page.previous -%}
33
+ {%- assign _previous = page.previous -%}
34
+ {%- assign _next = page.next -%}
35
35
  {%- endif -%}
36
36
 
37
37
  {%- if _next or _previous -%}
@@ -1,8 +1,7 @@
1
1
  {%- assign _author = include.author -%}
2
2
 
3
3
  <div class="author-links">
4
- <ul class="menu menu--nowrap menu--center">
5
-
4
+ <ul class="menu menu--nowrap menu--inline">
6
5
 
7
6
  {%- if _author.url -%}
8
7
  <link itemprop="url" href="{{ _author.url }}">
@@ -18,7 +18,9 @@
18
18
  {%- if _site_author.bio -%}
19
19
  <meta itemprop="description" content="{{ _site_author.bio }}">
20
20
  {%- endif -%}
21
- {%- include author-links.html author=_site_author -%}
21
+ <div class="footer__author-links">
22
+ {%- include author-links.html author=_site_author -%}
23
+ </div>
22
24
  </aside>
23
25
  <footer class="site-info">
24
26
  {%- assign _paths_rss = site.paths.rss | default: site.data.variables.default.paths.rss -%}
@@ -2,10 +2,10 @@
2
2
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
3
3
  <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
4
4
 
5
- {%- include snippets/page-title.html -%}
5
+ {%- include snippets/get-article-title.html article=page -%}
6
6
  <title>{%- if __return -%}{{ __return }} - {{ site.title }}{%- else -%}{{ site.title }}{%- endif -%}</title>
7
7
 
8
- <meta name="description" content="{%- if page.excerpt -%}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{%- else -%}{{ site.description }}{%- endif -%}">
8
+ <meta name="description" content="{%- if page.excerpt -%}{{ page.excerpt | strip_html | strip_newlines | strip | truncate: 160 }}{%- else -%}{{ site.description }}{%- endif -%}">
9
9
  <link rel="canonical" href="{%- include snippets/page-url.html -%}">
10
10
 
11
11
  {%- assign _paths_rss = site.paths.rss | default: site.data.variables.default.paths.rss -%}
@@ -1,34 +1,40 @@
1
- <header class="header">
2
- <div class="main">
3
- <div class="header__main">
4
- <div class="logo">
5
- {%- include svg/logo.svg -%}
6
- {%- assign _paths_root = site.paths.root | default: site.data.variables.default.paths.root -%}
7
- {%- include snippets/get-nav-url.html path=_paths_root -%}
8
- {%- if site.title -%}
9
- <a title="{%- if site.description -%}{{ site.description }}{%- endif -%}" href="{{ __return }}">{{ site.title }}</a>
10
- {%- endif -%}
1
+ {%- if include.theme == 'dark' -%}
2
+ <header class="header header--dark">
3
+ {%- elsif include.theme == 'light' -%}
4
+ <header class="header header--light">
5
+ {%- else -%}
6
+ <header class="header">
7
+ {%- endif -%}
8
+ <div class="main">
9
+ <div class="header__title">
10
+ <div class="header__brand">
11
+ {%- include svg/logo.svg -%}
12
+ {%- assign _paths_root = site.paths.root | default: site.data.variables.default.paths.root -%}
13
+ {%- include snippets/get-nav-url.html path=_paths_root -%}
14
+ {%- if site.title -%}
15
+ <a title="{%- if site.description -%}{{ site.description }}{%- endif -%}" href="{{ __return }}">{{ site.title }}</a>
16
+ {%- endif -%}
17
+ </div>
18
+ <button class="button button--secondary button--circle search-button js-search-toggle"><i class="fas fa-search"></i></button>
11
19
  </div>
12
- <button class="button button--secondary button--circle search-button js-search-toggle"><i class="fas fa-search"></i></button>
20
+ {%- if site.data.navigation.header -%}
21
+ <nav class="navigation">
22
+ <ul>
23
+ {%- for _item in site.data.navigation.header -%}
24
+ {%- include snippets/get-nav-url.html path=_item.url -%}
25
+ {%- assign _nav_url = __return -%}
26
+ {%- include snippets/get-nav-url.html path=page.url -%}
27
+ {%- assign _page_url = __return -%}
28
+ {%- include snippets/locale-to-string.html locale=_item.titles -%}
29
+ {%- if _nav_url == _page_url -%}
30
+ <li class="navigation__link navigation__link--active"><a href="{{ _nav_url }}">{%- if _item.title -%}{{ _item.title }}{%- else -%}{{ __return }}{%- endif -%}</a></li>
31
+ {%- else -%}
32
+ <li class="navigation__link"><a href="{{ _nav_url }}">{%- if _item.title -%}{{ _item.title }}{%- else -%}{{ __return }}{%- endif -%}</a></li>
33
+ {%- endif -%}
34
+ {%- endfor -%}
35
+ <li><button class="button button--secondary button--circle search-button js-search-toggle"><i class="fas fa-search"></i></button></li>
36
+ </ul>
37
+ </nav>
38
+ {%- endif -%}
13
39
  </div>
14
- {%- if site.data.navigation.header -%}
15
- <nav class="navigation">
16
- <ul>
17
- {%- for _item in site.data.navigation.header -%}
18
- {%- include snippets/get-nav-url.html path=_item.url -%}
19
- {%- assign _nav_url = __return -%}
20
- {%- include snippets/get-nav-url.html path=page.url -%}
21
- {%- assign _page_url = __return -%}
22
- {%- include snippets/locale-to-string.html locale=_item.titles -%}
23
- {%- if _nav_url == _page_url -%}
24
- <li class="active"><a href="{{ _nav_url }}">{%- if _item.title -%}{{ _item.title }}{%- else -%}{{ __return }}{%- endif -%}</a></li>
25
- {%- else -%}
26
- <li><a href="{{ _nav_url }}">{%- if _item.title -%}{{ _item.title }}{%- else -%}{{ __return }}{%- endif -%}</a></li>
27
- {%- endif -%}
28
- {%- endfor -%}
29
- <li><button class="button button--secondary button--circle search-button js-search-toggle"><i class="fas fa-search"></i></button></li>
30
- </ul>
31
- </nav>
32
- {%- endif -%}
33
- </div>
34
- </header>
40
+ </header>
@@ -1,20 +1,17 @@
1
- {%- include snippets/assign.html target=site.data.variables.default.chart source0=site.chart -%}
2
- {%- include snippets/assign.html target=__return source0=page.chart -%}
3
-
1
+ {%- include snippets/assign.html target=site.data.variables.default.chart
2
+ source0=site.chart source1=page.chart -%}
4
3
  {%- if __return == true -%}
5
4
  {%- include markdown-enhancements/chart.html -%}
6
5
  {%- endif -%}
7
6
 
8
- {%- include snippets/assign.html target=site.data.variables.default.mathjax source0=site.mathjax -%}
9
- {%- include snippets/assign.html target=__return source0=page.mathjax -%}
10
-
7
+ {%- include snippets/assign.html target=site.data.variables.default.mathjax
8
+ source0=site.mathjax source1=page.mathjax -%}
11
9
  {%- if __return == true -%}
12
10
  {%- include markdown-enhancements/mathjax.html -%}
13
11
  {%- endif -%}
14
12
 
15
- {%- include snippets/assign.html target=site.data.variables.default.mermaid source0=site.mermaid -%}
16
- {%- include snippets/assign.html target=__return source0=page.mermaid -%}
17
-
13
+ {%- include snippets/assign.html target=site.data.variables.default.mermaid
14
+ source0=site.mermaid source1=page.mermaid -%}
18
15
  {%- if __return == true -%}
19
16
  {%- include markdown-enhancements/mermaid.html -%}
20
17
  {%- endif -%}
@@ -1,8 +1,8 @@
1
1
  {%- include snippets/get-sources.html -%}
2
2
  {%- assign _sources = __return -%}
3
3
 
4
- {%- include snippets/assign.html target=site.data.variables.default.mathjax_autoNumber source0=site.mathjax_autoNumber -%}
5
- {%- include snippets/assign.html target=__return source0=page.mathjax_autoNumber -%}
4
+ {%- include snippets/assign.html target=site.data.variables.default.mathjax_autoNumber
5
+ source0=site.mathjax_autoNumber source1=page.mathjax_autoNumber -%}
6
6
  {%- assign _mathjax_autoNumber = __return -%}
7
7
 
8
8
  <script type="text/x-mathjax-config">
@@ -12,7 +12,7 @@
12
12
  $this = $(this);
13
13
  $this.attr('data-lang', $this.find('code').attr('data-lang'));
14
14
  });
15
- $articleContent.find('h1, h2, h3, h4, h5, h6').each(function() {
15
+ $articleContent.find('h1[id], h2[id], h3[id], h4[id], h5[id], h6[id]').each(function() {
16
16
  $this = $(this);
17
17
  $this.append($('<a class="anchor" aria-hidden="true"></a>').html('<i class="fas fa-anchor"></i>'));
18
18
  });
@@ -86,9 +86,9 @@
86
86
  $scrollTarget.on('scroll', function() {
87
87
  disabled || setState();
88
88
  });
89
- $window.on('resize', window.throttle(function() {
89
+ $window.on('resize', function() {
90
90
  disabled || (calc(true), setState());
91
- }, 100));
91
+ });
92
92
  hasInit = true;
93
93
  }
94
94
  }
@@ -11,7 +11,7 @@
11
11
  _options.scrollTarget && (scrollTarget = _options.scrollTarget);
12
12
  _options.scroller && (scroller = _options.scroller);
13
13
  _options.disabled !== undefined && (disabled = _options.disabled);
14
- $headings = $(container).find(selectors);
14
+ $headings = $(container).find(selectors).filter('[id]');
15
15
  $scrollTarget = $(scrollTarget);
16
16
  $scroller = $(scroller);
17
17
  }
@@ -7,6 +7,7 @@
7
7
  <script>
8
8
  (function() {
9
9
  var TEXT_VARIABLES = {
10
+ version: '2.2.0',
10
11
  sources: {
11
12
  font_awesome: '{{ _sources.font_awesome }}',
12
13
  jquery: '{{ _sources.jquery }}',
@@ -1,5 +1,5 @@
1
- {%- assign _title = page.title | default: layout.title -%}
2
- {%- assign _titles = page.titles | default: layout.titles -%}
1
+ {%- assign _title = include.article.title | default: layout.title -%}
2
+ {%- assign _titles = include.article.titles | default: layout.titles -%}
3
3
 
4
4
  {%- if _title -%}
5
5
  {%- assign __return = _title -%}
@@ -10,7 +10,7 @@ titles:
10
10
  <div class="layout--archive js-all">
11
11
  {%- include tags.html -%}
12
12
  <div class="js-result layout--archive__result d-none">
13
- {%- include article-list.html articles=site.posts type='brief' reverse=true group_by='year' -%}
13
+ {%- include article-list.html articles=site.posts type='brief' show_info=true reverse=true group_by='year' -%}
14
14
  </div>
15
15
  </div>
16
16
 
@@ -3,10 +3,14 @@ layout: page
3
3
  type: article
4
4
  ---
5
5
 
6
- {%- include snippets/assign.html target=site.data.variables.default.page.show_author_profile source0=layout.show_author_profile -%}
7
- {%- include snippets/assign.html target=__return source0=page.show_author_profile -%}
6
+ {%- include snippets/assign.html target=site.data.variables.default.page.show_author_profile
7
+ source0=layout.show_author_profile source1=page.show_author_profile -%}
8
8
  {%- assign _show_author_profile = __return -%}
9
9
 
10
+ {%- include snippets/assign.html target=site.data.variables.default.page.license
11
+ source0=layout.license source1=page.license -%}
12
+ {%- assign _license = __return -%}
13
+
10
14
  <div class="layout--article">
11
15
 
12
16
  <div class="article__content" itemprop="articleBody">{{ content }}</div>
@@ -35,8 +39,17 @@ type: article
35
39
  {%- include article-footer/author-profile.html author=_author -%}
36
40
  {%- endif -%}
37
41
 
38
- {%- if page.license -%}
39
- <div class="article__license">{%- include article-footer/license.html -%}</div>
42
+ {%- if _license != false -%}
43
+ {%- assign _data_license = site.data.licenses-%}
44
+ {%- if site.license -%}
45
+ {%- assign _license_data = _data_license[site.license] -%}
46
+ {%- endif -%}
47
+ {%- if _license != true -%}
48
+ {%- assign _license_data = _data_license[_license] -%}
49
+ {%- endif -%}
50
+ <div class="article__license">
51
+ {%- include article-footer/license.html license=_license_data -%}
52
+ </div>
40
53
  {%- endif -%}
41
54
  </footer>
42
55
 
@@ -0,0 +1,89 @@
1
+ ---
2
+ layout: page
3
+ ---
4
+
5
+ {%- assign _page_articles_data_source = page.articles.data_source | default: layout.articles.data_source -%}
6
+
7
+ {%- if _page_articles_data_source -%}
8
+ {%- assign _keys = _page_articles_data_source | split: '.' -%}
9
+ {%- endif -%}
10
+
11
+ {%- assign _articles = nil -%}
12
+ {%- for _key in _keys -%}
13
+ {%- if forloop.first -%}
14
+ {%- case _key -%}
15
+ {%- when 'site' -%}
16
+ {%- assign _articles = site -%}
17
+ {%- when 'page' -%}
18
+ {%- assign _articles = page -%}
19
+ {%- when 'layout' -%}
20
+ {%- assign _articles = layout -%}
21
+ {%- when 'paginator' -%}
22
+ {%- assign _articles = paginator -%}
23
+ {%- else -%}
24
+ {%- assign _articles = site[_key] -%}
25
+ {%- else -%}
26
+ {%- endcase -%}
27
+ {%- else -%}
28
+ {%- assign _articles = _articles[_key] -%}
29
+ {%- endif -%}
30
+ {%- endfor -%}
31
+
32
+ {%- assign _type = page.articles.type | default: layout.articles.type -%}
33
+
34
+ {%- if _articles -%}
35
+
36
+ <div class="layout--articles">
37
+
38
+ {%- if _type == 'grid' -%}
39
+ {%- if page.articles.size == 'sm' -%}
40
+ {%- include article-list.html articles=_articles type='grid' size='sm' -%}
41
+ {%- else -%}
42
+ {%- include article-list.html articles=_articles type='grid' -%}
43
+ {%- endif -%}
44
+
45
+ {%- elsif _type == 'brief' -%}
46
+ {%- include snippets/assign.html
47
+ target=site.data.variables.default.page.articles.show_info
48
+ source0=layout.articles.show_info source1=page.articles.show_info -%}
49
+ {%- assign _show_info = __return -%}
50
+
51
+ {%- include article-list.html articles=_articles type='brief' show_info=_show_info -%}
52
+
53
+ {%- else -%}
54
+ {%- include snippets/assign.html
55
+ target=site.data.variables.default.page.articles.show_cover
56
+ source0=layout.articles.show_cover source1=page.articles.show_cover -%}
57
+ {%- assign _show_cover = __return -%}
58
+
59
+ {%- include snippets/assign.html
60
+ target=site.data.variables.default.page.articles.show_excerpt
61
+ source0=layout.articles.show_excerpt source1=page.articles.show_excerpt -%}
62
+ {%- assign _show_excerpt = __return -%}
63
+
64
+ {%- include snippets/assign.html
65
+ target=site.data.variables.default.page.articles.show_readmore
66
+ source0=layout.articles.show_readmore source1=page.articles.show_readmore -%}
67
+ {%- assign _show_readmore = __return -%}
68
+
69
+ {%- include snippets/assign.html
70
+ target=site.data.variables.default.page.articles.show_info
71
+ source0=layout.articles.show_info source1=page.articles.show_info -%}
72
+ {%- assign _show_info = __return -%}
73
+
74
+ {%- assign _article_type = page.articles.article_type | default: layout.articles.article_type -%}
75
+ {%- assign _cover_size = page.articles.cover_size | default: layout.articles.cover_size -%}
76
+ {%- assign _excerpt_type = page.articles.excerpt_type | default: layout.articles.excerpt_type -%}
77
+
78
+ {%- include article-list.html articles=_articles type='item'
79
+ article_type=_article_type
80
+ show_cover=_show_cover cover_size=_cover_size
81
+ show_excerpt=_show_excerpt excerpt_type=_excerpt_type
82
+ show_readmore=_show_readmore show_info=_show_info -%}
83
+
84
+ {%- endif -%}
85
+
86
+ </div>
87
+ {%- endif -%}
88
+
89
+ {{ content }}