jekyll-theme-profile 1.7.1 → 1.7.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 496c50249c4ad24ccfdecbd84442cb3e88db4db88de315f95f1a000c1af32604
4
- data.tar.gz: 4ff57f86bdfe0aadca9553c658231a1a9e507ba6a03282a13c6e98ad09532eec
3
+ metadata.gz: 4b199f9c3960df73cfd3b6df1870373d74fd3994940252f18e9d9aa8a1ca49cf
4
+ data.tar.gz: 5365428080bb948747b29255b434c7d0f60a8039e093158df7a5ed9e5b5370e1
5
5
  SHA512:
6
- metadata.gz: 9949c30dcebcd7d12e59c67d8587ff88567e856993a0b225f0de59f6ac9397bfd78250ba690c0131c25644221f6e25ff698c26a700f8663d32fc8bcf3360c0cd
7
- data.tar.gz: c4645f8fea05ca5265884e5b5b8c4d308f3613ccdc8bd9c7aa5688818315849f90b84c30e1e1dc460440fa0b2c1a6f6413dcc0fcbefcaf351a177d19175b0d80
6
+ metadata.gz: 9fb24f7acab271d8d14d487848bac69e275525d21a6bdbc866c410b4b0f9acdb45954f2d7e8756f28eb43facf51e9caafef87c94bf11005323bd8cfc5458edfe
7
+ data.tar.gz: 89c7828d0a1428def72de0e74168c4c4c81e4009be4f362a74c6d5943005f47a8db1390ee9b8fb12145a295ba2c5e9a9317ccfc21d8269d5fbce0d10087def0c
data/README.md CHANGED
@@ -121,14 +121,14 @@ jobs:
121
121
  Select the default style for your theme by adding `style` to your config file:
122
122
 
123
123
  ```yaml
124
- style: sidebar # One of "stacked", "sidebar", "topbar"
124
+ style: sidebar # One of "stacked", "sidebar", "topbar", "appbar"
125
125
  ```
126
126
 
127
127
  You can also set the style of a particular page by adding `style` to your frontmatter.
128
128
 
129
129
  ```yaml
130
130
  ---
131
- style: sidebar # One of "stacked", "sidebar", "topbar"
131
+ style: sidebar # One of "stacked", "sidebar", "topbar", "appbar
132
132
  ---
133
133
  ```
134
134
 
data/_includes/links.html CHANGED
@@ -1,6 +1,7 @@
1
+ {% assign links = page.links | default: site.links %}
1
2
  <div class="width-full">
2
3
  <div class="d-flex flex-column mb-4">
3
- {%- for link in site.links %}
4
+ {%- for link in links %}
4
5
  <div class="mb-2">
5
6
  {%- include link-card.html %}
6
7
  </div>
data/_includes/nav.html CHANGED
@@ -1,6 +1,6 @@
1
1
  {%- for nav_item in site.nav %}
2
2
  <div class="Header-item flex-justify-center f4 p-2">
3
- <a href="{{ nav_item.url | relative_url }}" class="Header-link" {% if page.url == nav_item.url %}aria-current="page"{% endif %}>
3
+ <a href="{{ nav_item.url | relative_url }}" class="Header-link" {% if page.url contains nav_item.url %}aria-current="page"{% endif %}>
4
4
  {{ nav_item.name }}
5
5
  </a>
6
6
  </div>
@@ -2,7 +2,7 @@
2
2
  <ul class="UnderlineNav-body flex-row list-style-none">
3
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 == nav_item.url %}aria-current="page"{% endif %}>
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
6
  {{ nav_item.name }}
7
7
  </a>
8
8
  </li>
@@ -10,7 +10,7 @@
10
10
  <h3 class="h6-mktg mb-12px">
11
11
  <a class="Link--primary" href="{{ post.url | relative_url }}">{{ post.title }}</a>
12
12
  </h3>
13
- <p class="f4-mktg color-fg-muted mb-0">{{ post.excerpt }}</p>
13
+ <p class="f4-mktg color-fg-muted mb-0">{{ post.excerpt | default: post.description }}</p>
14
14
  <div class="mt-14px">
15
15
  <div class="d-flex flex-items-center">
16
16
  <div class="d-flex flex-items-end flex-wrap">
@@ -98,11 +98,11 @@
98
98
  {% assign related_posts = site.related_posts %}
99
99
 
100
100
  {% comment %}<!-- Otherwise show recent posts if no site.related_posts -->{% endcomment %}
101
- {% else %}
101
+ {% else if related_by == "default" %}
102
102
  {% assign related_posts = site.posts %}
103
103
  {% endif %}
104
104
 
105
- {%- if related_limit > 0 %}
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
107
  <div class="d-flex flex-wrap gutter-spacious">
108
108
  {% for post in related_posts limit:related_limit %}
@@ -21,9 +21,9 @@
21
21
 
22
22
  {{ content }}
23
23
 
24
- {% if style== 'sidebar' %}
24
+ {%- if style == 'sidebar' %}
25
25
  </div>
26
- {% endif %}
26
+ {%- endif %}
27
27
 
28
28
  {%- include footer.html %}
29
29
  </body>
@@ -2,7 +2,9 @@
2
2
  layout: default
3
3
  ---
4
4
  <div class="flex-column flex-1 min-width-0 py-3">
5
+ {%- if style == "topbar" or style == "appbar" %}
5
6
  {%- include masthead.html %}
7
+ {%- endif %}
6
8
  {%- unless content == "" %}
7
9
  {{ content }}
8
10
  {%- endunless %}
data/_layouts/page.html CHANGED
@@ -5,4 +5,5 @@ layout: default
5
5
  <div class="container-xl p-3 px-md-5 markdown-body">
6
6
  {{ content }}
7
7
  </div>
8
+ <div class="flex-1 height-full"></div>
8
9
  </div>
data/_sass/_main.scss CHANGED
@@ -162,10 +162,13 @@
162
162
  }
163
163
 
164
164
  .Page {
165
- height: 100% !important;
166
165
  background-color: var(--color-canvas-default) !important;
167
166
  }
168
167
 
168
+ .Header-link[aria-current]:not([aria-current=false]) {
169
+ color: var(--color-primer-border-active);
170
+ }
171
+
169
172
  .post-tags::before {
170
173
  content: "";
171
174
  display: block;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-profile
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.1
4
+ version: 1.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Allison Thackston
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-26 00:00:00.000000000 Z
11
+ date: 2023-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll