jekyll-theme-profile 1.12.5 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/LICENSE +21 -0
- data/_config.yml +6 -4
- data/_includes/breadcrumbs.html +4 -1
- data/_includes/category_index.html +18 -0
- data/_includes/collection-menu.html +1 -1
- data/_includes/custom-colors.html +2 -2
- data/_includes/footer.html +1 -1
- data/_includes/head.html +4 -2
- data/_includes/header-appbar.html +3 -3
- data/_includes/header-sidebar.html +4 -4
- data/_includes/header-stacked.html +1 -1
- data/_includes/header-topbar.html +4 -4
- data/_includes/link-card.html +16 -2
- data/_includes/mini-repo-info-card.html +6 -4
- data/_includes/nav-overlay.html +2 -2
- data/_includes/navbar-underline.html +8 -5
- data/_includes/post-card.html +1 -0
- data/_includes/post-feature-card.html +4 -4
- data/_includes/post-gallery.html +15 -11
- data/_includes/post-index.html +13 -8
- data/_includes/post-timeline-card.html +26 -3
- data/_includes/post-timeline.html +15 -22
- data/_includes/related.html +1 -1
- data/_includes/repo-card.html +16 -12
- data/_includes/user-metadata.html +12 -6
- data/_layouts/category_index.html +3 -2
- data/_layouts/category_layout.html +1 -1
- data/_layouts/default.html +7 -6
- data/_layouts/docs.html +126 -81
- data/_layouts/docs_index.html +32 -0
- data/_layouts/page.html +8 -8
- data/_layouts/paginate.html +1 -1
- data/_layouts/post.html +18 -19
- data/_layouts/profile.html +32 -32
- data/_layouts/tag_index.html +3 -2
- data/_layouts/tags.html +1 -1
- data/_sass/_main.scss +10 -0
- data/assets/css/theme.scss +4 -1
- data/assets/js/topbar.js +19 -0
- metadata +12 -67
- data/README.md +0 -32
- data/_includes/thumbnail.html +0 -19
- data/assets/js/timeline.js +0 -49
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a08bc7c2e6b4b21e62b423c7153f63f43d3eb2f63620797bfbab8408e48b48fb
|
|
4
|
+
data.tar.gz: 868c434a4b4eb4a3d1ebaa0b81b41fefab4bc2b1774058a6a06c150eeefde6b1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 948f722b4b72083500cb6d89a449be6cab3dab5f780f2d9baf79532e8a052e9eb26540ee85f0ce4c61c5fd09e93a126bbaab3bca827bbed96e5d73b2686d9e60
|
|
7
|
+
data.tar.gz: 7827e2f8e9b7a3d08ec308d131507eee25e7cbbe87cf5c247861d4136174e5184628f1c6d624db7c10ddf6b263c0d2715da064023e2a796bdf4e7d78bc8d384c
|
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
|
-
|
|
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-
|
|
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/
|
data/_includes/breadcrumbs.html
CHANGED
|
@@ -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
|
-
{%-
|
|
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>
|
|
@@ -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']
|
|
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']
|
|
38
|
+
[data-color-mode='auto'] {
|
|
39
39
|
--overlay-color: {{ light_overlay }};
|
|
40
40
|
}
|
|
41
41
|
}
|
data/_includes/footer.html
CHANGED
|
@@ -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://
|
|
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="{{
|
|
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/
|
|
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
|
-
|
|
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
|
|
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"
|
|
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"
|
|
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>
|
|
@@ -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"
|
|
16
|
-
<a href="{{ site.baseurl }}/" class="Header-link f4 d-flex flex-items-center">
|
|
17
|
-
|
|
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>
|
data/_includes/link-card.html
CHANGED
|
@@ -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
|
-
{
|
|
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
|
-
{
|
|
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"
|
|
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
|
|
14
|
+
<span><span class="octicon octicon-tag-16"></span> {{ site.github.latest_release.tag_name}}</span>
|
|
15
15
|
</div>
|
|
16
16
|
{%- endif %}
|
|
17
|
-
|
|
18
|
-
<div class="mr-
|
|
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
|
|
data/_includes/nav-overlay.html
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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>
|
data/_includes/post-card.html
CHANGED
|
@@ -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="
|
|
5
|
-
<div class="col-12 col-lg-8
|
|
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
|
|
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>
|
data/_includes/post-gallery.html
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
{%- assign collection = include.collection %}
|
|
2
|
-
{%- assign collection_permalink = include.collection_permalink
|
|
3
|
-
{%- assign replace_value = include.replace_value
|
|
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 }}"
|
|
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
|
|
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
|
-
|
|
34
|
+
{%- else %}
|
|
33
35
|
<div class="{% unless forloop.last %}border-bottom{% endunless %}">
|
|
34
|
-
|
|
36
|
+
{% include post-tease-text-card.html %}
|
|
35
37
|
</div>
|
|
36
|
-
|
|
37
|
-
|
|
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 }}"
|
|
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 %}
|
data/_includes/post-index.html
CHANGED
|
@@ -1,28 +1,33 @@
|
|
|
1
1
|
{%- assign collection = include.collection %}
|
|
2
|
-
{%- assign collection_permalink = include.collection_permalink
|
|
3
|
-
{%- assign replace_value = include.replace_value
|
|
4
|
-
{%- assign per_section = include.per_section
|
|
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 }}"
|
|
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
|
-
|
|
18
|
-
<div class="d-flex flex-wrap gutter
|
|
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 }}"
|
|
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"
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
post-timeline.html
|
|
3
|
+
Usage example:
|
|
4
|
+
{% include post-timeline.html collection=site.posts limit=5 index='/blog/index.html' %}
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
-
{
|
|
16
|
-
|
|
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
|
|
25
|
-
<
|
|
26
|
-
|
|
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>
|
data/_includes/related.html
CHANGED
|
@@ -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
|
|
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 %}
|