jekyll-theme-profile 0.2.2 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aeb9c9bd2a9aa7c84203fa41c750914d4c5d29b7a25eca2d594bee30c558ef59
4
- data.tar.gz: 7184c64296f4ee38692bec4e9daa0a7c6d60a99fe65b8ac285d8d6c58f1aac5b
3
+ metadata.gz: f1ac5c3750901ad672ec1aa90de869415f9f468bd94a052fa7462006c6a3854e
4
+ data.tar.gz: 2ef23f54f12f75cef68868916fe8de2d129c5dbd30b956734a8684ba51e34a56
5
5
  SHA512:
6
- metadata.gz: 580536e020b38e5355b2be48ce136a34cfd191f1c817384de548f992993286d2ccdde9f4c1257e0336b6bffff277ec7f658fc5e2035009b26a4ef50863b6372f
7
- data.tar.gz: 23c10120af4360d09635eb70155aa8bb485dc3fbc7489df27b088302555d578dd5f6c155da16617a024382f2b8462045d5a257192f3f743ea2901cc51aa5fc85
6
+ metadata.gz: 07a6867ffe44283b2ac051d00ae66f08becdcd94d3a255ce15194ac80ec38fec167f6bd139a0e5a647074dc3cccabd3ce7e6f0d8f728f97174563be1800137e8
7
+ data.tar.gz: 94bcff83cec403bbb4e4a833034f238bd67a054db736a1923fba32ba6de787d3a42c153f762fd90134971fa344efb2a84a9232eeadb50184e120fb7ce16eaf98
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
- permalink: /index.html
2
+ permalink: /
3
3
  ---
4
4
  ![jekyll-theme-profile](screenshot.png)
5
5
 
data/_config.yml CHANGED
@@ -11,10 +11,6 @@ plugins:
11
11
  - jemoji
12
12
 
13
13
  defaults:
14
- - scope:
15
- type: pages
16
- values:
17
- permalink: /:path/:basename:output_ext
18
14
  - scope:
19
15
  path: "" # an empty string here means all files in the project
20
16
  type: "posts"
@@ -1,4 +1,12 @@
1
1
  {%- assign user = site.github.owner %}
2
+
3
+ {% capture last_char %}{{ page.url | slice: -1 }}{% endcapture %}
4
+ {%- if last_char == '/' %}
5
+ {%- capture page_url %}{{ page.url | append: "index.html" }}{% endcapture %}
6
+ {%- else %}
7
+ {%- assign page_url = page.url %}
8
+ {%- endif %}
9
+
2
10
  {%- if page.title %}
3
11
  {%- assign page_title = page.title %}
4
12
  {%- elsif site.title %}
@@ -28,23 +36,22 @@
28
36
  <head>
29
37
  <meta charset="utf-8">
30
38
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
31
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
32
39
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
33
40
  <!-- HTML Meta Tags -->
34
41
  <title>{{ page_title }}</title>
35
42
  <meta name="description" content="{{ meta_description }}">
36
43
 
37
44
  <!-- Opengraph Meta Tags -->
38
- <meta property="og:url" content="{{ page.url | absolute_url }}">
45
+ <meta property="og:url" content="{{ page_url | absolute_url }}">
39
46
  <meta property="og:type" content="website">
40
- <meta property="og:title" content="{{ page_title }}">
47
+ <meta property="og:title" content="{{ page_title | absolute_url }}">
41
48
  <meta property="og:description" content="{{ meta_description }}">
42
49
  <meta property="og:image" content="{{ page_image | absolute_url }}">
43
50
 
44
51
  <!-- Twitter Meta Tags -->
45
52
  <meta name="twitter:card" content="summary_large_image">
46
- <meta property="twitter:domain" content="{{ site.url | replace: 'https://', '' | replace: 'www.', '' }}">
47
- <meta property="twitter:url" content="{{ page.url | absolute_url }}">
53
+ <meta property="twitter:domain" content="{{ site.url | replace: 'http://', '' | replace: 'https://', '' | replace: 'www.', '' }}">
54
+ <meta property="twitter:url" content="{{ page_url | absolute_url }}">
48
55
  <meta name="twitter:title" content="{{ page_title }}">
49
56
  <meta name="twitter:description" content="{{ meta_description }}">
50
57
  <meta name="twitter:image" content="{{ page_image | absolute_url }}">
data/_includes/nav.html CHANGED
@@ -16,6 +16,8 @@
16
16
  {%- assign isa_asset = site.pages | where: "url", asset_url | first %}
17
17
  {%- assign index_url = url | append: crumb | append: "/index.html" %}
18
18
  {%- assign isa_index = site.pages | where: "url", index_url | first %}
19
+ {%- assign folder_url = url | append: crumb | append: "/" %}
20
+ {%- assign isa_folder = site.pages | where: "url", folder_url | first %}
19
21
  {%- assign url = url | append: crumb %}
20
22
  {%- assign isa_page = site.pages | where: "url", url | first %}
21
23
  {%- assign isa_post = site.posts | where: "url", url | first %}
@@ -30,12 +32,13 @@
30
32
  {% endfor %}
31
33
  {%- endcomment %}
32
34
 
33
- {%- if page.url == url or page.url == index_url %}
35
+
36
+ {%- if page.url == url or page.url == index_url or page.url == folder_url %}
34
37
  <li class="breadcrumb-item breadcrumb-item-selected" aria-current="page">
35
38
  <a href="{{ page.url | relative_url }}">{{ nice_crumb }}</a>
36
39
  </li>
37
40
  {%- break %}
38
- {%- elsif isa_page or isa_post %}
41
+ {%- elsif isa_page or isa_post or isa_index or isa_folder %}
39
42
  <li class="breadcrumb-item">
40
43
  <a href="{{ url | relative_url }}">{{ nice_crumb }}</a>
41
44
  </li>
@@ -43,10 +46,6 @@
43
46
  <li class="breadcrumb-item">
44
47
  <a href="{{ asset_url | relative_url }}">{{ nice_crumb }}</a>
45
48
  </li>
46
- {%- elsif isa_index %}
47
- <li class="breadcrumb-item">
48
- <a href="{{ index_url | relative_url }}">{{ nice_crumb }}</a>
49
- </li>
50
49
  {%- else %}
51
50
  <li class="breadcrumb-item">
52
51
  {{ nice_crumb }}
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: 0.2.2
4
+ version: 0.2.4
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-07-30 00:00:00.000000000 Z
11
+ date: 2023-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll