jekyll-theme-profile 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/_config.yml +8 -4
  4. data/_includes/nav.html +17 -3
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dc57ea289d76cd96e491bb943d2a0c8fcb746f55861143778c01b7b063d282ea
4
- data.tar.gz: 9858953e3171e38d180089c156a5ff170d642da83a0ea528e1ad68f8a20267f6
3
+ metadata.gz: aeb9c9bd2a9aa7c84203fa41c750914d4c5d29b7a25eca2d594bee30c558ef59
4
+ data.tar.gz: 7184c64296f4ee38692bec4e9daa0a7c6d60a99fe65b8ac285d8d6c58f1aac5b
5
5
  SHA512:
6
- metadata.gz: c7ee6830341f7a494ea1e8fe7bbdaec737a564bbadbd7224a79f77d61ac72b514802ca9f247ba0944d82ab38e212070a07007579a55f3871a7c9a4f305c35b74
7
- data.tar.gz: 79814911c4029a750589d4416aa97cfa9c01627677deaefbb42804c0fc44145a00ccd60e73b610e377e1d4d71698a00d91cc3ce66ac745012125efa6d9495e00
6
+ metadata.gz: 580536e020b38e5355b2be48ce136a34cfd191f1c817384de548f992993286d2ccdde9f4c1257e0336b6bffff277ec7f658fc5e2035009b26a4ef50863b6372f
7
+ data.tar.gz: 23c10120af4360d09635eb70155aa8bb485dc3fbc7489df27b088302555d578dd5f6c155da16617a024382f2b8462045d5a257192f3f743ea2901cc51aa5fc85
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
- permalink: index.html
2
+ permalink: /index.html
3
3
  ---
4
4
  ![jekyll-theme-profile](screenshot.png)
5
5
 
@@ -196,15 +196,15 @@ style: sidebar # One of "stacked", "sidebar", "topbar"
196
196
  ---
197
197
  ```
198
198
 
199
- #### [Sidebar](/home-sidebar.md)
199
+ #### [Sidebar](/test/home/sidebar.md)
200
200
 
201
201
  ![Sidebar image](/assets/img/sidebar-preview.png)
202
202
 
203
- #### [Stacked](/home-stacked.md)
203
+ #### [Stacked](/test/home/stacked.md)
204
204
 
205
205
  ![Stacked image](/assets/img/stacked-preview.png)
206
206
 
207
- #### [Topbar](/home-topbar.md)
207
+ #### [Topbar](/test/home/topbar.md)
208
208
 
209
209
  ![Topbar image](/assets/img/topbar-preview.png)
210
210
 
data/_config.yml CHANGED
@@ -11,6 +11,10 @@ plugins:
11
11
  - jemoji
12
12
 
13
13
  defaults:
14
+ - scope:
15
+ type: pages
16
+ values:
17
+ permalink: /:path/:basename:output_ext
14
18
  - scope:
15
19
  path: "" # an empty string here means all files in the project
16
20
  type: "posts"
@@ -42,13 +46,13 @@ posts_limit: 3
42
46
 
43
47
  links:
44
48
  - name: Example page with topbar
45
- web_url: /page-topbar
49
+ web_url: /test/page/topbar
46
50
  image_url: /assets/img/icon-topbar.png
47
- - name: Example page with sidebar
48
- web_url: /page-sidebar
51
+ - name: Example page with sidebar/
52
+ web_url: /test/page/sidebar
49
53
  image_url: /assets/img/icon-sidebar.png
50
54
  - name: Example page with header stacked
51
- web_url: /page-stacked
55
+ web_url: /test/page/stacked
52
56
  image_url: /assets/img/icon-stacked.png
53
57
 
54
58
  repositories:
data/_includes/nav.html CHANGED
@@ -12,19 +12,29 @@
12
12
  </li>
13
13
  {%- continue %}
14
14
  {%- endif %}
15
- {%- assign asset_crumb = crumb | prepend: "assets/" | append: "/" %}
16
- {%- assign asset_url = url | append: asset_crumb %}
15
+ {%- assign asset_url = url | append: "assets/" | append: crumb | append: "/index.html" %}
17
16
  {%- assign isa_asset = site.pages | where: "url", asset_url | first %}
17
+ {%- assign index_url = url | append: crumb | append: "/index.html" %}
18
+ {%- assign isa_index = site.pages | where: "url", index_url | first %}
18
19
  {%- assign url = url | append: crumb %}
19
20
  {%- assign isa_page = site.pages | where: "url", url | first %}
20
21
  {%- assign isa_post = site.posts | where: "url", url | first %}
21
22
 
22
23
  {%- assign nice_crumb = crumb | url_decode | replace: ".html", "" | replace: "-", " " | replace: "_", " " | downcase %}
23
24
 
24
- {%- if page.url == url %}
25
+ {%- comment %}
26
+ Checking the crumb: {{ crumb }}
27
+ Checking crumb url: {{ index_url }}
28
+ {% for p in site.pages %}
29
+ {{ p.url }}
30
+ {% endfor %}
31
+ {%- endcomment %}
32
+
33
+ {%- if page.url == url or page.url == index_url %}
25
34
  <li class="breadcrumb-item breadcrumb-item-selected" aria-current="page">
26
35
  <a href="{{ page.url | relative_url }}">{{ nice_crumb }}</a>
27
36
  </li>
37
+ {%- break %}
28
38
  {%- elsif isa_page or isa_post %}
29
39
  <li class="breadcrumb-item">
30
40
  <a href="{{ url | relative_url }}">{{ nice_crumb }}</a>
@@ -33,6 +43,10 @@
33
43
  <li class="breadcrumb-item">
34
44
  <a href="{{ asset_url | relative_url }}">{{ nice_crumb }}</a>
35
45
  </li>
46
+ {%- elsif isa_index %}
47
+ <li class="breadcrumb-item">
48
+ <a href="{{ index_url | relative_url }}">{{ nice_crumb }}</a>
49
+ </li>
36
50
  {%- else %}
37
51
  <li class="breadcrumb-item">
38
52
  {{ nice_crumb }}
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: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Allison Thackston