jekyll-theme-profile 1.8.6 → 1.10.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.
@@ -2,18 +2,23 @@
2
2
  {%- assign user = site.github.owner %}
3
3
  {%- assign name = site.title | default: user.name | default: user.login %}
4
4
  {%- assign user_img = site.user_image | default: user.avatar_url %}
5
+ {%- assign light_theme = site.light_theme | default: "light" %}
6
+ {%- assign dark_theme = site.dark_theme | default: "dark_dimmed" %}
5
7
  <!doctype html>
6
- <html lang="en" data-color-mode="auto" data-light-theme="light" data-dark-theme="dark_dimmed">
8
+ <html lang="en" data-color-mode="auto" data-light-theme="{{ light_theme }}" data-dark-theme="{{ dark_theme }}">
7
9
 
8
10
  {%- include head.html %}
9
11
 
10
12
  <body class="min-height-full d-flex flex-column">
11
13
  {%- if style == 'topbar' %}
12
14
  {% include header-topbar.html %}
15
+ <div class="d-lg-flex flex-1">
13
16
  {%- elsif style == 'appbar' %}
14
17
  {% include header-appbar.html %}
18
+ <div class="d-lg-flex flex-1">
15
19
  {%- elsif style == 'stacked' %}
16
20
  {% include header-stacked.html %}
21
+ <div class="d-lg-flex flex-1">
17
22
  {%- elsif style == 'sidebar' %}
18
23
  <div class="d-lg-flex flex-1">
19
24
  {% include header-sidebar.html %}
@@ -21,9 +26,7 @@
21
26
 
22
27
  {{ content }}
23
28
 
24
- {%- if style == 'sidebar' %}
25
29
  </div>
26
- {%- endif %}
27
30
 
28
31
  {%- include footer.html %}
29
32
  </body>
data/_layouts/docs.html CHANGED
@@ -8,10 +8,10 @@ Docs utilize collections to display content
8
8
  {% endcomment %}
9
9
  {%- assign collection_name = page.collection | default: "docs" %}
10
10
  {%- assign docs = site[collection_name]%}
11
- {%- assign docs_name = page.name | default: "Documentation" %}
12
- {%- assign index_url = collection_name | prepend: "/" | append: "/index.html" %}
13
- {%- assign docs_index = docs | where: "url", index_url | first %}
14
-
11
+ {%- assign docs_name = page.title | default: "Documentation" %}
12
+ {%- assign index_url = page.index %}
13
+ {%- assign docs_index = docs | where_exp: "item", "item.url == index_url" | first %}
14
+ {%- assign docs_without_index = docs | where_exp: "item", "item.url != index_url" %}
15
15
 
16
16
  <script>
17
17
  $(document).ready(function () {
@@ -28,26 +28,33 @@ Docs utilize collections to display content
28
28
  <div class="px-4 pb-3 border-bottom">
29
29
  <div class="mt-3">
30
30
  {% if docs_index %}
31
- <a class="d-block pl-1 mb-2 h3 color-fg-default no-underline" href="{{ index_url | relative_url }}">
32
- {{ docs_name | capitalize }}
31
+ <a class="d-block pl-1 mb-2 h3 color-fg-default no-underline"
32
+ href="{{ docs_index.url | relative_url }}">
33
+ {{ collection_name | capitalize }}
33
34
  </a>
34
35
  {% else %}
35
- <h3 class="d-block pl-1 mb-2 h3 color-fg-default no-underline">{{ docs_name | capitalize }}</h3>
36
+ <h3 class="d-block pl-1 mb-2 h3 color-fg-default no-underline">{{ collection_name | capitalize }}</h3>
36
37
  {% endif %}
37
38
  </div>
38
39
  </div>
39
- <div class="">
40
- <ul data-overflow-nav class="menu ActionList border-0">
41
- {% for nav_item in docs %}
42
- {% if nav_item.url != index_url %}
43
- <a href="{{ nav_item.url | relative_url }}" class="ActionListItem-label no-underline">
44
- <li class="menu-item ActionList-item border-0"
45
- {% if page.url==nav_item.url %} aria-current="page" {% endif %}>
46
- {{ nav_item.title }}
40
+ <div class="pt-3">
41
+ <ul data-overflow-nav class="menu ActionList border-0 ml-3">
42
+ {%- assign doc_categories = docs_without_index | group_by: "category" %}
43
+ {%- for category in doc_categories %}
44
+ {%- assign category_name = category.name | default: collection_name %}
45
+ <li class="h4">{{ category_name | capitalize }}
46
+ <ul>
47
+ {%- for nav_item in category.items %}
48
+ <a href="{{ nav_item.url | relative_url }}" class="ActionListItem-label no-underline">
49
+ <li class="menu-item ActionList-item border-0" {% if page.url==nav_item.url %}
50
+ aria-current="page" {% endif %}>
51
+ {{ nav_item.title }}
52
+ </li>
53
+ </a>
54
+ {%- endfor %}
55
+ </ul>
47
56
  </li>
48
- </a>
49
- {% endif %}
50
- {% endfor %}
57
+ {%- endfor %}
51
58
  </ul>
52
59
  </div>
53
60
  </div>
@@ -87,10 +94,11 @@ Docs utilize collections to display content
87
94
  </div>
88
95
  </div>
89
96
  <div class="col-12 col-md-4 markdown-body">
90
- {% if page.toc %}
97
+ {% capture page_toc %}{{ content | toc_only }}{% endcapture %}
98
+ {% if page_toc contains "</li>" %}
91
99
  <div class="position-sticky top-12 ml-5 pb-5">
92
100
  <h4 class="ml-3 mb-1">In this article</h4>
93
- {{ content | toc_only }}
101
+ {{ page_toc }}
94
102
  </div>
95
103
  {% endif %}
96
104
  </div>
@@ -99,5 +107,5 @@ Docs utilize collections to display content
99
107
  </div>
100
108
  </div>
101
109
  <div class="CollectionMenu d-none">
102
- {% include collection-menu.html name=docs_name collection=docs index=docs_index.url %}
110
+ {% include collection-menu.html name=collection_name collection=docs_without_index index=docs_index %}
103
111
  </div>
data/_layouts/home.html CHANGED
@@ -1,28 +1,4 @@
1
1
  ---
2
- layout: page
2
+ layout: profile
3
3
  ---
4
- <div class="py-3">
5
- {%- assign posts_total = site.posts | size %}
6
- {%- assign posts_limit = page.posts_limit | default: site.posts_limit | default: posts_total %}
7
-
8
- {%- unless content == "" %}
9
- {{ content }}
10
- {%- endunless %}
11
-
12
- {%- if site.links %}
13
- <div class="container-md">
14
- {%- include links.html %}
15
- </div>
16
- {%- endif %}
17
-
18
- {%- unless posts_total == 0 %}
19
- <h2 class="mb-3">Blog</h2>
20
- {%- include post-timeline.html limit=posts_limit %}
21
- {%- if site.posts.size > post_limit %}
22
- {%- endif %}
23
- {%- endunless %}
24
-
25
- {%- if site.repositories %}
26
- {%- include repositories.html %}
27
- {%- endif %}
28
- </div>
4
+ <!-- WARNING: Deprecated -- use layout: profile -->
@@ -1,17 +1,26 @@
1
1
  ---
2
2
  layout: default
3
+ style: none
3
4
  ---
5
+ {%- assign socials=page.socials | default: layout.socials | default: nil %}
4
6
  <div class="flex-column flex-1 min-width-0 py-3">
5
- {%- if style == "topbar" or style == "appbar" %}
6
- {%- include masthead.html %}
7
+ <div class="d-flex mt-4 p-responsive container-md flex-row py-3 flex-justify-end">
8
+ <div class="d-flex flex-justify-center">
9
+ {% include toggle.html %}
10
+ </div>
11
+ </div>
12
+ {%- if style != "sidebar" and style != "stacked" %}
13
+ {%- include masthead.html class="CircleBadge--medium" %}
14
+ {%- endif %}
15
+ {%- if socials == "top" %}
16
+ {%- include social.html %}
7
17
  {%- endif %}
8
- {%- unless content == "" %}
9
- {{ content }}
10
- {%- endunless %}
11
-
12
18
  {%- if site.links %}
13
19
  <div class="d-flex mt-4 p-responsive container-md">
14
20
  {%- include links.html %}
15
21
  </div>
16
22
  {%- endif %}
23
+ {%- if socials == "bottom" %}
24
+ {%- include social.html %}
25
+ {%- endif %}
17
26
  </div>
@@ -5,7 +5,7 @@ layout: page
5
5
  <div class="d-flex flex-wrap gutter-spacious">
6
6
  <!-- This loops through the paginated posts -->
7
7
  {%- for post in paginator.posts %}
8
- {%- if post.feature %}
8
+ {%- if post.feature or post == site.posts[0] %}
9
9
  {%- include post-feature-card.html %}
10
10
  {%- else %}
11
11
  {%- include post-card.html border="border-top" %}
@@ -0,0 +1,41 @@
1
+ ---
2
+ layout: page
3
+ ---
4
+ {% assign paginate_path = page.pagination.permalink | default: site.pagination.permalink | default: site.paginate_path %}
5
+ {% assign paginate_first_page_path = site.paginate_path | relative_url | replace: 'page:num', '' %}
6
+ {% assign first_page_path = page.first_page_path | default: paginator.first_page_path | default: paginate_first_page_path%}
7
+
8
+ <h1>{{ page.title }}</h1>
9
+
10
+ {{ content }}
11
+
12
+ <!-- This loops through the paginated posts -->
13
+ {% include post-timeline.html collection=paginator.posts %}
14
+ <!-- Pagination links -->
15
+ <div class="paginate-container">
16
+ <div role="navigation" aria-label="Pagination" class="d-flex d-md-inline-block pagination">
17
+ {%- if paginator.previous_page %}
18
+ <a class="previous_page" rel="prev" href="{{ paginator.previous_page_path | relative_url }}"
19
+ aria-disabled="false">Previous</a>
20
+ {% else %}
21
+ <span class="previous_page disabled" aria-disabled="true">Previous</span>
22
+ {% endif %}
23
+
24
+ {%- for blog_page in (1..paginator.total_pages) %}
25
+ {%- if blog_page == paginator.page %}
26
+ <a href="{{ page.url | relative_url }}" aria-label="{{ blog_page }}" aria-current="page">{{ blog_page }}</a>
27
+ {% elsif blog_page == 1 %}
28
+ <a href="{{ first_page_path | relative_url }}" aria-label="{{ blog_page }}">{{ blog_page }}</a>
29
+ {% else %}
30
+ <a href="{{ paginate_path | relative_url | replace: ':num', blog_page }}" aria-label="{{ blog_page }}">{{ blog_page }}</a>
31
+ {%- endif %}
32
+ {%- endfor %}
33
+
34
+ {%- if paginator.next_page %}
35
+ <a class="next_page" rel="next" href="{{ paginator.next_page_path | relative_url }}"
36
+ aria-disabled="false">Next</a>
37
+ {% else %}
38
+ <span class="next_page disabled" aria-disabled="true">Next</span>
39
+ {% endif %}
40
+ </div>
41
+ </div>
data/_layouts/post.html CHANGED
@@ -5,119 +5,129 @@ layout: default
5
5
  {%- assign name = page.author | default: user.name | default: user.login %}
6
6
  {%- assign image = page.image | default: site.image %}
7
7
  <div class="flex-column flex-1 min-width-0">
8
- <div class="BlogHeader position-relative border-top">
9
- <div class="container-xl p-responsive">
10
- <div class="gutter-spacious pt-1 ">
11
- <div class="col-12 offset-lg-1 col-lg-10 col-xl-7 mt-5 mt-lg-10 mb-6 mb-lg-8">
12
- <div class="h3-mktg lh-condensed mb-3 color-header-default">{{ page.title }}</div>
13
- <p class="f4-mktg color-header-default">{{ page.description }}</p>
14
- </div>
15
- <div class="offset-lg-1 col-lg-10">
16
- <div class="position-relative z-1">
17
- <div class="image-container">
18
- <img src="{{ image | relative_url }}" class="cover-image rounded-2" alt="{{ page.title }}" />
8
+ <div class="BlogHeader position-relative border-top">
9
+ <div class="container-xl p-responsive">
10
+ <div class="gutter-spacious pt-1 ">
11
+ <div class="col-12 offset-lg-1 col-lg-10 col-xl-7 mt-5 mt-lg-10 mb-6 mb-lg-8">
12
+ <div class="h3-mktg lh-condensed mb-3 color-header-default">{{ page.title }}</div>
13
+ <p class="f4-mktg color-header-default">{{ page.description }}</p>
14
+ </div>
15
+ <div class="offset-lg-1 col-lg-10">
16
+ <div class="position-relative z-1">
17
+ {%- if page.video %}
18
+ <div id="Timeline-video-container" class="image-container">
19
+ <iframe id="Timeline-video" src="{{ page.video }}" frameborder="0" height="inherited"
20
+ width="inherited"></iframe>
21
+ </div>
22
+ {%- else %}
23
+ <div class="image-container">
24
+ <img src="{{ image | relative_url }}" class="cover-image rounded-2"
25
+ alt="{{ page.title }}" />
26
+ </div>
27
+ {%- endif %}
19
28
  </div>
20
29
  </div>
21
30
  </div>
22
31
  </div>
32
+ <div class="BlogContent position-absolute bottom-0 width-full border-top" style="height:88px">
33
+ </div>
23
34
  </div>
24
- <div class="BlogContent position-absolute bottom-0 width-full border-top" style="height:88px">
25
- </div>
26
- </div>
27
- <div class="BlogContent pb-5">
28
- <div class="container-xl mx-auto p-responsive">
29
- <div class="gutter-spacious pt-5">
30
- <div class="col-12 offset-lg-1 col-lg-10">
31
- <div class="text-mono f5-mktg color-fg-muted mb-12px">Author</div>
32
- <div class="d-flex flex-nowrap pb-1 flex-items-start">
33
- <div class="d-flex flex-wrap">{{ name }}</div>
34
- <div class="d-block border-left flex-shrink-0 text-mono f5-mktg color-fg-muted mb-3 ml-auto pl-5">
35
- {{ page.date | date: "%b %d, %Y" }}
35
+ <div class="BlogContent pb-5">
36
+ <div class="container-xl mx-auto p-responsive">
37
+ <div class="gutter-spacious pt-5">
38
+ <div class="col-12 offset-lg-1 col-lg-10">
39
+ <div class="text-mono f5-mktg color-fg-muted mb-12px">Author</div>
40
+ <div class="d-flex flex-nowrap pb-1 flex-items-start">
41
+ <div class="d-flex flex-wrap">{{ name }}</div>
42
+ <div
43
+ class="d-block border-left flex-shrink-0 text-mono f5-mktg color-fg-muted mb-3 ml-auto pl-5">
44
+ {{ page.date | date: "%b %d, %Y" }}
45
+ </div>
36
46
  </div>
47
+ <div class="color-border-accent-emphasis border-bottom"></div>
37
48
  </div>
38
- <div class="color-border-accent-emphasis border-bottom"></div>
39
49
  </div>
40
- </div>
41
- <div class="mx-auto p-responsive pt-4 pt-md-7 pb-7 pb-md-9">
42
- <div class="d-flex flex-wrap gutter-spacious">
43
- <div class="col-12 offset-lg-1 col-lg-1">
44
- <ul class="list-style-none d-flex flex-lg-column position-sticky top-12">
45
- <li class="mr-4 mr-lg-0 mb-4">
46
- <a href="https://x.com/share?text={{ page.title | url_encode }}&url={{ page.url | absolute_url | url_encode }}"
47
- target="_blank"
48
- class="d-flex flex-justify-center flex-items-center border circle social-aside"
49
- data-proofer-ignore>
50
- <svg width="20" height="20" viewBox="0 0 1200 1227" fill="currentColor"
51
- xmlns="http://www.w3.org/2000/svg">
52
- <path
53
- d="M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z" />
54
- </svg>
55
- </a>
56
- </li>
57
- <li class="mr-4 mr-lg-0 mb-4">
58
- <a href="https://www.facebook.com/sharer/sharer.php?u={{ page.url | absolute_url | url_encode }};t={{ page.title | url_encode }}"
59
- target="_blank"
60
- class="d-flex flex-justify-center flex-items-center border circle social-aside"
61
- data-proofer-ignore>
62
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.3 15.4" height="18">
63
- <path
64
- d="M14.5 0H.8a.88.88 0 0 0-.8.9v13.6a.88.88 0 0 0 .8.9h7.3v-6h-2V7.1h2V5.4a2.87 2.87 0 0 1 2.5-3.1h.5a10.87 10.87 0 0 1 1.8.1v2.1h-1.3c-1 0-1.1.5-1.1 1.1v1.5h2.3l-.3 2.3h-2v5.9h3.9a.88.88 0 0 0 .9-.8V.8a.86.86 0 0 0-.8-.8z"
65
- fill="currentColor"></path>
66
- </svg>
67
- </a>
68
- </li>
69
- <li class="mr-4 mr-lg-0 mb-4">
70
- <a href="https://www.linkedin.com/shareArticle?url={{ page.url | absolute_url | url_encode }}%2F&title={{ page.title | url_encode }}"
71
- target="_blank"
72
- class="d-flex flex-justify-center flex-items-center border circle social-aside"
73
- data-proofer-ignore>
74
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 19 18" height="18">
75
- <path
76
- d="M3.94 2A2 2 0 1 1 2 0a2 2 0 0 1 1.94 2zM4 5.48H0V18h4zm6.32 0H6.34V18h3.94v-6.57c0-3.66 4.77-4 4.77 0V18H19v-7.93c0-6.17-7.06-5.94-8.72-2.91z"
77
- fill="currentColor"></path>
78
- </svg>
79
- </a>
80
- </li>
81
- </ul>
82
- </div>
83
- <div class="col-12 col-lg-7 col-md-8 markdown-body">
84
- {{ content }}
85
- {%- if page.tags.size > 0 and site.tag_page_dir %}
86
- <div class="post-tags text-mono f4-mktg mt-8">
87
- <span class="post-tags-label flex-shrink-0 d-inline-block mt-2">Tags: </span>
88
- <ul class="d-inline-block list-style-none color-text-link mb-0">
89
- {% for tag in page.tags %}
50
+ <div class="mx-auto p-responsive pt-4 pt-md-7 pb-7 pb-md-9">
51
+ <div class="d-flex flex-wrap gutter-spacious">
52
+ <div class="col-12 offset-lg-1 col-lg-1">
53
+ <ul class="list-style-none d-flex flex-lg-column position-sticky top-12">
54
+ <li class="mr-4 mr-lg-0 mb-4">
55
+ <a href="https://x.com/share?text={{ page.title | url_encode }}&url={{ page.url | absolute_url | url_encode }}"
56
+ target="_blank"
57
+ class="d-flex flex-justify-center flex-items-center border circle social-aside"
58
+ data-proofer-ignore>
59
+ <svg width="20" height="20" viewBox="0 0 1200 1227" fill="currentColor"
60
+ xmlns="http://www.w3.org/2000/svg">
61
+ <path
62
+ d="M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z" />
63
+ </svg>
64
+ </a>
65
+ </li>
66
+ <li class="mr-4 mr-lg-0 mb-4">
67
+ <a href="https://www.facebook.com/sharer/sharer.php?u={{ page.url | absolute_url | url_encode }};t={{ page.title | url_encode }}"
68
+ target="_blank"
69
+ class="d-flex flex-justify-center flex-items-center border circle social-aside"
70
+ data-proofer-ignore>
71
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.3 15.4" height="18">
72
+ <path
73
+ d="M14.5 0H.8a.88.88 0 0 0-.8.9v13.6a.88.88 0 0 0 .8.9h7.3v-6h-2V7.1h2V5.4a2.87 2.87 0 0 1 2.5-3.1h.5a10.87 10.87 0 0 1 1.8.1v2.1h-1.3c-1 0-1.1.5-1.1 1.1v1.5h2.3l-.3 2.3h-2v5.9h3.9a.88.88 0 0 0 .9-.8V.8a.86.86 0 0 0-.8-.8z"
74
+ fill="currentColor"></path>
75
+ </svg>
76
+ </a>
77
+ </li>
78
+ <li class="mr-4 mr-lg-0 mb-4">
79
+ <a href="https://www.linkedin.com/shareArticle?url={{ page.url | absolute_url | url_encode }}%2F&title={{ page.title | url_encode }}"
80
+ target="_blank"
81
+ class="d-flex flex-justify-center flex-items-center border circle social-aside"
82
+ data-proofer-ignore>
83
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 19 18" height="18">
84
+ <path
85
+ d="M3.94 2A2 2 0 1 1 2 0a2 2 0 0 1 1.94 2zM4 5.48H0V18h4zm6.32 0H6.34V18h3.94v-6.57c0-3.66 4.77-4 4.77 0V18H19v-7.93c0-6.17-7.06-5.94-8.72-2.91z"
86
+ fill="currentColor"></path>
87
+ </svg>
88
+ </a>
89
+ </li>
90
+ </ul>
91
+ </div>
92
+ <div class="col-12 col-lg-7 col-md-8 markdown-body">
93
+ {{ content }}
94
+ {%- if page.tags.size > 0 and site.tag_page_dir %}
95
+ <div class="post-tags text-mono f4-mktg mt-8">
96
+ <span class="post-tags-label flex-shrink-0 d-inline-block mt-2">Tags: </span>
97
+ <ul class="d-inline-block list-style-none color-text-link mb-0">
98
+ {% for tag in page.tags %}
90
99
  {%- if site.tag_page_dir -%}
91
- {%- capture tag_link %}/{{site.tag_page_dir}}/{{ tag | jekyll_tagging_slug }}{% endcapture %}
100
+ {%- capture tag_link %}/{{site.tag_page_dir}}/{{ tag | jekyll_tagging_slug }}{%
101
+ endcapture %}
92
102
  {%- else -%}
93
103
  {%- capture tag_link %}{{site.tag_archive_path}}{{ tag | slugify }}{% endcapture %}
94
104
  {%- endif -%}
95
- <li class="d-inline-block mt-2 mb-0"><a href="{{ tag_link }}">{{ tag }}</a></li>
96
- {% endfor %}
97
- </ul>
105
+ <li class="d-inline-block mt-2 mb-0"><a href="{{ tag_link }}">{{ tag }}</a></li>
106
+ {% endfor %}
107
+ </ul>
108
+ </div>
109
+ {%- endif %}
98
110
  </div>
99
- {%- endif %}
100
- </div>
101
- <div class="col-12 col-md-4 col-lg-3 markdown-body">
102
- <div class="d-none d-md-block position-sticky top-12">
103
- {%- capture toc_content%}{{ content | toc_only }}{% endcapture %}
104
- {%- if toc_content contains "toc-entry" %}
105
- <div class="mb-8 table-of-contents ">
106
- <h2 class="h6-mktg pt-1">
107
- Table of Contents
108
- </h2>
109
- <div id="table-of-contents">
110
- {{ toc_content }}
111
+ <div class="col-12 col-md-4 col-lg-3 markdown-body">
112
+ <div class="d-none d-md-block position-sticky top-12">
113
+ {%- capture toc_content%}{{ content | toc_only }}{% endcapture %}
114
+ {%- if toc_content contains "toc-entry" %}
115
+ <div class="mb-8 table-of-contents ">
116
+ <h2 class="h6-mktg pt-1">
117
+ Table of Contents
118
+ </h2>
119
+ <div id="table-of-contents">
120
+ {{ toc_content }}
121
+ </div>
111
122
  </div>
123
+ {%- endif %}
112
124
  </div>
113
- {%- endif %}
114
125
  </div>
115
126
  </div>
116
127
  </div>
117
128
  </div>
129
+ <div class="Related container-xl mx-auto p-responsive markdown-body">
130
+ {% include related.html %}
131
+ </div>
118
132
  </div>
119
- <div class="Related container-xl mx-auto p-responsive markdown-body">
120
- {% include related.html %}
121
- </div>
122
- </div>
123
133
  </div>
@@ -1,11 +1,14 @@
1
1
  ---
2
2
  layout: page
3
3
  ---
4
- <div class="Profile d-lg-flex gutter">
4
+ {%- assign style = page.style | default: layout.style | default: site.style %}
5
+ <div class="Profile d-lg-flex flex-justify-center gutter">
6
+ {%- if style != "sidebar" and style != "stacked" %}
5
7
  <div class="col-lg-4 border-gray-light pt-6 text-center">
6
8
  {%- include masthead.html %}
7
9
  {%- include social.html %}
8
10
  </div>
11
+ {%- endif %}
9
12
 
10
13
  <div class="col-lg-8 border-top border-lg-top-0 color-bg-default">
11
14
  <div class="py-6">
@@ -22,9 +25,7 @@ layout: page
22
25
 
23
26
  {%- unless posts_total == 0 %}
24
27
  <h2 class="mb-3">Blog</h2>
25
- {%- include post-timeline.html limit=posts_limit %}
26
- {%- if site.posts.size > post_limit %}
27
- {%- endif %}
28
+ {%- include post-timeline.html limit=posts_limit index="/blog/" %}
28
29
  {%- endunless %}
29
30
 
30
31
  {%- if site.repositories %}
@@ -0,0 +1,17 @@
1
+ ---
2
+ title: Tags
3
+ layout: page
4
+ ---
5
+ {%- assign tags = page.tags | default: site.tags %}
6
+ {%- assign tag_permalink = page.tag_path | default:site.tag_path | default: 'tags' | append: '/:tag' %}
7
+ {%- assign tag_permalink = page.pagination.permalink | default: site.autopages.tags.permalink | default: tag_permalink %}
8
+ {%- assign per_section = page.per_section | default: 3 %}
9
+
10
+ <h1 class="h3-mktg mt-4 mb-6 mb-md-8">{{ page.title }}</h1>
11
+
12
+ {% include post-index.html
13
+ collection=tags
14
+ collection_permalink=tag_permalink
15
+ replace_value=":tag"
16
+ per_section=per_section
17
+ %}
data/_layouts/tags.html CHANGED
@@ -6,7 +6,7 @@ layout: page
6
6
 
7
7
  <div class="d-flex flex-wrap gutter-spacious">
8
8
  {% for post in page.posts %}
9
- {%- if post.feature %}
9
+ {%- if post.feature or forloop.first %}
10
10
  {%- include post-feature-card.html %}
11
11
  {%- else %}
12
12
  {%- include post-card.html border="border-top" %}
data/_sass/_main.scss CHANGED
@@ -169,6 +169,13 @@
169
169
  color: var(--color-primer-border-active);
170
170
  }
171
171
 
172
+ .section-heading {
173
+ border-top: 5px solid var(--color-fg-default);
174
+ border-bottom: 1px solid var(--color-border-muted);
175
+ padding-top: 7px !important;
176
+ padding-bottom: 11px !important;
177
+ }
178
+
172
179
  .post-tags::before {
173
180
  content: "";
174
181
  display: block;
@@ -1,5 +1,6 @@
1
- @import url("https://unpkg.com/@primer/css@^20.2.4/dist/primer.css");
1
+ @use "sass:meta";
2
+ @import url("https://unpkg.com/@primer/css@21.2.2/dist/primer.css");
2
3
  @import url("https://cdn.jsdelivr.net/npm/octicons-css/octicons.min.css");
3
- @import "highlight-syntax";
4
- @import "language-colors";
5
- @import "main";
4
+ @include meta.load-css("highlight-syntax");
5
+ @include meta.load-css("language-colors");
6
+ @include meta.load-css("main");
@@ -1,5 +1,7 @@
1
1
  ---
2
2
  ---
3
+ @use "jekyll-theme-profile";
4
+
3
5
  {%- if site.background.overlay %}
4
6
  {%- assign dark_overlay = site.background.overlay %}
5
7
  {%- assign light_overlay = site.background.overlay %}
@@ -82,5 +84,3 @@
82
84
  --color-profile-accent: var(--color-accent-fg);
83
85
  --color-profile-bg: var(--color-canvas-default);
84
86
  }
85
-
86
- @import "jekyll-theme-profile";
Binary file
Binary file
Binary file