jekyll-theme-profile 1.7.2 → 1.8.1

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: 4b199f9c3960df73cfd3b6df1870373d74fd3994940252f18e9d9aa8a1ca49cf
4
- data.tar.gz: 5365428080bb948747b29255b434c7d0f60a8039e093158df7a5ed9e5b5370e1
3
+ metadata.gz: 8a048bbb5f364e2636e734616958b65a9f3114550526dc4f8cfdfec64c09c819
4
+ data.tar.gz: 635bcf3d80bb8a269f13914d552e0306393a8f07c9a442506abfc81e2c34b270
5
5
  SHA512:
6
- metadata.gz: 9fb24f7acab271d8d14d487848bac69e275525d21a6bdbc866c410b4b0f9acdb45954f2d7e8756f28eb43facf51e9caafef87c94bf11005323bd8cfc5458edfe
7
- data.tar.gz: 89c7828d0a1428def72de0e74168c4c4c81e4009be4f362a74c6d5943005f47a8db1390ee9b8fb12145a295ba2c5e9a9317ccfc21d8269d5fbce0d10087def0c
6
+ metadata.gz: e121beb4d40981db6ce572ba5b55c3d0d7b10494c0caadef966f096d83f5cf773ce86f59e1dde8d1a6829f0c282e67fa7b90a2200add2470749afdc9a98defdd
7
+ data.tar.gz: e2cddda908bcdbd6cf543834575cc6bd69e82d63cf1d439e8ce28ccd40003347159c6d0edaa30ebeded583e46e5af9d5fae4f3aa774a842c5410e61868af7186
@@ -1,3 +1,4 @@
1
+ {% assign collection = include.collection | default: site.docs %}
1
2
  <div class="Breadcrumb d-flex flex-items-center">
2
3
  <nav aria-label="Breadcrumb" class="f5">
3
4
  <ol class="breadcrumb">
@@ -10,8 +11,6 @@
10
11
  </li>
11
12
  {%- continue %}
12
13
  {%- endif %}
13
- {%- assign asset_url = url | append: "assets/" | append: crumb | append: "/" %}
14
- {%- assign isa_asset = site.pages | where: "url", asset_url | first %}
15
14
  {%- assign index_url = url | append: crumb | append: "/index.html" %}
16
15
  {%- assign isa_index = site.pages | where: "url", index_url | first %}
17
16
  {%- assign folder_url = url | append: crumb | append: "/" %}
@@ -19,34 +18,35 @@
19
18
  {%- assign url = url | append: crumb %}
20
19
  {%- assign isa_page = site.pages | where: "url", url | first %}
21
20
  {%- assign isa_post = site.posts | where: "url", url | first %}
21
+ {%- assign isa_collection = collection | where: "url", index_url | first %}
22
22
 
23
23
  {%- assign nice_crumb = crumb | url_decode | replace: ".html", "" | replace: "-", " " | replace: "_", " " |
24
24
  downcase %}
25
25
 
26
- {%- comment %}
26
+ {% comment %}
27
27
  Checking the crumb: {{ crumb }}
28
28
  [asset url: {{ asset_url }}]
29
29
  [index url: {{ index_url }}]
30
30
  [folder_url: {{ folder_url }}]
31
31
  [url: {{ url }}]
32
- {% for p in site.pages %}
32
+ {% for p in collection %}
33
33
  {{ p.url }}
34
34
  {% endfor %}
35
- {%- endcomment %}
35
+
36
+ [Page?: {% if isa_page %}page!{% endif %}]
37
+ [Post?: {% if isa_post %}post!{% endif %}]
38
+ [Collection?: {% if isa_collection %}collection!{% endif %}]
39
+ {% endcomment %}
36
40
 
37
41
  {%- if page.url == url or page.url == index_url or page.url == folder_url %}
38
42
  <li class="breadcrumb-item breadcrumb-item-selected" aria-current="page">
39
43
  <a href="{{ page.url | relative_url }}">{{ nice_crumb }}</a>
40
44
  </li>
41
45
  {%- break %}
42
- {%- elsif isa_page or isa_post or isa_index or isa_folder %}
46
+ {%- elsif isa_page or isa_post or isa_index or isa_folder or isa_collection %}
43
47
  <li class="breadcrumb-item">
44
48
  <a href="{{ url | relative_url }}">{{ nice_crumb }}</a>
45
49
  </li>
46
- {%- elsif isa_asset %}
47
- <li class="breadcrumb-item">
48
- <a href="{{ asset_url | relative_url }}">{{ nice_crumb }}</a>
49
- </li>
50
50
  {%- else %}
51
51
  <li class="breadcrumb-item">
52
52
  {{ nice_crumb }}
@@ -0,0 +1,40 @@
1
+ {%- assign collection = include.collection | default: site.docs %}
2
+ {%- assign collection_name = include.name %}
3
+ {%- assign collection_index = include.index %}
4
+ <div class="Overlay-backdrop--side Overlay-backdrop--placement-left" data-modal-dialog-overlay>
5
+ <modal-dialog class="Overlay Overlay--width-medium Overlay--motion-slideDown height-fit height-full" >
6
+ <div class="Overlay-headerContentWrap d-flex flex-row py-3 px-2 border-bottom">
7
+ <div class="Overlay-titleWrap d-flex flex-1">
8
+ <div tabindex="-1" class="d-flex flex-1 ml-3" id="github-logo">
9
+ {% if collection_index %}
10
+ <a href="{{ collection_index.url | relative_url }}" class="AppHeader-link d-flex flex-items-center no-underline mr-3">
11
+ <span class="h3 color-fg-default text-bold">{{ collection_name }}</span>
12
+ </a>
13
+ {% else %}
14
+ <div class="AppHeader-link d-flex flex-items-center no-underline mr-3">
15
+ <span class="h3 color-fg-default text-bold">{{ collection_name }}</span>
16
+ </div>
17
+ {% endif %}
18
+ </div>
19
+ </div>
20
+ <div class="Overlay-actionWrap d-flex flex-justify-end" >
21
+ <button id="close-contents-btn" class="close-button Overlay-closeButton">
22
+ {% octicon x height: 16 %}
23
+ </button>
24
+ </div>
25
+ </div>
26
+ <div class="Overlay-body d-flex flex-column p-2">
27
+ <ul data-overflow-nav class="ActionList border-0">
28
+ {%- for nav_item in collection %}
29
+ {%- if nav_item.url != collection_index %}
30
+ <a href="{{ nav_item.url | relative_url }}" class="ActionListItem-label no-underline" >
31
+ <li class="menu-item ActionList-item border-0"{% if page.url==nav_item.url %} aria-current="page"{% endif %}>
32
+ {{ nav_item.title }}
33
+ </li>
34
+ </a>
35
+ {%- endif %}
36
+ {%- endfor %}
37
+ </ul>
38
+ </div>
39
+ </modal-dialog>
40
+ </div>
@@ -2,10 +2,9 @@
2
2
  <div class="footer py-3 color-bg-subtle border-top">
3
3
  <div class="container-xl p-responsive-blog f6 py-4 d-sm-flex flex-justify-between flex-row-reverse flex-items-center">
4
4
  {%- if site.social_media %}
5
- <div class="flex-1">
6
5
  {%- include social.html %}
7
- </div>
8
6
  {%- endif %}
7
+ <div class="flex-1"></div>
9
8
  <div class="flex-0 mx-auto px-4">
10
9
  <div>Made with <a href="https://www.althack.dev/jekyll-theme-profile/">jekyll theme profile</a></div>
11
10
  </div>
@@ -0,0 +1,103 @@
1
+ ---
2
+ layout: default
3
+ style: appbar
4
+ toc: true
5
+ ---
6
+ {% comment %}
7
+ Docs utilize collections to display content
8
+ {% endcomment %}
9
+ {%- assign collection_name = page.collection | default: "docs" %}
10
+ {%- assign docs = site[collection_name]%}
11
+ {%- assign docs_name = page.name | default: "Documentation" %}
12
+ {%- assign index_url = collection_name | prepend: "/" | append: "/index.html" %}
13
+ {%- assign docs_index = docs | where: "url", index_url | first %}
14
+
15
+
16
+ <script>
17
+ $(document).ready(function () {
18
+ $('#contents-btn').click(function () {
19
+ $('.CollectionMenu').toggleClass('d-none');
20
+ });
21
+ $('#close-contents-btn').click(function () {
22
+ $('.CollectionMenu').addClass('d-none');
23
+ })
24
+ });
25
+ </script>
26
+ <div class="d-lg-flex flex-1">
27
+ <div class="Layout Layout-sidebar position-sticky border-right d-none d-xl-block">
28
+ <div class="px-4 pb-3 border-bottom">
29
+ <div class="mt-3">
30
+ {% if docs_index %}
31
+ <a class="d-block pl-1 mb-2 h3 color-fg-default no-underline" href="{{ index_url | relative_url }}">
32
+ {{ docs_name | capitalize }}
33
+ </a>
34
+ {% else %}
35
+ <h3 class="d-block pl-1 mb-2 h3 color-fg-default no-underline">{{ docs_name | capitalize }}</h3>
36
+ {% endif %}
37
+ </div>
38
+ </div>
39
+ <div class="">
40
+ <ul data-overflow-nav class="menu ActionList border-0">
41
+ {% for nav_item in docs %}
42
+ {% if nav_item.url != index_url %}
43
+ <a href="{{ nav_item.url | relative_url }}" class="ActionListItem-label no-underline">
44
+ <li class="menu-item ActionList-item border-0"
45
+ {% if page.url==nav_item.url %} aria-current="page" {% endif %}>
46
+ {{ nav_item.title }}
47
+ </li>
48
+ </a>
49
+ {% endif %}
50
+ {% endfor %}
51
+ </ul>
52
+ </div>
53
+ </div>
54
+ <div class="flex-1">
55
+ <div class="container-xl mx-auto p-responsive py-3">
56
+ <div class="py-4 d-flex">
57
+ <div class="d-xl-none">
58
+ <button id="contents-btn" class="btn-octicon mr-2">{% octicon three-bars height:16 %}</button>
59
+ </div>
60
+ {% include breadcrumbs.html %}
61
+ </div>
62
+ <div class="pb-5">
63
+ <h1 class="border-bottom-0">{{ page.title }}</h1>
64
+ <h3 class="f3 color-fg-muted pb-3">{{ page.description }}</h3>
65
+ </div>
66
+ <div class="d-flex flex-wrap-reverse">
67
+ <div class="col-12 col-md-8 markdown-body">
68
+ {{ content }}
69
+
70
+ <!-- Pagination links -->
71
+ <div class="paginate-container py-3">
72
+ <div role="navigation" aria-label="Pagination" class="d-inline-block pagination">
73
+ {% if page.previous.url %}
74
+ <a class="previous_page" rel="prev" href="{{ page.previous.url | relative_url }}"
75
+ aria-disabled="false">{{page.previous.title | truncate: 20 }}</a>
76
+ {% else %}
77
+ <span class="previous_page disabled" aria-disabled="true">Previous</span>
78
+ {% endif %}
79
+
80
+ {% if page.next.url %}
81
+ <a class="next_page" rel="next" href="{{ page.next.url | relative_url }}"
82
+ aria-disabled="false">{{page.next.title | truncate: 20 }}</a>
83
+ {% else %}
84
+ <span class="next_page disabled" aria-disabled="true">Next</span>
85
+ {% endif %}
86
+ </div>
87
+ </div>
88
+ </div>
89
+ <div class="col-12 col-md-4 markdown-body">
90
+ {% if page.toc %}
91
+ <div class="position-sticky top-12 ml-5 pb-5">
92
+ <h4 class="ml-3 mb-1">In this article</h4>
93
+ {{ content | toc_only }}
94
+ </div>
95
+ {% endif %}
96
+ </div>
97
+ </div>
98
+ </div>
99
+ </div>
100
+ </div>
101
+ <div class="CollectionMenu d-none">
102
+ {% include collection-menu.html name=docs_name collection=docs index=docs_index.url %}
103
+ </div>
@@ -6,7 +6,7 @@ style: none
6
6
  {%- assign name = site.title | default: user.name | default: user.login %}
7
7
  {%- assign user_img = site.user_image | default: user.avatar_url %}
8
8
  <div class="Header d-flex p-0 flex-1 height-full">
9
- <div class="flex-column flex-1 position-sticky top-0">
9
+ <div class="container-lg flex-column position-sticky top-0">
10
10
  <div class="Toolbar topbar d-flex flex-row py-3 flex-justify-end">
11
11
  <div class="Toolbar-expand d-flex flex-justify-center d-none">
12
12
  <button id="sidebar-btn" class="btn-octicon mr-2">{% octicon chevron-right height:16 %}</button>
data/_layouts/post.html CHANGED
@@ -87,7 +87,12 @@ layout: default
87
87
  <span class="post-tags-label flex-shrink-0 d-inline-block mt-2">Tags: </span>
88
88
  <ul class="d-inline-block list-style-none color-text-link mb-0">
89
89
  {% for tag in page.tags %}
90
- <li class="d-inline-block mt-2 mb-0"><a href="{{ site.tag_page_dir | relative_url }}/{{ tag | slugify: 'pretty' }}.html">{{ tag }}</a></li>
90
+ {%- if site.tag_page_dir -%}
91
+ {%- capture tag_link %}/{{site.tag_page_dir}}/{{ tag | jekyll_tagging_slug }}{% endcapture %}
92
+ {%- else -%}
93
+ {%- capture tag_link %}{{site.tag_archive_path}}{{ tag | slugify }}{% endcapture %}
94
+ {%- endif -%}
95
+ <li class="d-inline-block mt-2 mb-0"><a href="{{ tag_link }}">{{ tag }}</a></li>
91
96
  {% endfor %}
92
97
  </ul>
93
98
  </div>
data/_sass/_main.scss CHANGED
@@ -178,7 +178,6 @@
178
178
  margin-bottom: 4px;
179
179
  }
180
180
 
181
-
182
181
  body::before {
183
182
  content: "";
184
183
  position: absolute;
@@ -193,7 +192,7 @@ body::before {
193
192
  @media print {
194
193
  .BlogHeader {
195
194
  background-color: inherit;
196
- color: inherit;
195
+ color: black !important;
197
196
  }
198
197
  .AppHeader {
199
198
  display: none !important;
@@ -207,6 +206,9 @@ body::before {
207
206
  .Toggle {
208
207
  display: none !important;
209
208
  }
209
+ .Related {
210
+ display: none !important;
211
+ }
210
212
  .paginate-container {
211
213
  display: none !important;
212
214
  }
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: 1.7.2
4
+ version: 1.8.1
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-11-27 00:00:00.000000000 Z
11
+ date: 2023-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -100,6 +100,20 @@ dependencies:
100
100
  - - "~>"
101
101
  - !ruby/object:Gem::Version
102
102
  version: '0.11'
103
+ - !ruby/object:Gem::Dependency
104
+ name: kramdown-parser-gfm
105
+ requirement: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - "~>"
108
+ - !ruby/object:Gem::Version
109
+ version: 1.1.0
110
+ type: :runtime
111
+ prerelease: false
112
+ version_requirements: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - "~>"
115
+ - !ruby/object:Gem::Version
116
+ version: 1.1.0
103
117
  description:
104
118
  email:
105
119
  - allison@allisonthackston.com
@@ -110,6 +124,7 @@ files:
110
124
  - LICENSE.txt
111
125
  - README.md
112
126
  - _includes/breadcrumbs.html
127
+ - _includes/collection-menu.html
113
128
  - _includes/footer.html
114
129
  - _includes/head.html
115
130
  - _includes/header-appbar.html
@@ -136,6 +151,7 @@ files:
136
151
  - _includes/user-metadata.html
137
152
  - _layouts/category_layout.html
138
153
  - _layouts/default.html
154
+ - _layouts/docs.html
139
155
  - _layouts/home.html
140
156
  - _layouts/landing.html
141
157
  - _layouts/linktree.html