jekyll-theme-profile 1.12.5 → 1.13.1

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 (44) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +21 -0
  3. data/_config.yml +6 -4
  4. data/_includes/breadcrumbs.html +4 -1
  5. data/_includes/category_index.html +18 -0
  6. data/_includes/collection-menu.html +1 -1
  7. data/_includes/custom-colors.html +2 -2
  8. data/_includes/footer.html +1 -1
  9. data/_includes/head.html +4 -2
  10. data/_includes/header-appbar.html +3 -3
  11. data/_includes/header-sidebar.html +4 -4
  12. data/_includes/header-stacked.html +1 -1
  13. data/_includes/header-topbar.html +4 -4
  14. data/_includes/link-card.html +16 -2
  15. data/_includes/mini-repo-info-card.html +6 -4
  16. data/_includes/nav-overlay.html +2 -2
  17. data/_includes/navbar-underline.html +8 -5
  18. data/_includes/post-card.html +1 -0
  19. data/_includes/post-feature-card.html +4 -4
  20. data/_includes/post-gallery.html +15 -11
  21. data/_includes/post-index.html +13 -8
  22. data/_includes/post-timeline-card.html +26 -3
  23. data/_includes/post-timeline.html +15 -22
  24. data/_includes/related.html +1 -1
  25. data/_includes/repo-card.html +16 -12
  26. data/_includes/user-metadata.html +12 -6
  27. data/_layouts/category_index.html +3 -2
  28. data/_layouts/category_layout.html +1 -1
  29. data/_layouts/default.html +7 -6
  30. data/_layouts/docs.html +126 -81
  31. data/_layouts/docs_index.html +32 -0
  32. data/_layouts/page.html +8 -8
  33. data/_layouts/paginate.html +1 -1
  34. data/_layouts/post.html +18 -19
  35. data/_layouts/profile.html +32 -32
  36. data/_layouts/tag_index.html +3 -2
  37. data/_layouts/tags.html +1 -1
  38. data/_sass/_main.scss +10 -0
  39. data/assets/css/theme.scss +4 -1
  40. data/assets/js/topbar.js +19 -0
  41. metadata +12 -67
  42. data/README.md +0 -32
  43. data/_includes/thumbnail.html +0 -19
  44. data/assets/js/timeline.js +0 -49
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4d01be2e0ffa77162cec3390d07e694a86558e8aa3a32fb76bceabf61b72dbd2
4
- data.tar.gz: 969ada5c1e521902c3c6fd8e2b09754a92847d743384842bd1c2818a018f4d0b
3
+ metadata.gz: afcd53f8abaadd8c6e526c6a7afad3da4ef6f5478538d8e89a6a964cd3631eb5
4
+ data.tar.gz: 2bef80c5073cca0a970cb784b76482bd19cfd1c9a513e3d1d314e059ecb27f20
5
5
  SHA512:
6
- metadata.gz: 9b32f779f85828007a691eef91009d1ba85b58dfbe3a17778c3bf2734d7d0b81546072835fa9fb7707b8a615835ab3466986aa34b7455d25c415ab63184cc246
7
- data.tar.gz: 3e597175049254b21b61724c6aabc51a41b35e509b906f87ed305ec56b8b85323bcb29176db06a30c515b8afb8b04a1444a119731b92d35ff0f7d9c936cf2f36
6
+ metadata.gz: b6705ac78bc0868eaf3684f3ae576f437f4ca2c30a53d06085ca8229e307a8255593480635e73b729db75e8ad9293dbe97e0b7a5a1737ab57b541bf55fec8a7a
7
+ data.tar.gz: 1e4e2a51a74ec50e803b625f5b78870da9d5520694b1d965f9615b9fb5a1c798296d6a0df10bee88c28a265ccf271e77751646b32f2642ad930f3ea0f19a6cf8
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Allison Thackston
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/_config.yml CHANGED
@@ -3,7 +3,7 @@ theme: jekyll-theme-profile
3
3
  title: Jekyll Theme Profile
4
4
  description: Theme built with jekyll-theme-profile
5
5
  # image: /assets/img/social-preview.png
6
- # repository: athackst/jekyll-theme-profile
6
+ repository: PrimerPages/jekyll-theme-profile
7
7
 
8
8
  defaults:
9
9
  - scope:
@@ -96,10 +96,11 @@ related_by: "tags or categories"
96
96
 
97
97
  # ########### Plugin settings ###############
98
98
  plugins:
99
- - jekyll-github-metadata
100
- - jekyll-octicons
99
+ # - jekyll-github-metadata
100
+ # - jekyll-meta
101
+ # - jekyll-octicons
101
102
  - jekyll-seo-tag
102
- - jekyll-toc
103
+ # - jekyll-toc
103
104
  - jemoji
104
105
 
105
106
  ####################
@@ -130,3 +131,4 @@ exclude:
130
131
  - Gemfile.lock
131
132
  - node_modules
132
133
  - vendor/
134
+ - integration/
@@ -11,6 +11,9 @@
11
11
  </li>
12
12
  {%- continue %}
13
13
  {%- endif %}
14
+ {%- if crumb == crumbs.last %}
15
+ {%- continue %}
16
+ {%- endif %}
14
17
  {%- assign index_url = url | append: crumb | append: "/index.html" %}
15
18
  {%- assign isa_index = site.pages | where: "url", index_url | first %}
16
19
  {%- assign folder_url = url | append: crumb | append: "/" %}
@@ -52,7 +55,7 @@
52
55
  {{ nice_crumb }}
53
56
  </li>
54
57
  {%- endif %}
55
- {%- unless crumb == crumbs.last %}{%- assign url = url | append: "/" %}{%- endunless %}
58
+ {%- assign url = url | append: "/" %}
56
59
  {%- endfor %}
57
60
  </ol>
58
61
  </nav>
@@ -0,0 +1,18 @@
1
+ {% comment %}
2
+ Required:
3
+ - category (String)
4
+ - pages (Array of documents)
5
+ =====================================
6
+ {% endcomment %}
7
+ {%- assign entries = include.pages %}
8
+ {%- assign category = include.category %}
9
+ <div class="d-flex flex-column col-12 col-sm-6 col-lg-4 col-xl-3 pb-4">
10
+ <h3 class="h3">{{ category | capitalize }}</h3>
11
+ <div class="pt-2 mb-4 text-normal">
12
+ <ul class="list-style-none pl-0">
13
+ {% for entry in entries %}
14
+ <li><a class="pt-2" href="{{ entry.url | relative_url }}">{{ entry.title }}</a></li>
15
+ {% endfor %}
16
+ </ul>
17
+ </div>
18
+ </div>
@@ -57,7 +57,7 @@
57
57
  </div>
58
58
  <div class="d-flex flex-justify-end">
59
59
  <button class="SelectMenu-closeButton close-menu" type="button">
60
- {% octicon x height: 16 %}
60
+ <span class="octicon octicon-x-16"></span>
61
61
  </button>
62
62
  </div>
63
63
  </div>
@@ -23,7 +23,7 @@ body {
23
23
  --overlay-color: {{ dark_overlay }};
24
24
  }
25
25
  @media(prefers-color-scheme: dark) {
26
- [data-color-mode='auto'][data-dark-theme='dark_dimmed'] {
26
+ [data-color-mode='auto'] {
27
27
  --overlay-color: {{ dark_overlay }};
28
28
  }
29
29
  }
@@ -35,7 +35,7 @@ body {
35
35
  }
36
36
 
37
37
  @media(prefers-color-scheme: light) {
38
- [data-color-mode='auto'][data-light-theme='light'] {
38
+ [data-color-mode='auto'] {
39
39
  --overlay-color: {{ light_overlay }};
40
40
  }
41
41
  }
@@ -6,7 +6,7 @@
6
6
  {%- endif %}
7
7
  <div class="flex-1"></div>
8
8
  <div class="flex-0 mx-auto px-4">
9
- <div>Made with <a href="https://www.althack.dev/jekyll-theme-profile/">jekyll theme profile</a></div>
9
+ <div>Made with <a href="https://primerpages.github.io/jekyll-theme-profile/">jekyll theme profile</a></div>
10
10
  </div>
11
11
  </div>
12
12
  </div>
data/_includes/head.html CHANGED
@@ -7,7 +7,9 @@
7
7
  {% seo %}
8
8
 
9
9
  <link href="{{ '/assets/css/theme.css' | relative_url }}" rel="stylesheet" type="text/css">
10
- <link href="{{ '/assets/css/style.css' | relative_url }}" rel="stylesheet" type="text/css">
10
+ {% if site.css %}<link href="{{ site.css }}" rel="stylesheet" type="text/css">
11
+ {% else %}<link href="{{ '/assets/css/style.css' | relative_url }}" rel="stylesheet" type="text/css">
12
+ {% endif %}
11
13
  <link rel="icon" type="image/x-icon" href="{{ favicon | relative_url}}">
12
14
 
13
15
 
@@ -26,7 +28,7 @@
26
28
  <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
27
29
  <script src="{{ '/assets/js/theme-toggle.js' | relative_url }}"></script>
28
30
  <script src="{{ '/assets/js/anchor-links.js' | relative_url }}"></script>
29
- <script src="{{ '/assets/js/timeline.js' | relative_url }}"></script>
31
+ <script src="{{ '/assets/js/topbar.js' | relative_url }}"></script>
30
32
 
31
33
  {%- include custom-colors.html %}
32
34
 
@@ -10,14 +10,14 @@
10
10
  </div>
11
11
  {%- endif %}
12
12
  <div tabindex="-1" class="d-flex flex-1 ml-3" id="github-logo">
13
- <a href="{{ site.baseurl }}/" class="AppHeader-link d-flex flex-items-center no-underline mr-3">
14
- {% octicon mark-github height:32 %}
13
+ <a href="{{ site.baseurl }}/" class="AppHeader-link d-flex flex-items-center no-underline mr-3 h1">
14
+ <span class="octicon octicon-mark-github-24"></span>
15
15
  <span class="h4 text-semibold mx-3">{{ name }}</span>
16
16
  </a>
17
17
  </div>
18
18
  <div class="AppHeader-item d-flex flex-items-center">
19
19
  {% include toggle.html %}
20
- {%- if site.repo_info %}
20
+ {%- if site.repo_info and site.github %}
21
21
  <div class="AppHeader-item hide-sm">
22
22
  {% include mini-repo-info-card.html class="AppHeader-link no-underline" %}
23
23
  </div>
@@ -17,9 +17,9 @@
17
17
  </script>
18
18
  <div class="Header d-flex border-right flex-items-start p-0 flex-justify-end position-sticky background-fixed top-0">
19
19
  <div class="flex-column flex-1 position-sticky top-0">
20
- <div class="Toolbar topbar d-flex flex-row py-3 flex-lg-justify-end flex-justify-start">
20
+ <div class="Toolbar topbar d-flex flex-row p-3 flex-lg-justify-end flex-justify-start">
21
21
  <div class="Toolbar-expand d-flex flex-justify-center d-none">
22
- <button id="sidebar-btn" class="btn-octicon mr-2">{% octicon chevron-right height:16 %}</button>
22
+ <button id="sidebar-btn" class="btn-octicon mr-2"><span class="octicon octicon-chevron-right-16"></span></button>
23
23
  </div>
24
24
  <div class="d-flex flex-justify-center d-lg-none">
25
25
  {%- include nav-overlay.html %}
@@ -28,7 +28,7 @@
28
28
  {% include toggle.html %}
29
29
  </div>
30
30
  <div class="Toolbar-collapse d-flex flex-justify-center d-none d-lg-block">
31
- <button id="toolbar-btn" class="btn-octicon mr-2">{% octicon chevron-left height:16 %}</button>
31
+ <button id="toolbar-btn" class="btn-octicon mr-2"><span class="octicon octicon-chevron-left-16"></span></button>
32
32
  </div>
33
33
  </div>
34
34
  <div class="Sidebar d-none d-lg-block Layout Layout-sidebar Layout--sidebar-wide">
@@ -36,7 +36,7 @@
36
36
  <div class="px-5 py-2">
37
37
  {%- include masthead.html size="128px" %}
38
38
  </div>
39
- {%- if site.repo_info %}
39
+ {%- if site.repo_info and site.github %}
40
40
  <div class="py-2">
41
41
  {% include mini-repo-info-card.html class="Header-link no-underline" %}
42
42
  </div>
@@ -1,6 +1,6 @@
1
1
  <div class="Profile text-center mt-3">
2
2
  {%- include masthead.html %}
3
- {%- if site.repo_info %}
3
+ {%- if site.repo_info and site.github %}
4
4
  <div class="py-2">
5
5
  {% include mini-repo-info-card.html class="AppHeader-link no-underline" %}
6
6
  </div>
@@ -12,16 +12,16 @@
12
12
  <div class="flex-1">
13
13
  <div class="d-flex">
14
14
  <div class="Header-item">
15
- <button id="expansion-btn" class="btn-octicon mr-2 d-sm-none">{% octicon three-bars height:16 %}</button>
16
- <a href="{{ site.baseurl }}/" class="Header-link f4 d-flex flex-items-center">
17
- {% octicon mark-github height:32 %}
15
+ <button id="expansion-btn" class="btn-octicon mr-2 d-sm-none"><span class="octicon octicon-three-bars-16"></span></button>
16
+ <a href="{{ site.baseurl }}/" class="Header-link h1 f4 d-flex flex-items-center">
17
+ <span class="octicon octicon-mark-github-24"></span>
18
18
  </a>
19
19
  </div>
20
20
  <a href="{{ site.baseurl }}/" class="Header-item Header-link Header-item--full">{{ name }}</a>
21
21
  <div class="Header-item">
22
22
  {% include toggle.html %}
23
23
  </div>
24
- {%- if site.repo_info %}
24
+ {%- if site.repo_info and site.github %}
25
25
  <div class="Header-item hide-sm">
26
26
  {% include mini-repo-info-card.html class="Header-link" %}
27
27
  </div>
@@ -12,13 +12,27 @@ This builds a link card
12
12
  {%- endcomment %}
13
13
 
14
14
  {%- assign link = include.link %}
15
+ {%- assign thumbnail = nil %}
16
+
17
+ {%- if link.thumbnail %}
18
+ {%- capture thumbnail %}
19
+ <img src="{{ link.thumbnail | relative_url }}" width="48" height="48"
20
+ class="rounded-2 box-shadow-none img-cover float-left" alt="{{ name }}">
21
+ {%- endcapture %}
22
+ {%- elsif link.octicon %}
23
+ {%- capture thumbnail %}
24
+ <div class="ml-2 h1">
25
+ <span class="octicon octicon-{{link.octicon}}-16"></span>
26
+ </div>
27
+ {%- endcapture %}
28
+ {%- endif %}
15
29
 
16
30
  {%- if link.url %}
17
31
  <a href="{{ link.url | relative_url }}"
18
32
  class="Link Link-btn d-flex flex-justify-between flex-items-center hover-grow no-underline border rounded-3 p-2"
19
33
  {% if link.url contains "http" %}target="_blank" rel="noopener noreferrer"{% endif %}>
20
34
  <div class="avatar-7">
21
- {% include thumbnail.html thumbnail=link.thumbnail octicon = link.octicon %}
35
+ {{ thumbnail }}
22
36
  </div>
23
37
  <div class="p-2 flex-1">
24
38
  <p class="f3 text-center mb-0">{{ link.name }}</p>
@@ -28,7 +42,7 @@ This builds a link card
28
42
  <div class="Link-text github-component position-relative height-full d-flex flex-column text-center p-1">
29
43
  <div class="d-inline-flex flex-items-center">
30
44
  <div class="avatar-7">
31
- {% include thumbnail.html thumbnail=link.thumbnail octicon = link.octicon %}
45
+ {{ thumbnail }}
32
46
  </div>
33
47
  <div class="p-2 flex-1">
34
48
  <p class="f3 lh-condensed text-center mt-1">{{ link.name }}</p>
@@ -3,7 +3,7 @@
3
3
  <a href="{{ site.github.repository_url }}" class="{{ include.class }} tooltipped tooltipped-s" aria-label="Go to repository">
4
4
  <div class="d-flex flex-row flex-justify-center Header-item">
5
5
 
6
- <div class="mr-2">{% octicon git-branch height: 32 %}</div>
6
+ <div class="mr-2 h2"><span class="octicon octicon-git-branch-24"></span></div>
7
7
  <div>
8
8
  <div>
9
9
  {{ site.repository }}
@@ -11,11 +11,13 @@
11
11
  <div class="d-flex flex-row">
12
12
  {%- if site.github.latest_release %}
13
13
  <div class="mr-3">
14
- <span>{% octicon tag height: 12 %} {{ site.github.latest_release.tag_name}}</span>
14
+ <span><span class="octicon octicon-tag-16"></span> {{ site.github.latest_release.tag_name}}</span>
15
15
  </div>
16
16
  {%- endif %}
17
- <div class="mr-3"><span>{% octicon star height: 12 %} {{ repo.stargazers_count }}</span></div>
18
- <div class="mr-0"><span>{% octicon repo-forked height: 12 %} {{ repo.forks_count }}</span></div>
17
+ {% if repo %}
18
+ <div class="mr-3"><span><span class="octicon octicon-star-16"></span> {{ repo.stargazers_count }}</div>
19
+ <div class="mr-0"><span><span class="octicon octicon-repo-forked-16"></span> {{ repo.forks_count }}</span></div>
20
+ {% endif %}
19
21
  </div>
20
22
  </div>
21
23
 
@@ -30,14 +30,14 @@
30
30
  </div>
31
31
  <div class="d-flex flex-justify-end">
32
32
  <button class="SelectMenu-closeButton close-menu" type="button">
33
- {% octicon x height: 16 %}
33
+ <span class="octicon octicon-x-16"></span>
34
34
  </button>
35
35
  </div>
36
36
  </div>
37
37
 
38
38
  <div class="SelectMenu-list">
39
39
  {%- for nav_item in site.nav %}
40
- <a href="{{ nav_item.url }}" class="SelectMenu-item" role="menuitem"{% if page.url contains nav_item.url %} aria-current="page"{% endif %}>{{ nav_item.name }}</a>
40
+ <a href="{{ site.baseurl }}{{ nav_item.url }}" class="SelectMenu-item" role="menuitem"{% if page.url contains nav_item.url %} aria-current="page"{% endif %}>{{ nav_item.name }}</a>
41
41
  {%- endfor %}
42
42
  </div>
43
43
  <div class="SelectMenu-footer">
@@ -1,11 +1,14 @@
1
1
  <nav class="UnderlineNav">
2
2
  <ul class="UnderlineNav-body flex-row list-style-none">
3
- {%- for nav_item in site.nav %}
3
+ {%- for nav_item in site.nav %}
4
4
  <li class="d-inline-flex">
5
- <a href="{{ nav_item.url | relative_url }}" class="UnderlineNav-item m-2" {% if page.url contains nav_item.url %}aria-current="page"{% endif %}>
6
- {{ nav_item.name }}
7
- </a>
5
+ <a href="{{ nav_item.url | relative_url }}" class="UnderlineNav-item m-2"
6
+ {% if page.url == nav_item.url or (nav_item.url != '/' and page.url contains nav_item.url) %}
7
+ aria-current="page"
8
+ {% endif %}>
9
+ {{ nav_item.name }}
10
+ </a>
8
11
  </li>
9
- {%- endfor %}
12
+ {%- endfor %}
10
13
  </ul>
11
14
  </nav>
@@ -1,6 +1,7 @@
1
1
  {%- assign image = post.image | default: site.image %}
2
2
  {%- assign excerpt = post.description | default: post.excerpt %}
3
3
  {%- assign border = include.border %}
4
+ <!--Post card-->
4
5
  <div class="col-sm-6 col-lg-4 ">
5
6
  <div class="py-4 d-flex flex-column {{ border }}">
6
7
  <div class="image-container">
@@ -1,15 +1,15 @@
1
1
  {%- assign image = post.image | default: site.image %}
2
2
  {%- assign excerpt = post.description | default: post.excerpt %}
3
-
4
- <div class="py-4 d-flex flex-column flex-md-row flex-md-row-reverse p-responsive col-12">
5
- <div class="col-12 col-lg-8 p-responsive">
3
+ <!-- Post feature card -->
4
+ <div class="d-flex flex-column flex-md-row flex-md-row-reverse py-4 col-12">
5
+ <div class="col-12 col-lg-8">
6
6
  <div class="image-container">
7
7
  <a href="{{ post.url | relative_url }}">
8
8
  <img class="rounded-2" src="{{ image | relative_url }}" width="800" height="425" alt="{{ post.title }}">
9
9
  </a>
10
10
  </div>
11
11
  </div>
12
- <div class="col-12 col-lg-4 pt-lg-4 p-responsive">
12
+ <div class="col-12 col-lg-4 pt-lg-4">
13
13
  <h3 class="h4-mktg mb-12px">
14
14
  <a class="Link--primary" href="{{ post.url | relative_url }}">{{ post.title }}</a>
15
15
  </h3>
@@ -1,17 +1,19 @@
1
1
  {%- assign collection = include.collection %}
2
- {%- assign collection_permalink = include.collection_permalink | default: ':name' %}
3
- {%- assign replace_value = include.replace_value | default: ':name' %}
4
- {%- assign per_section = include.per_section | default: 3 %}
2
+ {%- assign collection_permalink = include.collection_permalink %}
3
+ {%- assign replace_value = include.replace_value %}
5
4
 
6
5
  {%- for section in collection %}
7
6
  {%- assign section_name = section | first %}
8
7
  {%- assign section_slug = section_name | slugify %}
9
8
  {%- assign section_posts = section | last %}
9
+ {%- assign per_section = include.per_section | default: section_posts.size %}
10
10
  <div class="section-heading d-flex flex-items-center flex-justify-between mb-4 mb-lg-7">
11
11
  <h2 class="h6-mktg border-bottom-0">{{ section_name | capitalize }}</h2>
12
- {%- if section_posts.size > per_section %}
12
+ {%- if section_posts.size > per_section and collection_permalink and replace_value %}
13
13
  <div class="d-none d-lg-flex flex-items-center">
14
- <a href="{{ collection_permalink | replace: replace_value, section_slug | relative_url }}" class="Link--primary arrow-target-mktg text-semibold">View all {% octicon chevron-right height:16 %}</a>
14
+ <a href="{{ collection_permalink | replace: replace_value, section_slug | relative_url }}"
15
+ class="Link--primary arrow-target-mktg text-semibold">View all
16
+ <span class="octicon octicon-chevron-right-16"></span></a>
15
17
  </div>
16
18
  {%- endif %}
17
19
  </div>
@@ -22,24 +24,26 @@
22
24
  {%- assign image_class = "col-md-7 col-xl-9" %}
23
25
  {%- assign text_class = "col-md-5 col-xl-3" %}
24
26
  {%- endif %}
25
- <div class="d-flex flex-wrap gutter-spacious {% cycle '', 'flex-row-reverse' %}">
27
+ <div class="d-flex flex-wrap gutter {% cycle '', 'flex-row-reverse' %}">
26
28
  {%- for post in section_posts limit: per_section %}
27
29
  {%- if forloop.first %}
28
30
  <div class="{{ image_class }}">
29
31
  {% include post-tease-image-card.html %}
30
32
  </div>
31
33
  <div class="{{ text_class }}">
32
- {%- else %}
34
+ {%- else %}
33
35
  <div class="{% unless forloop.last %}border-bottom{% endunless %}">
34
- {% include post-tease-text-card.html %}
36
+ {% include post-tease-text-card.html %}
35
37
  </div>
36
- {%- endif %}
37
- {%- endfor %}
38
+ {%- endif %}
39
+ {%- endfor %}
38
40
  </div>
39
41
  </div>
40
42
  {%- if section_posts.size > per_section %}
41
43
  <div class="mb-7 mb-md-8 pt-5 text-right d-lg-none border-top">
42
- <a href="{{ collection_permalink | replace: replace_value, section_slug | relative_url }}" class="Link--primary arrow-target-mktg text-semibold">View all {% octicon chevron-right height:16 %}</a>
44
+ <a href="{{ collection_permalink | replace: replace_value, section_slug | relative_url }}"
45
+ class="Link--primary arrow-target-mktg text-semibold">View all
46
+ <span class="octicon octicon-chevron-right-16"></span></a>
43
47
  </div>
44
48
  {%- endif %}
45
49
  {%- endfor %}
@@ -1,28 +1,33 @@
1
1
  {%- assign collection = include.collection %}
2
- {%- assign collection_permalink = include.collection_permalink | default: ':name' %}
3
- {%- assign replace_value = include.replace_value | default: ':name' %}
4
- {%- assign per_section = include.per_section | default: 6 %}
2
+ {%- assign collection_permalink = include.collection_permalink %}
3
+ {%- assign replace_value = include.replace_value %}
4
+ {%- assign per_section = include.per_section %}
5
5
 
6
6
  {% for section in collection %}
7
7
  {%- assign section_name = section | first %}
8
8
  {%- assign section_slug = section_name | slugify %}
9
9
  {%- assign section_posts = section | last %}
10
+ {%- assign per_section = include.per_section | default: section_posts.size %}
10
11
  <div class="section-heading d-flex flex-items-center flex-justify-between mb-4 mb-lg-7">
11
12
  <h2 class="h6-mktg border-bottom-0">{{ section_name | capitalize }}</h2>
12
- {%- if section_posts.size > per_section %}
13
+ {%- if section_posts.size > per_section and collection_permalink and replace_value %}
13
14
  <div class="d-none d-lg-flex flex-items-center">
14
- <a href="{{ collection_permalink | replace: replace_value, section_slug | relative_url }}" class="Link--primary arrow-target-mktg text-semibold">View all {% octicon chevron-right height:16 %}</a>
15
+ <a href="{{ collection_permalink | replace: replace_value, section_slug | relative_url }}"
16
+ class="Link--primary arrow-target-mktg text-semibold">View all
17
+ <span class="octicon octicon-chevron-right-16"></span></a>
15
18
  </div>
16
19
  {%- endif %}
17
- </div>
18
- <div class="d-flex flex-wrap gutter-spacious mb-4">
20
+ </div>
21
+ <div class="d-flex flex-wrap gutter mb-4">
19
22
  {% for post in section_posts limit: per_section %}
20
23
  {%- include post-card.html %}
21
24
  {% endfor %}
22
25
  </div>
23
26
  {%- if section_posts.size > per_section %}
24
27
  <div class="mb-7 mb-md-8 pt-5 text-right d-lg-none border-top">
25
- <a href="{{ collection_permalink | replace: replace_value, section_slug | relative_url }}" class="Link--primary arrow-target-mktg text-semibold">View all {% octicon chevron-right height:16 %}</a>
28
+ <a href="{{ collection_permalink | replace: replace_value, section_slug | relative_url }}"
29
+ class="Link--primary arrow-target-mktg text-semibold">View all
30
+ <span class="octicon octicon-chevron-right-16"></span></a>
26
31
  </div>
27
32
  {%- endif %}
28
33
  {% endfor %}
@@ -20,8 +20,8 @@
20
20
  {%- assign icon = post.type | default: "comment" %}
21
21
  <div class="TimelineItem flex-wrap">
22
22
  <div class="col-12 col-md-5 position-relative">
23
- <div class="TimelineItem-title mt-5 position-sticky d-flex">
24
- <div class="TimelineItem-badge">{% octicon {{icon}} height:16 %}</div>
23
+ <div class="TimelineItem-title mt-5 position-sticky d-flex topbar-aware-top">
24
+ <div class="TimelineItem-badge"><span class="octicon octicon-{{ icon }}-16"></span></div>
25
25
  <div class="title mb-5">
26
26
  <div class="h2">
27
27
  <a href="{{ post.url | relative_url }}">
@@ -63,7 +63,7 @@
63
63
  <div class="more mb-5">
64
64
  <a href="{{ post.url | relative_url }}" class="link-mktg arrow-target-mktg text-semibold f4-mktg">
65
65
  Continue
66
- <svg xmlns="http://www.w3.org/2000/svg" class="octicon arrow-symbol-mktg" width="16" height="16"
66
+ <svg xmlns="http://www.w3.org/2000/svg" class="octicon arrow-symbol-mktg mt-1" width="16" height="16"
67
67
  viewBox="0 0 16 16" fill="none">
68
68
  <path fill="currentColor"
69
69
  d="M7.28033 3.21967C6.98744 2.92678 6.51256 2.92678 6.21967 3.21967C5.92678 3.51256 5.92678 3.98744 6.21967 4.28033L7.28033 3.21967ZM11 8L11.5303 8.53033C11.8232 8.23744 11.8232 7.76256 11.5303 7.46967L11 8ZM6.21967 11.7197C5.92678 12.0126 5.92678 12.4874 6.21967 12.7803C6.51256 13.0732 6.98744 13.0732 7.28033 12.7803L6.21967 11.7197ZM6.21967 4.28033L10.4697 8.53033L11.5303 7.46967L7.28033 3.21967L6.21967 4.28033ZM10.4697 7.46967L6.21967 11.7197L7.28033 12.7803L11.5303 8.53033L10.4697 7.46967Z">
@@ -76,4 +76,27 @@
76
76
  </div>
77
77
 
78
78
  </div>
79
+ <script>
80
+ (function () {
81
+ const card = document.currentScript.closest('.TimelineItem');
82
+ if (!card) return;
83
+
84
+ const videocontainer = card.querySelector('.timeline-video-container');
85
+ const iframe = card.querySelector('.Timeline-video');
86
+ const title = card.querySelector('.TimelineItem-title');
87
+
88
+ function setIframeDimensions() {
89
+ if (!videocontainer || !iframe) return;
90
+ iframe.style.width = container.offsetWidth + 'px';
91
+ iframe.style.height = container.offsetHeight + 'px';
92
+ }
93
+
94
+ // Initial iframe sizing
95
+ setIframeDimensions();
96
+
97
+ // Watch for container resize
98
+ new ResizeObserver(setIframeDimensions).observe(card);
99
+
100
+ })();
101
+ </script>
79
102
  </div>
@@ -1,33 +1,26 @@
1
1
  {%- comment -%}
2
- post-timeline.html
3
- Usage example:
4
- {% include post-timeline.html collection=site.posts limit=5 index='/blog/index.html' %}
2
+ post-timeline.html
3
+ Usage example:
4
+ {% include post-timeline.html collection=site.posts limit=5 index='/blog/index.html' %}
5
5
 
6
- Expects:
7
- collection (array, required) - A list of posts or other objects to display.
8
- limit (integer, optional) - Number of posts to display (default: all).
9
- index (string, optional) - Index page for the collection.
6
+ Expects:
7
+ collection (array, required) - A list of posts or other objects to display.
8
+ limit (integer, optional) - Number of posts to display (default: all).
9
+ index (string, optional) - Index page for the collection.
10
10
  {%- endcomment -%}
11
11
 
12
12
  {%- assign timeline_collection = include.collection | sort: "date" | reverse %}
13
13
  {%- assign timeline_post_limit = include.limit | default: -1 %}
14
- {%- if timeline_post_limit < 0 %}
15
- {%- assign timeline_post_limit = collection.size %}
16
- {%- endif %}
17
- {% assign timeline_index = include.index %}
18
-
19
- <div class="container-xl mx-auto p-responsive-blog mb-8">
14
+ {%- if timeline_post_limit < 0 %}{%- assign timeline_post_limit=collection.size %}{%- endif %}
15
+ {% assign timeline_index=include.index %}
16
+ <div class="mx-auto mb-8">
20
17
  {%- for post in timeline_collection | limit: timeline_post_limit %}
21
18
  {%- include post-timeline-card.html post=post %}
22
19
  {%- endfor %}
23
- {%- if timeline_collection.size > timeline_post_limit and timeline_index %}
24
- <div class="mx-auto p-responsive-blog">
25
- <div class="d-flex gutter-spacious">
26
- <div class="col-12 col-md-7 offset-md-5">
27
- <a href="{{ timeline_index | relative_url }}"
28
- class="Link--primary arrow-target-mktg text-semibold btn ml-5">View all {% octicon chevron-right height:16 %}</a>
29
- </div>
30
- </div>
20
+ {%- if timeline_collection.size > timeline_post_limit and timeline_index != blank %}
21
+ <div class="mx-auto py-3">
22
+ <a href="{{ timeline_index | relative_url }}"
23
+ class="Link--primary arrow-target-mktg text-semibold btn width-full text-center">More</a>
31
24
  </div>
32
25
  {%- endif %}
33
- </div>
26
+ </div>
@@ -104,7 +104,7 @@
104
104
 
105
105
  {%- if related_limit > 0 and related_posts.size > 0 %}
106
106
  <h2 class="h5-mktg pb-3 mb-lg-3">Related posts</h2>
107
- <div class="d-flex flex-wrap gutter-spacious">
107
+ <div class="d-flex flex-wrap gutter">
108
108
  {% for post in related_posts limit:related_limit %}
109
109
  {% if post.id == page.id %}
110
110
  {% continue %}