jekyll-theme-profile 2.2.3 → 2.2.4

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: 46a121d5e115df9c819fbb8a375453c0a25245465171fa7462f44a536a8d83bb
4
- data.tar.gz: 9417cfa00dd75dbf1c8a280512a46fe7f0e7a4925e9d2df9f6de7674abec172c
3
+ metadata.gz: 5e3a0598d73471dd6d99532621cf383d1e8907033be79825e2545e9b166a8439
4
+ data.tar.gz: 650a37bca91e55fa718f5ee31b9ee64af331e760cb8d349379ed95ad98a91149
5
5
  SHA512:
6
- metadata.gz: 2eaebac797297f4085661ff899c4ef18e395e6a2bd1bd7dcc1c40c31562eb4d42ece07ff54356841a33e2efc43f3219dbdf6ae8a0c2d46f60cac985edba68602
7
- data.tar.gz: f9e3a0cfd293c5497a1b3ee00e8db57f0571b3a4696edb88d3fce3918169620b56ef57657497af52e26114e6efa7fc3e781c5ad76735367f566089d13497d08d
6
+ metadata.gz: 91e18985465639f537f53e71fb8a55555e385f3bf4253b0e5f43f49fcc9f4a1114193c6d0d9b7cbf4f91c34e751514c001a05fd0c429057a80e496270d94c6f9
7
+ data.tar.gz: 28cb56a83e64bee6eb6459ea947099ef6664d68088d2a3c285214005435401f08f6f91c22d3b6c3686a75268cb922b9161e3304c87978d54435d402f35bc7417
@@ -0,0 +1,44 @@
1
+ {% for nav_item in include.items %}
2
+ {% assign item_url = nav_item.url | default: "" %}
3
+ {% assign is_current = nav_item.current | default: false %}
4
+ {% assign contains_current = nav_item.contains_current | default: false %}
5
+ {% assign has_children = nav_item.children and nav_item.children.size > 0 %}
6
+ {% assign skip_item = false %}
7
+ {% assign breadcrumb_url = item_url %}
8
+
9
+ {% if breadcrumb_url == "" and has_children %}
10
+ {% for child in nav_item.children %}
11
+ {% assign child_url = child.url | default: "" %}
12
+ {% if child_url != "" %}
13
+ {% assign breadcrumb_url = child_url %}
14
+ {% break %}
15
+ {% endif %}
16
+ {% endfor %}
17
+ {% endif %}
18
+
19
+ {% if include.root_url and breadcrumb_url != "" and breadcrumb_url == include.root_url %}
20
+ {% assign skip_item = true %}
21
+ {% endif %}
22
+
23
+ {% if is_current or contains_current %}
24
+ {% unless skip_item %}
25
+ {% if is_current %}
26
+ <li class="breadcrumb-item breadcrumb-item-selected" aria-current="page">
27
+ {{ nav_item.title }}
28
+ </li>
29
+ {% elsif breadcrumb_url != "" %}
30
+ <li class="breadcrumb-item">
31
+ <a href="{{ breadcrumb_url | relative_url }}">{{ nav_item.title }}</a>
32
+ </li>
33
+ {% else %}
34
+ <li class="breadcrumb-item">
35
+ {{ nav_item.title }}
36
+ </li>
37
+ {% endif %}
38
+ {% endunless %}
39
+
40
+ {% if has_children %}
41
+ {% include awesome-nav-breadcrumb-trail.html items=nav_item.children root_url=include.root_url %}
42
+ {% endif %}
43
+ {% endif %}
44
+ {% endfor %}
@@ -1,8 +1,32 @@
1
1
  <div class="Breadcrumb d-flex flex-items-center">
2
2
  <nav aria-label="Breadcrumb" class="f5">
3
3
  <ol class="breadcrumb">
4
+ {% assign root_crumb = nil %}
4
5
  {% if page.breadcrumbs and page.breadcrumbs.size > 0 %}
6
+ {% assign root_crumb = page.breadcrumbs.first %}
7
+ {% endif %}
8
+
9
+ {% if root_crumb %}
10
+ <li class="breadcrumb-item">
11
+ <a href="{{ root_crumb.url | relative_url }}">{{ root_crumb.title }}</a>
12
+ </li>
13
+ {% endif %}
14
+
15
+ {% capture awesome_nav_trail %}
16
+ {% if page.awesome_nav and page.awesome_nav.size > 0 %}
17
+ {% include awesome-nav-breadcrumb-trail.html items=page.awesome_nav root_url=root_crumb.url %}
18
+ {% endif %}
19
+ {% endcapture %}
20
+
21
+ {% assign awesome_nav_trail = awesome_nav_trail | strip %}
22
+
23
+ {% if awesome_nav_trail != "" %}
24
+ {{ awesome_nav_trail }}
25
+ {% elsif page.breadcrumbs and page.breadcrumbs.size > 0 %}
5
26
  {% for crumb in page.breadcrumbs %}
27
+ {% if forloop.first %}
28
+ {% continue %}
29
+ {% endif %}
6
30
  {% if forloop.last %}
7
31
  <li class="breadcrumb-item breadcrumb-item-selected" aria-current="page">
8
32
  {{ crumb.title }}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-profile
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.3
4
+ version: 2.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Allison Thackston
@@ -81,6 +81,7 @@ extra_rdoc_files: []
81
81
  files:
82
82
  - LICENSE
83
83
  - _config.yml
84
+ - _includes/awesome-nav-breadcrumb-trail.html
84
85
  - _includes/awesome-nav-breadcrumbs.html
85
86
  - _includes/awesome-nav-menu-tree.html
86
87
  - _includes/awesome-nav-menu.html