minimal-mistakes-jekyll 4.27.3 → 4.28.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 (70) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +24 -1
  3. data/README.md +21 -17
  4. data/_data/ui-text.yml +38 -38
  5. data/_includes/analytics-providers/swetrix.html +15 -0
  6. data/_includes/analytics.html +2 -0
  7. data/_includes/archive-single.html +6 -5
  8. data/_includes/author-profile.html +11 -10
  9. data/_includes/breadcrumbs.html +5 -4
  10. data/_includes/category-list.html +3 -2
  11. data/_includes/comments-providers/scripts.html +3 -2
  12. data/_includes/comments-providers/staticman.html +6 -5
  13. data/_includes/comments-providers/staticman_v2.html +6 -5
  14. data/_includes/comments.html +22 -21
  15. data/_includes/copyright.html +3 -2
  16. data/_includes/copyright.js +3 -2
  17. data/_includes/documents-collection.html +2 -1
  18. data/_includes/feature_row +2 -1
  19. data/_includes/footer.html +6 -5
  20. data/_includes/head.html +2 -1
  21. data/_includes/masthead.html +4 -3
  22. data/_includes/nav_list +2 -1
  23. data/_includes/page__date.html +4 -3
  24. data/_includes/page__hero.html +4 -3
  25. data/_includes/page__meta.html +4 -3
  26. data/_includes/page__related.html +3 -2
  27. data/_includes/page__taxonomy.html +9 -6
  28. data/_includes/paginator-v1.html +7 -6
  29. data/_includes/paginator-v2.html +7 -6
  30. data/_includes/paginator.html +3 -2
  31. data/_includes/post_pagination.html +6 -5
  32. data/_includes/posts-category.html +2 -1
  33. data/_includes/posts-tag.html +2 -1
  34. data/_includes/posts-taxonomy.html +3 -2
  35. data/_includes/scripts.html +4 -3
  36. data/_includes/search/algolia-search-scripts.html +3 -2
  37. data/_includes/search/lunr-search-scripts.html +3 -2
  38. data/_includes/search/search_form.html +5 -4
  39. data/_includes/seo.html +20 -2
  40. data/_includes/sidebar-custom.html +0 -0
  41. data/_includes/sidebar.html +5 -3
  42. data/_includes/skip-links.html +5 -4
  43. data/_includes/social-share.html +6 -5
  44. data/_includes/tag-list.html +3 -2
  45. data/_includes/toc +3 -2
  46. data/_layouts/archive-taxonomy.html +5 -4
  47. data/_layouts/archive.html +4 -3
  48. data/_layouts/categories.html +2 -1
  49. data/_layouts/category.html +2 -1
  50. data/_layouts/collection.html +2 -1
  51. data/_layouts/default.html +8 -7
  52. data/_layouts/home.html +4 -3
  53. data/_layouts/posts.html +3 -2
  54. data/_layouts/search.html +6 -5
  55. data/_layouts/single.html +20 -19
  56. data/_layouts/splash.html +2 -1
  57. data/_layouts/tag.html +2 -1
  58. data/_layouts/tags.html +2 -1
  59. data/_sass/minimal-mistakes/_copyright.scss +3 -2
  60. data/_sass/minimal-mistakes/_notices.scss +12 -6
  61. data/_sass/minimal-mistakes/_page.scss +6 -0
  62. data/_sass/minimal-mistakes/_utilities.scss +20 -12
  63. data/_sass/minimal-mistakes/_variables.scss +8 -2
  64. data/_sass/minimal-mistakes/skins/_catppuccin_latte.scss +93 -0
  65. data/_sass/minimal-mistakes/skins/_catppuccin_mocha.scss +101 -0
  66. data/assets/images/catppuccin_latte-skin-archive-large.png +0 -0
  67. data/assets/images/catppuccin_mocha-skin-archive-large.png +0 -0
  68. data/assets/js/main.min.js +3 -2
  69. data/assets/js/main.min.js.map +1 -1
  70. metadata +8 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 89ca37e3bbcf2e58db9a4c10700c3f1ee858f4f234dec1684f24c2c5027f4dc6
4
- data.tar.gz: 1f97094ab56124562af819e2849728523f728826456007574f44e60570957aa7
3
+ metadata.gz: 7790081ce4031f489973223d19f9c435c34ce41a6cd80c6e1a9aa3c1bdeaa619
4
+ data.tar.gz: 76f0185fa59565910c4a760b8b2376880ac552118a4096a74c7af0f3cafe51cf
5
5
  SHA512:
6
- metadata.gz: 3160f83349e7941ff1670dde64add35cbd93b9ec959eb12be9fb5eab29aee6982421326580528b5c540324ef6ae272f2c951028b08eca2d0b7d336b902c3d035
7
- data.tar.gz: c227dd46ee820be367c1e75ee382fe7cdbb315103bbf2a38d07e6793ec17348dced570e1bc8763adce2762f24181978830b9f5e1e553cb3528fdaebdead23d97
6
+ metadata.gz: 504e4d8bb6ba04c590bd79f6ebbf1d5702878a0b620ab30b2941437171799fd37485b257dc5d45f2663b9c1cd297da17b8c677f7324e916238d1e67f61de5a51
7
+ data.tar.gz: d95654af1241e4b54d296e5e7b17334f6e16d01217b4b1f25fa649d47d82c5f651d6007b23cf377a33c769383db0cb388d2c28a3b63f836c5736580a11f10803
data/CHANGELOG.md CHANGED
@@ -1,6 +1,29 @@
1
1
  # Changelog
2
2
 
3
- ## Unreleased
3
+ ## [4.28.0](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.28.0)
4
+
5
+ ### Enhancements
6
+
7
+ - Updated Traditional Chinese translation (#5250)
8
+ - Add built-in support for jekyll-gfm-admonitions (#5312)
9
+ - Add Latte and Mocha skins from Catppuccin project (#5341)
10
+ - Add support for Swetrix, a GDPR-compliant analytics provider (#5344)
11
+ - Support resolving `ui-text` using `page.locale` when available (#5439)
12
+ - Add `aria-label` to all nav elements for WCAG compliance (#5442)
13
+ - Add IndieWeb microformat support and configurable footer `rel` attribute (#5443)
14
+ - Add `og:image:alt` and `twitter:image:alt` support (#5444)
15
+ - Add `fediverse:creator` meta tag for link preview attribution (#5445)
16
+ - Update hardcoded icon classes for Font Awesome 6 (#5446)
17
+ - Add missing brand-color rules for newer social platforms (#5447)
18
+ - Add custom sidebar content hook (#5448)
19
+ - Add config toggle to suppress taxonomy display on posts (#5449)
20
+ - Minor changes to the PR auto labeling GitHub Actions workflow
21
+
22
+ Special thanks to @bexelbie for their contributions in this release.
23
+
24
+ ### Bug Fixes
25
+
26
+ - Fix some social icon colors and missing Korean translations (#5103)
4
27
 
5
28
  ## [4.27.3](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.27.3)
6
29
 
data/README.md CHANGED
@@ -27,35 +27,39 @@ Minimal Mistakes is a flexible two-column Jekyll theme, perfect for building per
27
27
  - Optional [header images](https://mmistakes.github.io/minimal-mistakes/docs/layouts/#headers), [custom sidebars](https://mmistakes.github.io/minimal-mistakes/docs/layouts/#sidebars), [table of contents](https://mmistakes.github.io/minimal-mistakes/docs/helpers/#table-of-contents), [galleries](https://mmistakes.github.io/minimal-mistakes/docs/helpers/#gallery), related posts, [breadcrumb links](https://mmistakes.github.io/minimal-mistakes/docs/configuration/#breadcrumb-navigation-beta), [navigation lists](https://mmistakes.github.io/minimal-mistakes/docs/helpers/#navigation-list), and more.
28
28
  - Commenting support (powered by [Disqus](https://disqus.com/), [Facebook](https://developers.facebook.com/docs/plugins/comments), Google+, [Discourse](https://www.discourse.org/), static-based via [Staticman](https://staticman.net/), [utterances](https://utteranc.es/), and [giscus](https://giscus.app/)).
29
29
  - [Google Analytics](https://www.google.com/analytics/) support.
30
+ - [Swetrix](https://swetrix.com/) GDPR-compliant analytics support.
30
31
  - UI localized text in English (default), Arabic (عربي), Brazilian Portuguese (Português brasileiro), Bulgarian, Catalan, Chinese, Czech, Danish, Dutch, Finnish, French (Français), German (Deutsch), Greek, Hebrew, Hindi (हिंदी), Hungarian, Indonesian, Irish (Gaeilge), Italian (Italiano), Japanese, Kiswahili, Korean, Malayalam, Myanmar (Burmese), Nepali (Nepalese), Norwegian (Norsk), Persian (فارسی), Polish, Punjabi (ਪੰਜਾਬੀ), Romanian, Russian, Slovak, Spanish (Español), Swedish, Thai, Turkish (Türkçe), Ukrainian (Українська) and Vietnamese.
31
32
 
32
33
  ## Skins (color variations)
33
34
 
34
- This theme comes in nine different skins (in addition to the default one).
35
+ This theme comes in 11 different skins (in addition to the default one).
35
36
 
36
- | `air` | `contrast` | `dark` |
37
- | --- | --- | --- |
37
+ | `air` | `contrast` | `dark` |
38
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
38
39
  | [![air skin](https://mmistakes.github.io/minimal-mistakes/assets/images/air-skin-archive.png)](https://mmistakes.github.io/minimal-mistakes/assets/images/air-skin-archive-large.png) | [![contrast skin](https://mmistakes.github.io/minimal-mistakes/assets/images/contrast-skin-archive.png)](https://mmistakes.github.io/minimal-mistakes/assets/images/contrast-skin-archive-large.png) | [![dark skin](https://mmistakes.github.io/minimal-mistakes/assets/images/dark-skin-archive.png)](https://mmistakes.github.io/minimal-mistakes/assets/images/dark-skin-archive-large.png) |
39
40
 
40
- | `dirt` | `mint` | `sunrise` |
41
- | --- | --- | --- |
41
+ | `dirt` | `mint` | `sunrise` |
42
+ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
42
43
  | [![dirt skin](https://mmistakes.github.io/minimal-mistakes/assets/images/dirt-skin-archive.png)](https://mmistakes.github.io/minimal-mistakes/assets/images/dirt-skin-archive-large.png) | [![mint skin](https://mmistakes.github.io/minimal-mistakes/assets/images/mint-skin-archive.png)](https://mmistakes.github.io/minimal-mistakes/assets/images/mint-skin-archive-large.png) | [![sunrise skin](https://mmistakes.github.io/minimal-mistakes/assets/images/sunrise-skin-archive.png)](https://mmistakes.github.io/minimal-mistakes/assets/images/sunrise-skin-archive-large.png) |
43
44
 
44
- | `aqua` | `neon` | `plum` |
45
- | --- | --- | --- |
45
+ | `aqua` | `neon` | `plum` |
46
+ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
46
47
  | [![aqua skin](https://mmistakes.github.io/minimal-mistakes/assets/images/aqua-skin-archive.png)](https://mmistakes.github.io/minimal-mistakes/assets/images/aqua-skin-archive-large.png) | [![neon skin](https://mmistakes.github.io/minimal-mistakes/assets/images/neon-skin-archive.png)](https://mmistakes.github.io/minimal-mistakes/assets/images/neon-skin-archive-large.png) | [![plum skin](https://mmistakes.github.io/minimal-mistakes/assets/images/plum-skin-archive.png)](https://mmistakes.github.io/minimal-mistakes/assets/images/plum-skin-archive-large.png) |
47
48
 
49
+ | `catppuccin_latte` | `catppuccin_mocha` |
50
+ | --- | --- |
51
+ | ![catppuccin_latte skin](./assets/images/catppuccin_latte-skin-archive-large.png) | ![catppuccin_mocha skin](./assets/images/catppuccin_mocha-skin-archive-large.png) |
48
52
  ## Demo pages
49
53
 
50
- | Name | Description |
51
- | ------------------------------------------- | ----------------------------------------------------- |
52
- | [Post with Header Image][header-image-post] | A post with a large header image. |
54
+ | Name | Description |
55
+ | ----------------------------------------------- | ------------------------------------------------------------- |
56
+ | [Post with Header Image][header-image-post] | A post with a large header image. |
53
57
  | [HTML Tags and Formatting Post][html-tags-post] | A variety of common markup showing how the theme styles them. |
54
- | [Syntax Highlighting Post][syntax-post] | Post displaying highlighted code. |
55
- | [Post with a Gallery][gallery-post] | A post showing several images wrapped in `<figure>` elements. |
56
- | [Sample Collection Page][sample-collection] | Single page from a collection. |
57
- | [Categories Archive][categories-archive] | Posts grouped by category. |
58
- | [Tags Archive][tags-archive] | Posts grouped by tag. |
58
+ | [Syntax Highlighting Post][syntax-post] | Post displaying highlighted code. |
59
+ | [Post with a Gallery][gallery-post] | A post showing several images wrapped in `<figure>` elements. |
60
+ | [Sample Collection Page][sample-collection] | Single page from a collection. |
61
+ | [Categories Archive][categories-archive] | Posts grouped by category. |
62
+ | [Tags Archive][tags-archive] | Posts grouped by tag. |
59
63
 
60
64
  Additional sample posts are available under [posts archive][year-archive] on the demo site. Source files for these (and the entire demo site) can be found in [`/docs`](docs).
61
65
 
@@ -121,7 +125,7 @@ To install:
121
125
  bundle
122
126
  ```
123
127
 
124
- 4. Add `remote_theme: "mmistakes/minimal-mistakes@4.27.3"` to your `_config.yml` file. Remove any other `theme:` or `remote_theme:` entry.
128
+ 4. Add `remote_theme: "mmistakes/minimal-mistakes@4.28.0"` to your `_config.yml` file. Remove any other `theme:` or `remote_theme:` entry.
125
129
 
126
130
  <!--
127
131
  Dev note: The version number is currently hard-coded in these files:
@@ -286,4 +290,4 @@ Lunr is distributed under the terms of the [MIT License](http://opensource.org/l
286
290
 
287
291
  Minimal Mistakes incorporates [clipboard.js](https://clipboardjs.com/),
288
292
  Copyright (c) 2021 Zeno Rocha.
289
- Clipboard.js is distributed under the terms of the [MIT License](https://opensource.org/licenses/MIT).
293
+ Clipboard.js is distributed under the terms of the [MIT License](https://opensource.org/licenses/MIT).
data/_data/ui-text.yml CHANGED
@@ -429,53 +429,53 @@ zh-SG:
429
429
  <<: *DEFAULT_ZH_HANS
430
430
  # Taiwan (Traditional Chinese)
431
431
  zh-TW: &DEFAULT_ZH_HANT
432
- skip_links :
433
- skip_primary_nav : "轉至主導航欄"
434
- skip_content : "轉至内容"
435
- skip_footer : "轉至頁脚"
432
+ skip_links : "跳過連結"
433
+ skip_primary_nav : "跳至主導覽"
434
+ skip_content : "跳至內容"
435
+ skip_footer : "跳至頁尾"
436
436
  page : "頁面"
437
- pagination_previous : "前一頁"
438
- pagination_next : "後一頁"
437
+ pagination_previous : "上一頁"
438
+ pagination_next : "下一頁"
439
439
  breadcrumb_home_label : "首頁"
440
440
  breadcrumb_separator : "/"
441
- menu_label : "切換選單"
442
- search_label : "切換搜索"
443
- toc_label : "本頁"
441
+ menu_label : "選單"
442
+ search_label : "搜尋"
443
+ toc_label : "本頁目錄"
444
444
  ext_link_label : "外部連結"
445
445
  less_than : "少於"
446
446
  minute_read : "分鐘閱讀"
447
- share_on_label : "分享到"
447
+ share_on_label : "分享至"
448
448
  meta_label :
449
449
  tags_label : "標籤:"
450
450
  categories_label : "分類:"
451
451
  date_label : "更新時間:"
452
452
  comments_label : "留言"
453
- comments_title : "留言內容"
454
- more_label : "了解更多"
455
- related_label : "猜您有與趣"
456
- follow_label : "追蹤:"
457
- feed_label : "RSS Feed"
458
- powered_by : "Powered by"
453
+ comments_title : "留言"
454
+ more_label : "閱讀更多"
455
+ related_label : "您可能也會有興趣"
456
+ follow_label : "追蹤:"
457
+ feed_label : "訂閱 Feed"
458
+ powered_by : "採用技術:"
459
459
  website_label : "網站"
460
- email_label : "電子信箱"
460
+ email_label : "電子郵件"
461
461
  recent_posts : "最新文章"
462
- undefined_wpm : "_config.yml 中未定義 words_per_minute"
463
- comment_form_info : "您的電子信箱不會被公開. 必填部份已標記"
464
- comment_form_comment_label : "留言內容"
462
+ undefined_wpm : "設定檔 (_config.yml) 中缺少 `words_per_minute` 參數"
463
+ comment_form_info : "您的電子郵件不會被公開。必填欄位已標註星號 (*)"
464
+ comment_form_comment_label : "留言"
465
465
  comment_form_md_info : "支援 Markdown 語法。"
466
- comment_form_name_label : "名字"
467
- comment_form_email_label : "電子信箱帳號"
468
- comment_form_website_label : "網頁 (可選填)"
466
+ comment_form_name_label : "名稱"
467
+ comment_form_email_label : "電子郵件地址"
468
+ comment_form_website_label : "網站 (選填)"
469
469
  comment_btn_submit : "送出留言"
470
470
  comment_btn_submitted : "已送出"
471
471
  comment_success_msg : "感謝您的留言! 審核後將會顯示在站上。"
472
- comment_error_msg : "抱歉,部份資料輸入有問題。請確認資料填寫正確後再試一次。"
472
+ comment_error_msg : "抱歉,您提交的資料有誤。請確認所有必填欄位皆已正確填寫後再試一次。"
473
473
  loading_label : "載入中..."
474
- search_label_text : "輸入您要搜索的關鍵詞..."
475
- search_placeholder_text : "輸入您要搜索的關鍵詞..."
476
- search_algolia_no_results : "沒有結果"
477
- results_found : "條匹配的記錄"
478
- back_to_top : "回到頂部"
474
+ search_label_text : "輸入您要搜尋的關鍵字..."
475
+ search_placeholder_text : "輸入您要搜尋的關鍵字..."
476
+ search_algolia_no_results : "找不到結果"
477
+ results_found : "找到結果"
478
+ back_to_top : "回到頁首"
479
479
  zh-HK:
480
480
  <<: *DEFAULT_ZH_HANT
481
481
 
@@ -601,11 +601,11 @@ ko: &DEFAULT_KO
601
601
  page : "페이지"
602
602
  pagination_previous : "이전"
603
603
  pagination_next : "다음"
604
- breadcrumb_home_label : "Home"
604
+ breadcrumb_home_label : ""
605
605
  breadcrumb_separator : "/"
606
606
  menu_label : "토글 메뉴"
607
607
  search_label :
608
- toc_label : "On This Page"
608
+ toc_label : "목차"
609
609
  ext_link_label : "직접 링크"
610
610
  less_than : "최대"
611
611
  minute_read : "분 소요"
@@ -614,17 +614,17 @@ ko: &DEFAULT_KO
614
614
  tags_label : "태그:"
615
615
  categories_label : "카테고리:"
616
616
  date_label : "업데이트:"
617
- comments_label : "댓글남기기"
617
+ comments_label : "댓글 남기기"
618
618
  comments_title : "댓글"
619
619
  more_label : "더 보기"
620
620
  related_label : "참고"
621
621
  follow_label : "팔로우:"
622
622
  feed_label : "피드"
623
- powered_by : "Powered by"
623
+ powered_by : "제작 지원: "
624
624
  website_label : "웹사이트"
625
625
  email_label : "이메일"
626
626
  recent_posts : "최근 포스트"
627
- undefined_wpm : "Undefined parameter words_per_minute at _config.yml"
627
+ undefined_wpm : "_config.yml 파일에 words_per_minute 값이 설정되어 있지 않습니다."
628
628
  comment_form_info : "이메일은 공개되지 않습니다. 작성 필요 필드:"
629
629
  comment_form_comment_label : "댓글"
630
630
  comment_form_md_info : "마크다운을 지원합니다."
@@ -633,11 +633,11 @@ ko: &DEFAULT_KO
633
633
  comment_form_website_label : "웹사이트(선택사항)"
634
634
  comment_btn_submit : "댓글 등록"
635
635
  comment_btn_submitted : "등록됨"
636
- comment_success_msg : "감사합니다! 댓글이 머지된 확인하실 있습니다."
637
- comment_error_msg : "댓글 등록에 문제가 있습니다. 필요 필드를 작성했는지 확인하고 다시 시도하세요."
638
- loading_label : "로딩중..."
636
+ comment_success_msg : "댓글이 등록되었습니다. 등록된 내용은 관리자 승인 후에 표시됩니다."
637
+ comment_error_msg : "댓글이 등록되지 않았습니다. 필수 입력 항목이 빠졌는지 확인하고 다시 시도하세요."
638
+ loading_label : "로딩 중..."
639
639
  search_label_text :
640
- search_placeholder_text : "검색어를 입력하세요..."
640
+ search_placeholder_text : "검색어를 입력하세요."
641
641
  search_algolia_no_results :
642
642
  results_found : "개 결과 발견"
643
643
  back_to_top : "맨 위로 이동"
@@ -0,0 +1,15 @@
1
+ <script src="https://swetrix.org/swetrix.js" defer></script>
2
+ <script>
3
+ document.addEventListener("DOMContentLoaded", function () {
4
+ swetrix.init("{{ site.analytics.swetrix.tracking_id }}");
5
+ swetrix.trackViews();
6
+ });
7
+ </script>
8
+
9
+ <noscript>
10
+ <img
11
+ src="https://api.swetrix.com/log/noscript?pid={{ site.analytics.swetrix.tracking_id }}"
12
+ alt=""
13
+ referrerpolicy="no-referrer-when-downgrade"
14
+ />
15
+ </noscript>
@@ -7,6 +7,8 @@
7
7
  {% include /analytics-providers/google-universal.html %}
8
8
  {% when "google-gtag" %}
9
9
  {% include /analytics-providers/google-gtag.html %}
10
+ {% when "swetrix" %}
11
+ {% include /analytics-providers/swetrix.html %}
10
12
  {% when "custom" %}
11
13
  {% include /analytics-providers/custom.html %}
12
14
  {% endcase %}
@@ -1,3 +1,4 @@
1
+ {% assign locale = include.locale | default: site.locale %}
1
2
  {% if post.header.teaser %}
2
3
  {% capture teaser %}{{ post.header.teaser }}{% endcapture %}
3
4
  {% else %}
@@ -17,14 +18,14 @@
17
18
  <img src="{{ teaser | relative_url }}" alt="">
18
19
  </div>
19
20
  {% endif %}
20
- <h2 class="archive__item-title no_toc" itemprop="headline">
21
+ <h2 class="archive__item-title no_toc p-name" itemprop="headline">
21
22
  {% if post.link %}
22
- <a href="{{ post.link }}">{{ title }}</a> <a href="{{ post.url | relative_url }}" rel="permalink"><i class="fas fa-link" aria-hidden="true" title="permalink"></i><span class="sr-only">Permalink</span></a>
23
+ <a href="{{ post.link }}">{{ title }}</a> <a class="u-url" href="{{ post.url | relative_url }}" rel="permalink"><i class="fas fa-link" aria-hidden="true" title="permalink"></i><span class="sr-only">Permalink</span></a>
23
24
  {% else %}
24
- <a href="{{ post.url | relative_url }}" rel="permalink">{{ title }}</a>
25
+ <a class="u-url" href="{{ post.url | relative_url }}" rel="permalink">{{ title }}</a>
25
26
  {% endif %}
26
27
  </h2>
27
- {% include page__meta.html type=include.type %}
28
- {% if post.excerpt %}<p class="archive__item-excerpt" itemprop="description">{{ post.excerpt | markdownify | strip_html | truncate: 160 }}</p>{% endif %}
28
+ {% include page__meta.html locale=locale type=include.type %}
29
+ {% if post.excerpt %}<p class="archive__item-excerpt p-summary" itemprop="description">{{ post.excerpt | markdownify | strip_html | truncate: 160 }}</p>{% endif %}
29
30
  </article>
30
31
  </div>
@@ -1,3 +1,4 @@
1
+ {% assign locale = include.locale | default: site.locale %}
1
2
  {% assign author = page.author | default: page.authors[0] | default: site.author %}
2
3
  {% assign author = site.data.authors[author] | default: author %}
3
4
 
@@ -23,11 +24,11 @@
23
24
  </div>
24
25
 
25
26
  <div class="author__urls-wrapper">
26
- <button class="btn btn--inverse">{{ site.data.ui-text[site.locale].follow_label | remove: ":" | default: "Follow" }}</button>
27
+ <button class="btn btn--inverse">{{ site.data.ui-text[locale].follow_label | remove: ":" | default: "Follow" }}</button>
27
28
  <ul class="author__urls social-icons">
28
29
  {% if author.location %}
29
30
  <li itemprop="homeLocation" itemscope itemtype="https://schema.org/Place">
30
- <i class="fas fa-fw fa-map-marker-alt" aria-hidden="true"></i> <span itemprop="name" class="p-locality">{{ author.location }}</span>
31
+ <i class="fas fa-fw fa-location-dot" aria-hidden="true"></i> <span itemprop="name" class="p-locality">{{ author.location }}</span>
31
32
  </li>
32
33
  {% endif %}
33
34
 
@@ -42,7 +43,7 @@
42
43
  {% if author.uri %}
43
44
  <li>
44
45
  <a href="{{ author.uri }}" itemprop="url" rel="me">
45
- <i class="fas fa-fw fa-link" aria-hidden="true"></i><span class="label">{{ site.data.ui-text[site.locale].website_label | default: "Website" }}</span>
46
+ <i class="fas fa-fw fa-link" aria-hidden="true"></i><span class="label">{{ site.data.ui-text[locale].website_label | default: "Website" }}</span>
46
47
  </a>
47
48
  </li>
48
49
  {% endif %}
@@ -51,7 +52,7 @@
51
52
  <li>
52
53
  <a href="mailto:{{ author.email }}" rel="me" class="u-email">
53
54
  <meta itemprop="email" content="{{ author.email }}" />
54
- <i class="fas fa-fw fa-envelope-square" aria-hidden="true"></i><span class="label">{{ site.data.ui-text[site.locale].email_label | default: "Email" }}</span>
55
+ <i class="fas fa-fw fa-square-envelope" aria-hidden="true"></i><span class="label">{{ site.data.ui-text[locale].email_label | default: "Email" }}</span>
55
56
  </a>
56
57
  </li>
57
58
  {% endif %}
@@ -67,7 +68,7 @@
67
68
  {% if author.twitter %}
68
69
  <li>
69
70
  <a href="https://twitter.com/{{ author.twitter }}" itemprop="sameAs" rel="nofollow noopener noreferrer me">
70
- <i class="fab fa-fw fa-twitter-square" aria-hidden="true"></i><span class="label">Twitter</span>
71
+ <i class="fab fa-fw fa-square-x-twitter" aria-hidden="true"></i><span class="label">Twitter</span>
71
72
  </a>
72
73
  </li>
73
74
  {% endif %}
@@ -75,7 +76,7 @@
75
76
  {% if author.facebook %}
76
77
  <li>
77
78
  <a href="https://www.facebook.com/{{ author.facebook }}" itemprop="sameAs" rel="nofollow noopener noreferrer me">
78
- <i class="fab fa-fw fa-facebook-square" aria-hidden="true"></i><span class="label">Facebook</span>
79
+ <i class="fab fa-fw fa-square-facebook" aria-hidden="true"></i><span class="label">Facebook</span>
79
80
  </a>
80
81
  </li>
81
82
  {% endif %}
@@ -91,7 +92,7 @@
91
92
  {% if author.xing %}
92
93
  <li>
93
94
  <a href="https://www.xing.com/profile/{{ author.xing }}" itemprop="sameAs" rel="nofollow noopener noreferrer me">
94
- <i class="fab fa-fw fa-xing-square" aria-hidden="true"></i><span class="label">XING</span>
95
+ <i class="fab fa-fw fa-square-xing" aria-hidden="true"></i><span class="label">XING</span>
95
96
  </a>
96
97
  </li>
97
98
  {% endif %}
@@ -107,7 +108,7 @@
107
108
  {% if author.tumblr %}
108
109
  <li>
109
110
  <a href="https://{{ author.tumblr }}.tumblr.com" itemprop="sameAs" rel="nofollow noopener noreferrer me">
110
- <i class="fab fa-fw fa-tumblr-square" aria-hidden="true"></i><span class="label">Tumblr</span>
111
+ <i class="fab fa-fw fa-square-tumblr" aria-hidden="true"></i><span class="label">Tumblr</span>
111
112
  </a>
112
113
  </li>
113
114
  {% endif %}
@@ -147,7 +148,7 @@
147
148
  {% if author.lastfm %}
148
149
  <li>
149
150
  <a href="https://last.fm/user/{{ author.lastfm }}" itemprop="sameAs" rel="nofollow noopener noreferrer me">
150
- <i class="fab fa-fw fa-lastfm-square" aria-hidden="true"></i><span class="label">Last.fm</span>
151
+ <i class="fab fa-fw fa-square-lastfm" aria-hidden="true"></i><span class="label">Last.fm</span>
151
152
  </a>
152
153
  </li>
153
154
  {% endif %}
@@ -235,7 +236,7 @@
235
236
  {% if author.vine %}
236
237
  <li>
237
238
  <a href="https://vine.co/u/{{ author.vine }}" itemprop="sameAs" rel="nofollow noopener noreferrer me">
238
- <i class="fab fa-fw fa-vine" aria-hidden="true"></i><span class="label">{{ site.data.ui-text[site.locale].email_label | default: "Email" }}</span>
239
+ <i class="fab fa-fw fa-vine" aria-hidden="true"></i><span class="label">{{ site.data.ui-text[locale].email_label | default: "Email" }}</span>
239
240
  </a>
240
241
  </li>
241
242
  {% endif %}
@@ -1,3 +1,4 @@
1
+ {% assign locale = include.locale | default: site.locale %}
1
2
  {% case site.category_archive.type %}
2
3
  {% when "liquid" %}
3
4
  {% assign path_type = "#" %}
@@ -12,18 +13,18 @@
12
13
  {% assign crumb_path = site.category_archive.path %}
13
14
  {% endif %}
14
15
 
15
- <nav class="breadcrumbs">
16
+ <nav class="breadcrumbs" aria-label="Breadcrumb">
16
17
  <ol itemscope itemtype="https://schema.org/BreadcrumbList">
17
18
  {% assign crumbs = page.url | split: '/' %}
18
19
  {% assign i = 1 %}
19
20
  {% for crumb in crumbs offset: 1 %}
20
21
  {% if forloop.first %}
21
22
  <li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
22
- <a href="{{ '/' | relative_url }}" itemprop="item"><span itemprop="name">{{ site.data.ui-text[site.locale].breadcrumb_home_label | default: "Home" }}</span></a>
23
+ <a href="{{ '/' | relative_url }}" itemprop="item"><span itemprop="name">{{ site.data.ui-text[locale].breadcrumb_home_label | default: "Home" }}</span></a>
23
24
 
24
25
  <meta itemprop="position" content="{{ i }}" />
25
26
  </li>
26
- <span class="sep">{{ site.data.ui-text[site.locale].breadcrumb_separator | default: "/" }}</span>
27
+ <span class="sep">{{ site.data.ui-text[locale].breadcrumb_separator | default: "/" }}</span>
27
28
  {% endif %}
28
29
  {% if forloop.last %}
29
30
  <li class="current"{% if page.locale %} lang="{{ page.locale }}"{% endif %}>{{ page.title }}</li>
@@ -33,7 +34,7 @@
33
34
  <a href="{{ crumb | downcase | replace: '%20', '-' | prepend: path_type | prepend: crumb_path | relative_url }}" itemprop="item"><span itemprop="name">{{ crumb | url_decode | replace: '-', ' ' | capitalize }}</span></a>
34
35
  <meta itemprop="position" content="{{ i }}" />
35
36
  </li>
36
- <span class="sep">{{ site.data.ui-text[site.locale].breadcrumb_separator | default: "/" }}</span>
37
+ <span class="sep">{{ site.data.ui-text[locale].breadcrumb_separator | default: "/" }}</span>
37
38
  {% endif %}
38
39
  {% endfor %}
39
40
  </ol>
@@ -1,3 +1,4 @@
1
+ {% assign locale = include.locale | default: site.locale %}
1
2
  {% case site.category_archive.type %}
2
3
  {% when "liquid" %}
3
4
  {% assign path_type = "#" %}
@@ -9,11 +10,11 @@
9
10
  {% assign categories_sorted = page.categories | sort_natural %}
10
11
 
11
12
  <p class="page__taxonomy">
12
- <strong><i class="fas fa-fw fa-folder-open" aria-hidden="true"></i> {{ site.data.ui-text[site.locale].categories_label | default: "Categories:" }} </strong>
13
+ <strong><i class="fas fa-fw fa-folder-open" aria-hidden="true"></i> {{ site.data.ui-text[locale].categories_label | default: "Categories:" }} </strong>
13
14
  <span itemprop="keywords">
14
15
  {% for category_word in categories_sorted %}
15
16
  <a href="{{ category_word | slugify | prepend: path_type | prepend: site.category_archive.path | relative_url }}" class="page__taxonomy-item p-category" rel="tag">{{ category_word }}</a>{% unless forloop.last %}<span class="sep">, </span>{% endunless %}
16
17
  {% endfor %}
17
18
  </span>
18
19
  </p>
19
- {% endif %}
20
+ {% endif %}
@@ -1,3 +1,4 @@
1
+ {% assign locale = include.locale | default: site.locale %}
1
2
  {% if site.comments.provider and page.comments %}
2
3
  {% case site.comments.provider %}
3
4
  {% when "disqus" %}
@@ -7,9 +8,9 @@
7
8
  {% when "facebook" %}
8
9
  {% include /comments-providers/facebook.html %}
9
10
  {% when "staticman" %}
10
- {% include /comments-providers/staticman.html %}
11
+ {% include /comments-providers/staticman.html locale=locale %}
11
12
  {% when "staticman_v2" %}
12
- {% include /comments-providers/staticman_v2.html %}
13
+ {% include /comments-providers/staticman_v2.html locale=locale %}
13
14
  {% when "utterances" %}
14
15
  {% include /comments-providers/utterances.html %}
15
16
  {% when "giscus" %}
@@ -1,3 +1,4 @@
1
+ {% assign locale = include.locale | default: site.locale %}
1
2
  {% if site.repository and site.staticman.branch %}
2
3
  <script>
3
4
  (function ($) {
@@ -5,7 +6,7 @@
5
6
  var form = this;
6
7
 
7
8
  $(form).addClass('disabled');
8
- $('#comment-form-submit').html('<i class="fas fa-spinner fa-spin fa-fw"></i> {{ site.data.ui-text[site.locale].loading_label | default: "Loading..." }}');
9
+ $('#comment-form-submit').html('<i class="fas fa-spinner fa-spin fa-fw"></i> {{ site.data.ui-text[locale].loading_label | default: "Loading..." }}');
9
10
 
10
11
  $.ajax({
11
12
  type: $(this).attr('method'),
@@ -13,17 +14,17 @@
13
14
  data: $(this).serialize(),
14
15
  contentType: 'application/x-www-form-urlencoded',
15
16
  success: function (data) {
16
- $('#comment-form-submit').html('{{ site.data.ui-text[site.locale].comment_btn_submitted | default: "Submitted" }}');
17
+ $('#comment-form-submit').html('{{ site.data.ui-text[locale].comment_btn_submitted | default: "Submitted" }}');
17
18
  $('.page__comments-form .js-notice').removeClass('notice--danger');
18
19
  $('.page__comments-form .js-notice').addClass('notice--success');
19
- showAlert('{{ site.data.ui-text[site.locale].comment_success_msg | default: "Thanks for your comment! It will show on the site once it has been approved." }}');
20
+ showAlert('{{ site.data.ui-text[locale].comment_success_msg | default: "Thanks for your comment! It will show on the site once it has been approved." }}');
20
21
  },
21
22
  error: function (err) {
22
23
  console.log(err);
23
- $('#comment-form-submit').html('{{ site.data.ui-text[site.locale].comment_btn_submit | default: "Submit Comment" }}');
24
+ $('#comment-form-submit').html('{{ site.data.ui-text[locale].comment_btn_submit | default: "Submit Comment" }}');
24
25
  $('.page__comments-form .js-notice').removeClass('notice--success');
25
26
  $('.page__comments-form .js-notice').addClass('notice--danger');
26
- showAlert('{{ site.data.ui-text[site.locale].comment_error_msg | default: "Sorry, there was an error with your submission. Please make sure all required fields have been completed and try again." }}');
27
+ showAlert('{{ site.data.ui-text[locale].comment_error_msg | default: "Sorry, there was an error with your submission. Please make sure all required fields have been completed and try again." }}');
27
28
  $(form).removeClass('disabled');
28
29
  }
29
30
  });
@@ -1,3 +1,4 @@
1
+ {% assign locale = include.locale | default: site.locale %}
1
2
  {% if site.repository and site.comments.staticman.branch %}
2
3
  <script>
3
4
  (function ($) {
@@ -5,7 +6,7 @@
5
6
  var form = this;
6
7
 
7
8
  $(form).addClass('disabled');
8
- $('#comment-form-submit').html('<i class="fas fa-spinner fa-spin fa-fw"></i> {{ site.data.ui-text[site.locale].loading_label | default: "Loading..." }}');
9
+ $('#comment-form-submit').html('<i class="fas fa-spinner fa-spin fa-fw"></i> {{ site.data.ui-text[locale].loading_label | default: "Loading..." }}');
9
10
 
10
11
  $.ajax({
11
12
  type: $(this).attr('method'),
@@ -13,17 +14,17 @@
13
14
  data: $(this).serialize(),
14
15
  contentType: 'application/x-www-form-urlencoded',
15
16
  success: function (data) {
16
- $('#comment-form-submit').html('{{ site.data.ui-text[site.locale].comment_btn_submitted | default: "Submitted" }}');
17
+ $('#comment-form-submit').html('{{ site.data.ui-text[locale].comment_btn_submitted | default: "Submitted" }}');
17
18
  $('.page__comments-form .js-notice').removeClass('notice--danger');
18
19
  $('.page__comments-form .js-notice').addClass('notice--success');
19
- showAlert('{{ site.data.ui-text[site.locale].comment_success_msg | default: "Thanks for your comment! It will show on the site once it has been approved." }}');
20
+ showAlert('{{ site.data.ui-text[locale].comment_success_msg | default: "Thanks for your comment! It will show on the site once it has been approved." }}');
20
21
  },
21
22
  error: function (err) {
22
23
  console.log(err);
23
- $('#comment-form-submit').html('{{ site.data.ui-text[site.locale].comment_btn_submit | default: "Submit Comment" }}');
24
+ $('#comment-form-submit').html('{{ site.data.ui-text[locale].comment_btn_submit | default: "Submit Comment" }}');
24
25
  $('.page__comments-form .js-notice').removeClass('notice--success');
25
26
  $('.page__comments-form .js-notice').addClass('notice--danger');
26
- showAlert('{{ site.data.ui-text[site.locale].comment_error_msg | default: "Sorry, there was an error with your submission. Please make sure all required fields have been completed and try again." }}');
27
+ showAlert('{{ site.data.ui-text[locale].comment_error_msg | default: "Sorry, there was an error with your submission. Please make sure all required fields have been completed and try again." }}');
27
28
  $(form).removeClass('disabled');
28
29
  }
29
30
  });