jekyll-theme-profile 0.2.0 → 0.2.2

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: ced21193db290bc0a1bd96231cdc7220e395cea164aa72e35f54e4dd0097e9cf
4
- data.tar.gz: b0763d40bef8ae10e881235ffb739f9bf613a64a5526dc9045d8fb940ec7eb50
3
+ metadata.gz: aeb9c9bd2a9aa7c84203fa41c750914d4c5d29b7a25eca2d594bee30c558ef59
4
+ data.tar.gz: 7184c64296f4ee38692bec4e9daa0a7c6d60a99fe65b8ac285d8d6c58f1aac5b
5
5
  SHA512:
6
- metadata.gz: a735c58729abc548f7fb644bffd85dba4c68523740e70a49fdbfef0239e382d00d77979e764212d110285adf9472406fe897cfbfe1b7d0b98da56ccd8d8f980c
7
- data.tar.gz: b96468523fc89b60f64046c19980dcd6cbe22256fe4cf4178176ad9d104a52b2516b78f80533953d25ce39677d7c5ce59ce8ac2c1799b7e364008199e99621f7
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:
@@ -27,20 +27,29 @@
27
27
 
28
28
  <head>
29
29
  <meta charset="utf-8">
30
- <title>{{ page_title }}</title>
31
- <meta name="description" content="{{ meta_description }}" />
32
- <meta property="og:title" content="{{ page_title }}" />
33
- <meta property="og:image" content="{{ page_image | absolute_url }}" />
34
- <meta property="og:description" content="{{ meta_description }}" />
35
- <meta property="og:url" content="{{ page.url | absolute_url }}" />
36
- <meta property="og:site_name" content="{{ site.title }}">
37
- <meta property="og:type" content="profile" />
38
- <meta name="twitter:title" content="{{ page_title }}">
39
- <meta name="twitter:image" content="{{ page_image | absolute_url }}">
40
- <meta name="twitter:description" content="{{ meta_description }}">
41
- <meta name="twitter:card" content="summary_large_image">
42
- {% if site.social_media.twitter %}<meta name="twitter:site" content="@{{ site.social_media.twitter }}">{% endif %}
30
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
43
31
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
32
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
33
+ <!-- HTML Meta Tags -->
34
+ <title>{{ page_title }}</title>
35
+ <meta name="description" content="{{ meta_description }}">
36
+
37
+ <!-- Opengraph Meta Tags -->
38
+ <meta property="og:url" content="{{ page.url | absolute_url }}">
39
+ <meta property="og:type" content="website">
40
+ <meta property="og:title" content="{{ page_title }}">
41
+ <meta property="og:description" content="{{ meta_description }}">
42
+ <meta property="og:image" content="{{ page_image | absolute_url }}">
43
+
44
+ <!-- Twitter Meta Tags -->
45
+ <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 }}">
48
+ <meta name="twitter:title" content="{{ page_title }}">
49
+ <meta name="twitter:description" content="{{ meta_description }}">
50
+ <meta name="twitter:image" content="{{ page_image | absolute_url }}">
51
+ {% if site.social_media.twitter %}<meta name="twitter:site" content="@{{ site.social_media.twitter }}">{% endif %}
52
+
44
53
  <link href="{{ '/assets/css/style.css' | relative_url }}" rel="stylesheet" type="text/css">
45
54
  <link rel="icon" type="image/x-icon" href="{{ '/assets/img/favicon.ico' | relative_url}}">
46
55
  <link rel="canonical" href="{{ site.url }}{{ site.baseurl }}{{ page.url }}">
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 }}
@@ -33,7 +33,7 @@
33
33
  {%- endif %}
34
34
 
35
35
  <!doctype html>
36
- <html class="min-height-full min-width" data-color-mode="auto" data-light-theme="light" data-dark-theme="dark_dimmed">
36
+ <html lang="en" class="min-height-full min-width" data-color-mode="auto" data-light-theme="light" data-dark-theme="dark_dimmed">
37
37
 
38
38
  {%- include header.html %}
39
39
 
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.0
4
+ version: 0.2.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-07-29 00:00:00.000000000 Z
11
+ date: 2023-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll