jekyll-text-theme 2.1.0 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 14c04996b1129a62fc3ff58d0bb57e110dc0319f
4
- data.tar.gz: f452946f4ab9eb877ef00d9e68bf0de94d54ba20
3
+ metadata.gz: e8c52cc9cd3c2393b235d5e6860c386cf7ee7496
4
+ data.tar.gz: cd27fadd6654e7790f16e9fc96f0690668b31c4f
5
5
  SHA512:
6
- metadata.gz: ad3852f278e417abf9e263d8bc8b95c9bff1e7db6a8f5da6569d60a39e6c531ffdb44197a69fe6888aa3fff32c6b09109131a4051bc9508c5695faf3b9abcd92
7
- data.tar.gz: f881cc2df0868bb6f3245eb5ab7e6b5e950091f3e0e599105715c77d625fdb2cc224299fbcac6eea6a0fe1ba74e7ba3599732fd32a1b85f0bc585c3f83c26a88
6
+ metadata.gz: 37cf0106bf192d10c2c5cdd9924462de3aa0080219ab2981bf55d6562f9888d9e6f2eb4e1cc2cf9e73fd18f3c031cda46f26ccbb446e2fdf6d9a0912f7608081
7
+ data.tar.gz: a376efb4c860d8e55007c26986c8687865eb56030a2095e6634989c9e0b5d21038b5829c0e94c8067caed965bd6bdc30717a91a188b19f6791c0bdfab89a3518
@@ -0,0 +1,171 @@
1
+ # Change Log
2
+
3
+ ## 2.2.0 (2018-09-16)
4
+
5
+ ### Enhancements
6
+
7
+ - `article_header` config for Page Layout
8
+ - Articles Layout
9
+ - New grid system
10
+ - Image, card, item and hero components
11
+ - Tag additional style
12
+ - chart.js update to 2.7.2, mathjax update to 2.7.4 mermaid update to 8.0.0-rc.8
13
+
14
+ ### Bug Fixes
15
+
16
+ - replace Lenna example image
17
+
18
+ ## 2.1.0 (2018-08-26)
19
+
20
+ ### Enhancements
21
+
22
+ - Search panel (Click search icon in the header or press `s` or `/` key to search)
23
+ - Npm social icon (@WangQiru)
24
+
25
+ ### Bug Fixes
26
+
27
+ - Google analytics may not work, use gtag.js
28
+
29
+ ## 2.0.2 (2018-07-29)
30
+
31
+ ### Enhancements
32
+
33
+ - Highlight theme
34
+ - Articles whit `sidebar.toc` support section navigator (previous and next navigator)
35
+ - Aside Toc show immediately after page get ready (no more delay)
36
+
37
+ ### Bug Fixes
38
+
39
+ - Aside Toc may display error when scroll to bottom
40
+
41
+ ## 2.0.1 (2018-07-07)
42
+
43
+ > “All elements that respond to press should have a visual feedback when touched.”
44
+ >
45
+ > —TouchableWithoutFeedback in *React Native Docs*
46
+
47
+ ### Enhancements
48
+
49
+ - Some interaction details optimize: button and link add feedback when clicked, cancel button of input in archive layout, button focus style, etc
50
+
51
+ ### Bug Fixes
52
+
53
+ - `mathjax` and `mermaid` config may not work
54
+
55
+ ## 2.0.0 (2018-07-01)
56
+
57
+ Breaking changes, please check [Update form 1.x to 2.x](https://tianqi.name/jekyll-TeXt-theme/docs/en/update-form-1-to-2) for details
58
+
59
+ ### Enhancements
60
+
61
+ - Authors
62
+ - License
63
+ - New layouts (page, article, landing, etc)
64
+
65
+ ## 1.5.0 (2018-03-18)
66
+
67
+ ### Enhancements
68
+
69
+ - `text_color_theme` config
70
+ - Long pagination
71
+ - Additional styles (Alert, Image)
72
+ - Mathjax autoNumber config (@liao961120)
73
+ - Article heading anchor
74
+ - Previous and next post
75
+ - Search
76
+
77
+ ## 1.4.3 (2018-01-13)
78
+
79
+ ### Enhancements
80
+
81
+ - New TOC style
82
+ - Gitalk support (@WangQiru)
83
+ - Mermaid support
84
+ - `site.paths` & `site.nav_lists` support absolute URL
85
+
86
+ ## 1.4.2 (2017-12-10)
87
+
88
+ ### Enhancements
89
+
90
+ - Use new liquid syntax `{%-` `-%}` to avoid unnecessary output whitespace
91
+ - Add paths.base config
92
+
93
+ ## 1.4.1 (2017-12-05)
94
+
95
+ ### Enhancements
96
+
97
+ - New color themes(Chocolate, Orange)
98
+
99
+ ### Bug Fixes
100
+
101
+ - Issues 9: the _posts file can't recorded by git
102
+
103
+ ## 1.4.0 (2017-11-19)
104
+
105
+ ### Enhancements
106
+
107
+ - Multi-language support
108
+
109
+ ### Bug Fixes
110
+
111
+ - Table overflow-x smooth on iOS
112
+
113
+ ## 1.3.0 (2017-11-11)
114
+
115
+ ### Enhancements
116
+
117
+ - Article tag supports special characters
118
+ - Excerpts type (HTML | TEXT)
119
+ - Titles on the phone become smaller
120
+ - Styles change (table, code, blockquote)
121
+
122
+ ## 1.2.2 (2017-11-04)
123
+
124
+ ### Enhancements
125
+
126
+ - MathJax Support
127
+ - Add “Read more” link at the end of article excerpt
128
+ - 404 page
129
+
130
+ ### Bug Fixes
131
+
132
+ - Fix Email link URL error
133
+ - Fix Site Title link URL error
134
+ - Fix table responsive style error
135
+
136
+ ## 1.2.1 (2017-10-27)
137
+
138
+ ### Enhancements
139
+
140
+ - Optimize Article TOC
141
+
142
+ ### Bug Fixes
143
+
144
+ - Issues 4: View count display error when the post key include `-` (@yuxianda)
145
+ - Email url error
146
+
147
+ ## 1.2.0 (2017-10-22)
148
+
149
+ ### Enhancements
150
+
151
+ - Article excerpt no more than 200 words
152
+ - If `leancloud` is not set, 0 view won't display
153
+
154
+ ### Bug Fixes
155
+
156
+ - Fix article TOC ’s display error at proper situation
157
+ - Fix footer social buttons not in the center bug
158
+
159
+ ## 1.1.0 (2017-10-19)
160
+
161
+ ### Enhancements
162
+
163
+ - Color variables
164
+ - More color themes (dark, forest, ocean)
165
+
166
+ ## 1.0.0 (2017-10-17)
167
+
168
+ ### Enhancements
169
+
170
+ - Better article directories
171
+ - Dark color theme
data/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  ![TeXt Theme Details](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/TeXt-layouts.png)
10
10
 
11
- TeXt is a customizable Jekyll theme for personal site, team site, blog, project, documentation, etc. Similar to iOS 11 style, it has large and prominent titles, round buttons and cards.
11
+ TeXt is a super customizable Jekyll theme for personal site, team site, blog, project, documentation, etc. Similar to iOS 11 style, it has large and prominent titles, round buttons and cards.
12
12
 
13
13
  [Change Log](https://github.com/kitian616/jekyll-TeXt-theme/blob/master/CHANGELOG.md) | [中文文档](https://github.com/kitian616/jekyll-TeXt-theme/blob/master/README-zh.md)
14
14
 
@@ -33,7 +33,7 @@ TeXt is a customizable Jekyll theme for personal site, team site, blog, project,
33
33
 
34
34
  ## Skins
35
35
 
36
- You can choose these 6 built-in skins below:
36
+ TeXt has 6 built-in skins, You can also your own skin.
37
37
 
38
38
  | `default` | `dark` | `forest` |
39
39
  | --- | --- | --- |
@@ -76,8 +76,9 @@ TeXt use [Tomorrow](https://github.com/chriskempson/tomorrow-theme) as the highl
76
76
 
77
77
  | Name | Description |
78
78
  | --- | --- |
79
- | [Home](https://tianqi.name/jekyll-TeXt-theme/test/) | Home page with posts list |
80
- | [Archive](https://tianqi.name/jekyll-TeXt-theme/archive.html) | You can filter tags and search here |
79
+ | [Home](https://tianqi.name/jekyll-TeXt-theme/test/) | Home page |
80
+ | [Archive](https://tianqi.name/jekyll-TeXt-theme/archive.html) | Archive page |
81
+ | [Layout Examples](https://tianqi.name/jekyll-TeXt-theme/samples.html) | Examples for different layouts |
81
82
 
82
83
  ## License
83
84
 
@@ -14,15 +14,29 @@ default:
14
14
  toc:
15
15
  selectors: 'h1,h2,h3'
16
16
  sources: bootcdn
17
- excerpt_type: text
18
17
 
19
18
  page:
19
+ mode: normal
20
20
  type: webpage
21
- show_header: true
21
+ header:
22
+ type: normal
23
+ theme: light
24
+ article_header:
25
+ align: left
26
+ theme: light
27
+ articles:
28
+ show_cover: true
29
+ show_excerpt: false
30
+ show_readmore: false
31
+ show_info: false
22
32
  show_title: true
23
33
  show_edit_on_github: false
34
+ show_date: true
35
+ show_tags: true
24
36
  show_author_profile: false
25
37
  full_width: false
38
+ comment: true
39
+ license: false
26
40
  pageview: false
27
41
 
28
42
  sources:
@@ -30,19 +44,19 @@ sources:
30
44
  font_awesome: 'https://use.fontawesome.com/releases/v5.0.13/css/all.css'
31
45
  jquery: 'https://cdn.bootcss.com/jquery/3.1.1/jquery.min.js'
32
46
  leancloud_js_sdk: '//cdn1.lncld.net/static/js/3.4.1/av-min.js'
33
- chart: 'https://cdn.bootcss.com/Chart.js/2.7.1/Chart.bundle.min.js'
47
+ chart: 'https://cdn.bootcss.com/Chart.js/2.7.2/Chart.bundle.min.js'
34
48
  gitalk:
35
49
  js: 'https://cdn.bootcss.com/gitalk/1.2.2/gitalk.min.js'
36
50
  css: 'https://cdn.bootcss.com/gitalk/1.2.2/gitalk.min.css'
37
- mathjax: 'https://cdn.bootcss.com/mathjax/2.7.2/MathJax.js?config=TeX-MML-AM_CHTML'
38
- mermaid: 'https://cdn.bootcss.com/mermaid/7.1.2/mermaid.min.js'
51
+ mathjax: 'https://cdn.bootcss.com/mathjax/2.7.4/MathJax.js?config=TeX-MML-AM_CHTML'
52
+ mermaid: 'https://cdn.bootcss.com/mermaid/8.0.0-rc.8/mermaid.min.js'
39
53
  unpkg:
40
54
  font_awesome: 'https://use.fontawesome.com/releases/v5.0.13/css/all.css'
41
55
  jquery: 'https://unpkg.com/jquery@3.3.1/dist/jquery.min.js'
42
56
  leancloud_js_sdk: '//cdn1.lncld.net/static/js/3.4.1/av-min.js'
43
- chart: 'https://unpkg.com/chart.js@2.7.1/dist/Chart.min.js'
57
+ chart: 'https://unpkg.com/chart.js@2.7.2/dist/Chart.min.js'
44
58
  gitalk:
45
59
  js: 'https://unpkg.com/gitalk@1.2.2/dist/gitalk.min.js'
46
60
  css: 'https://unpkg.com/gitalk@1.2.2/dist/gitalk.css'
47
- mathjax: 'https://unpkg.com/mathjax@2.7.3/unpacked/MathJax.js?config=TeX-MML-AM_CHTML'
48
- mermaid: 'https://unpkg.com/mermaid@7.1.2/dist/mermaid.min.js'
61
+ mathjax: 'https://unpkg.com/mathjax@2.7.4/unpacked/MathJax.js?config=TeX-MML-AM_CHTML'
62
+ mermaid: 'https://unpkg.com/mermaid@8.0.0-rc.8/dist/mermaid.min.js'
@@ -6,40 +6,42 @@
6
6
  {%- assign _author_itemtype = 'http://schema.org/Person' -%}
7
7
  {%- endif -%}
8
8
 
9
- <div itemscope itemtype="{{ _author_itemtype }}" class="author-profile card card--no-shadow clearfix">
10
-
9
+ <div itemscope itemtype="{{ _author_itemtype }}" class="author-profile card card--flat item">
11
10
  {%- if _author.avatar -%}
12
11
  {%- if _author.url -%}
13
- <a href="{{ _author.url }}">
12
+ <a href="{{ _author.url }}" class="item__image">
14
13
  {%- endif -%}
15
- <img itemprop="image" class="left-col" src="{{ _author.avatar }}"></img>
14
+ {%- include snippets/get-nav-url.html path=_author.avatar -%}
15
+ {%- assign _author_avatar = __return -%}
16
+ <img itemprop="image" src="{{ _author_avatar }}" />
16
17
  {%- if _author.url -%}
17
18
  </a>
18
19
  {%- endif -%}
19
20
  {%- endif -%}
20
21
 
21
22
 
22
- <div class="right-col clearfix">
23
-
24
- {%- if _author.name -%}
25
- <meta itemprop="name" content="{{ _author.name }}">
26
- <p class="author-profile__name">
27
- {%- if _author.url -%}
28
- <meta itemprop="url" content="{{ _author.url }}">
29
- <a href="{{ _author.url }}">
30
- {%- endif -%}
31
- {{ _author.name }}
32
- {%- if _author.url -%}
33
- </a>
34
- {%- endif -%}
35
- </p>
36
- {%- endif -%}
37
-
38
- {%- if _author.bio -%}
39
- <p itemprop="description">{{ _author.bio }}</p>
40
- {%- endif -%}
41
-
42
- {%- include author-links.html author=_author -%}
43
-
44
- </div>
23
+ <div class="item__content">
24
+
25
+ {%- if _author.name -%}
26
+ <meta itemprop="name" content="{{ _author.name }}">
27
+ <p class="author-profile__name">
28
+ {%- if _author.url -%}
29
+ <meta itemprop="url" content="{{ _author.url }}">
30
+ <a href="{{ _author.url }}">
31
+ {%- endif -%}
32
+ {{ _author.name }}
33
+ {%- if _author.url -%}
34
+ </a>
35
+ {%- endif -%}
36
+ </p>
37
+ {%- endif -%}
38
+
39
+ {%- if _author.bio -%}
40
+ <p itemprop="description">{{ _author.bio }}</p>
41
+ {%- endif -%}
42
+ <div class="author-profile__links">
43
+ {%- include author-links.html author=_author -%}
44
+ </div>
45
+
46
+ </div>
45
47
  </div>
@@ -1,22 +1,13 @@
1
1
  {%- include snippets/locale-to-string.html locale=site.data.locale.LICENSE_ANNOUNCE -%}
2
2
  {%- assign _license_announce = __return -%}
3
3
 
4
- {%- assign _data_license = site.data.licenses-%}
5
- {%- if site.license -%}
6
- {%- assign _license = _data_license[site.license] -%}
7
- {%- endif -%}
8
- {%- if page.license != true -%}
9
- {%- assign _license = _data_license[page.license] -%}
10
- {%- endif -%}
4
+ {%- if include.license -%}
11
5
 
12
-
13
- {%- if _license -%}
14
-
15
- {%-assign _license_name = '<a itemprop="license" rel="license" href="[URL]">[NAME]</a>' | replace: "[URL]", _license.url | replace: "[NAME]", _license.name -%}
6
+ {%-assign _license_name = '<a itemprop="license" rel="license" href="[URL]">[NAME]</a>' | replace: "[URL]", include.license.url | replace: "[NAME]", include.license.name -%}
16
7
  <div class="license">
17
8
  <p>{{ _license_announce | replace: "[LICENSE]", _license_name }}
18
- <a rel="license" href="{{ _license.url }}">
19
- <img alt="{{ _license.name }}" src="{{ _license.image }}" />
9
+ <a rel="license" href="{{ include.license.url }}">
10
+ <img alt="{{ include.license.name }}" src="{{ include.license.image }}" />
20
11
  </a>
21
12
  </p>
22
13
  </div>
@@ -0,0 +1,47 @@
1
+ {%- include snippets/get-article-title.html article=include.article-%}
2
+ {%- assign _article_title = __return -%}
3
+
4
+ {%- if include.html != false -%}
5
+
6
+ {%- include snippets/assign.html
7
+ target=site.data.variables.default.page.show_title
8
+ source0=layout.show_title source1=include.article.show_title -%}
9
+ {%- assign _show_title = __return -%}
10
+
11
+ {%- include snippets/assign.html
12
+ target=site.data.variables.default.page.show_edit_on_github
13
+ source0=layout.show_edit_on_github source1=include.article.show_edit_on_github -%}
14
+ {%- assign _show_edit_on_github = __return -%}
15
+
16
+ <div class="article__header">
17
+ {%- if _show_title -%}
18
+ <header><h1>{{ _article_title }}</h1></header>
19
+ {%- else -%}
20
+ <header style="display:none;"><h1>{{ _article_title }}</h1></header>
21
+ {%- endif -%}
22
+ {%- if _show_edit_on_github -%}
23
+ {%- if site.repository and site.repository_tree -%}
24
+ {%- include snippets/is_collection.html page=include.article -%}
25
+ {%- assign _is_article_collection = __return -%}
26
+ {%- include snippets/locale-to-string.html locale=site.data.locale.POST_ON_GITHUB -%}
27
+ {%- assign _locale_post_on_github = __return -%}
28
+ {%- if _is_article_collection -%}
29
+ {%- include snippets/prepend-path.html path=include.article.path prepend_path=site.collections_dir -%}
30
+ {%- assign _article_path = __return -%}
31
+ {%- else -%}
32
+ {%- assign _article_path = include.article.path -%}
33
+ {%- endif -%}
34
+ {%- assign _github_path = site.repository | append: '/tree/' | append: site.repository_tree | append: '/' | append: _article_path | replace:'//','/' -%}
35
+ <span class="split-space">&nbsp;</span>
36
+ <a class="edit-on-github"
37
+ title="{{ _locale_post_on_github }}"
38
+ href="https://github.com/{{ _github_path }}">
39
+ <i class="far fa-edit"></i></a>
40
+ {%- endif -%}
41
+ {%- endif -%}
42
+ </div>
43
+ {%- endif -%}
44
+
45
+ {%- if include.semantic != false -%}
46
+ <meta itemprop="headline" content="{{ _article_title }}">
47
+ {%- endif -%}
@@ -1,67 +1,96 @@
1
- {%- include snippets/assign.html target=site.data.variables.default.pageview source0=page.pageview -%}
2
- {%- assign _pageview = __return -%}
1
+ {%- assign _author = site.data.authors[include.article.author] | default: site.author -%}
3
2
 
4
- {%- assign _paths_archive = site.paths.archive | default: site.data.variables.default.paths.archive -%}
3
+ {%- if include.html != false -%}
5
4
 
6
- {%- if include.article.author -%}
7
- {%- assign _author = site.data.authors[include.article.author] -%}
8
- {%- else -%}
9
- {%- assign _author = site.author -%}
10
- {%- endif -%}
5
+ {%- include snippets/assign.html
6
+ target=site.data.variables.default.page.show_date
7
+ source0=layout.show_date source1=include.article.show_date -%}
8
+ {%- assign _show_date = __return -%}
9
+ {%- if _show_date and include.article.date -%}
10
+ {%- assign _show_date = true -%}
11
+ {%- else -%}
12
+ {%- assign _show_date = false -%}
13
+ {%- endif -%}
11
14
 
15
+ {%- include snippets/assign.html
16
+ target=site.data.variables.default.page.show_tags
17
+ source0=layout.show_tags source1=include.article.show_tags -%}
18
+ {%- assign _show_tags = __return -%}
19
+ {%- if _show_tags and include.article.tags[0] -%}
20
+ {%- assign _show_tags = true -%}
21
+ {%- else -%}
22
+ {%- assign _show_tags = false -%}
23
+ {%- endif -%}
12
24
 
13
- <div class="article__info clearfix">
25
+ {%- assign _show_author = include.article.author -%}
14
26
 
15
- {%- if _author -%}
16
- <meta itemprop="author" content="{{ _author.name }}"/>
27
+ {%- include snippets/assign.html target=site.data.variables.default.page.pageview
28
+ source0=layout.pageview source1=page.pageview -%}
29
+ {%- assign _pageview = __return -%}
30
+ {%- if _pageview or include.show_pageview -%}
31
+ {%- assign _pageview = true -%}
32
+ {%- else -%}
33
+ {%- assign _pageview = false -%}
17
34
  {%- endif -%}
18
35
 
19
- {%- if include.article.tags[0] -%}
20
- <ul class="left-col menu">
36
+ {%- assign _paths_archive = site.paths.archive | default: site.data.variables.default.paths.archive -%}
21
37
 
22
- {%- assign _tag_path = _paths_archive | append: '?tag=' -%}
23
- {%- include snippets/prepend-baseurl.html path=_tag_path -%}
24
-
25
- {%- for _tag in include.article.tags -%}
26
- {%- assign _tag_path = __return -%}
27
- {%- assign _tag_encode = _tag | strip | url_encode } -%}
28
- <li>
29
- <a class="button button--secondary button--pill button--sm"
30
- href="{{ _tag_path | append: _tag_encode | replace: '//', '/' }}">{{ _tag }}</a>
31
- </li>
32
- {%- endfor -%}
33
- {%- assign _keywords = include.article.tags | join: ',' %}
34
- </ul>
35
- <meta itemprop="keywords" content="{{ _keywords }}">
36
- {%- endif -%}
38
+ {%- if _show_tags or _show_author or _show_date or _pageview -%}
39
+ <div class="article__info clearfix">
40
+ {%- if _show_tags -%}
37
41
 
42
+ <ul class="left-col menu">
43
+ {%- assign _tag_path = _paths_archive | append: '?tag=' -%}
44
+ {%- include snippets/prepend-baseurl.html path=_tag_path -%}
38
45
 
39
- {%- if include.article.author or include.article.date or _pageview or post -%}
40
- <ul class="right-col menu">
41
- {%- if include.article.author -%}
42
- <li><i class="fas fa-user"></i> <span>{{ _author.name }}</span></li>
46
+ {%- for _tag in include.article.tags -%}
47
+ {%- assign _tag_path = __return -%}
48
+ {%- assign _tag_encode = _tag | strip | url_encode } -%}
49
+ <li>
50
+ <a class="button button--secondary button--pill button--sm"
51
+ href="{{ _tag_path | append: _tag_encode | replace: '//', '/' }}">{{ _tag }}</a>
52
+ </li>
53
+ {%- endfor -%}
54
+ </ul>
43
55
  {%- endif -%}
44
56
 
45
- {%- if include.article.date -%}
46
- <li>
47
- {%- include snippets/locale-to-string.html locale=site.data.locale.ARTICLE_DATE_FORMAT -%}
48
- <i class="far fa-calendar-alt"></i> <span>{{ include.article.date | date: __return }}</span>
49
- <meta itemprop="datePublished" content="{{ include.article.date | date_to_xmlschema }}">
50
- </li>
51
- {%- endif -%}
57
+ {%- if _show_author or _show_date or _pageview -%}
58
+ <ul class="right-col menu">
59
+ {%- if _show_author -%}
60
+ <li><i class="fas fa-user"></i> <span>{{ _author.name }}</span></li>
61
+ {%- endif -%}
62
+
63
+ {%- if _show_date -%}
64
+ <li>
65
+ {%- include snippets/locale-to-string.html locale=site.data.locale.ARTICLE_DATE_FORMAT -%}
66
+ <i class="far fa-calendar-alt"></i> <span>{{ include.article.date | date: __return }}</span>
67
+ </li>
68
+ {%- endif -%}
52
69
 
53
- {%- if _pageview or include.show_pageview -%}
54
- {%- if site.pageview.provider -%}
55
- {%- include snippets/locale-to-string.html locale=site.data.locale.VIEWS -%}
56
- {%- assign _locale_views = __return -%}
57
- <li itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter">
58
- <link itemprop="interactionType" href="http://schema.org/WatchAction"/>
59
- <i class="far fa-eye"></i> <span class="js-pageview" data-page-key="{{ include.article.key }}">0</span> {{ _locale_views }}
60
- </li>
61
- {%- endif -%}
70
+ {%- if _pageview -%}
71
+ {%- if site.pageview.provider -%}
72
+ {%- include snippets/locale-to-string.html locale=site.data.locale.VIEWS -%}
73
+ {%- assign _locale_views = __return -%}
74
+ <li><i class="far fa-eye"></i> <span class="js-pageview" data-page-key="{{ include.article.key }}">0</span> {{ _locale_views }}</li>
75
+ {%- endif -%}
76
+ {%- endif -%}
77
+ </ul>
62
78
  {%- endif -%}
63
79
 
64
- </ul>
80
+ </div>
65
81
  {%- endif -%}
82
+ {%- endif -%}
83
+
66
84
 
67
- </div>
85
+ {%- if include.semantic != false -%}
86
+ {%- if _author -%}
87
+ <meta itemprop="author" content="{{ _author.name }}"/>
88
+ {%- endif -%}
89
+ {%- if include.article.date -%}
90
+ <meta itemprop="datePublished" content="{{ include.article.date | date_to_xmlschema }}">
91
+ {%- endif -%}
92
+ {%- if include.article.tags[0] -%}
93
+ {%- assign _keywords = include.article.tags | join: ',' %}
94
+ <meta itemprop="keywords" content="{{ _keywords }}">
95
+ {%- endif -%}
96
+ {%- endif -%}