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.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/_config.yml +8 -4
- data/_includes/nav.html +17 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aeb9c9bd2a9aa7c84203fa41c750914d4c5d29b7a25eca2d594bee30c558ef59
|
4
|
+
data.tar.gz: 7184c64296f4ee38692bec4e9daa0a7c6d60a99fe65b8ac285d8d6c58f1aac5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
199
|
+
#### [Sidebar](/test/home/sidebar.md)
|
200
200
|
|
201
201
|
![Sidebar image](/assets/img/sidebar-preview.png)
|
202
202
|
|
203
|
-
#### [Stacked](/home
|
203
|
+
#### [Stacked](/test/home/stacked.md)
|
204
204
|
|
205
205
|
![Stacked image](/assets/img/stacked-preview.png)
|
206
206
|
|
207
|
-
#### [Topbar](/home
|
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
|
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
|
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
|
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
|
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
|
-
{%-
|
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 }}
|