jekyll-theme-profile 0.3.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +127 -55
  3. data/_config.yml +84 -55
  4. data/_includes/breadcrumbs.html +59 -0
  5. data/_includes/header.html +12 -11
  6. data/_includes/link-card.html +6 -6
  7. data/_includes/masthead.html +31 -33
  8. data/_includes/mini-repo-info-card.html +24 -0
  9. data/_includes/nav.html +6 -67
  10. data/_includes/social.html +255 -21
  11. data/_includes/toggle.html +4 -0
  12. data/_layouts/default.html +97 -32
  13. data/_layouts/home.html +14 -12
  14. data/_layouts/page.html +1 -1
  15. data/_layouts/post.html +4 -3
  16. data/assets/css/style.scss +0 -1
  17. metadata +5 -43
  18. data/assets/brands/behance.svg +0 -1
  19. data/assets/brands/docker.svg +0 -1
  20. data/assets/brands/dribbble.svg +0 -1
  21. data/assets/brands/facebook.svg +0 -1
  22. data/assets/brands/hackerrank.svg +0 -1
  23. data/assets/brands/instagram.svg +0 -1
  24. data/assets/brands/keybase.svg +0 -1
  25. data/assets/brands/linkedin.svg +0 -1
  26. data/assets/brands/mastodon.svg +0 -1
  27. data/assets/brands/medium.svg +0 -1
  28. data/assets/brands/stackoverflow.svg +0 -1
  29. data/assets/brands/telegram.svg +0 -1
  30. data/assets/brands/threads.svg +0 -1
  31. data/assets/brands/twitter.svg +0 -1
  32. data/assets/brands/unsplash.svg +0 -1
  33. data/assets/brands/vk.svg +0 -1
  34. data/assets/brands/vscode.svg +0 -1
  35. data/assets/brands/x.svg +0 -3
  36. data/assets/brands/youtube.svg +0 -1
  37. data/assets/img/blog.png +0 -0
  38. data/assets/img/icon-bg.png +0 -0
  39. data/assets/img/icon-sidebar.png +0 -0
  40. data/assets/img/icon-stacked.png +0 -0
  41. data/assets/img/icon-topbar.png +0 -0
  42. data/assets/img/links.png +0 -0
  43. data/assets/img/octocat.png +0 -0
  44. data/assets/img/repositories.png +0 -0
  45. data/assets/img/sidebar-laptop.png +0 -0
  46. data/assets/img/sidebar-phone.png +0 -0
  47. data/assets/img/sidebar-preview.png +0 -0
  48. data/assets/img/sidebar-tablet.png +0 -0
  49. data/assets/img/social-media.png +0 -0
  50. data/assets/img/stacked-laptop.png +0 -0
  51. data/assets/img/stacked-phone.png +0 -0
  52. data/assets/img/stacked-preview.png +0 -0
  53. data/assets/img/stacked-tablet.png +0 -0
  54. data/assets/img/tobpar-phone.png +0 -0
  55. data/assets/img/topbar-laptop.png +0 -0
  56. data/assets/img/topbar-preview.png +0 -0
  57. data/assets/img/topbar-tablet.png +0 -0
  58. data/assets/img/user-image.jpg +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a5af6258d0e45f7a3dcb7f8837553680f25c797d642adf3e6bf9b18ae942029d
4
- data.tar.gz: 78d5515f20708044ad0299eeda68e08faba692e916a5d5b3e67935a2cb7e741e
3
+ metadata.gz: ee08557d9f9c7d0582be919f0b43cb18cf221a4a294ad9263ee38d45a2f3b96a
4
+ data.tar.gz: 076e867cbfb3169ef2250bb711bdb584ee18d5df12c252a773a86eb979d886fc
5
5
  SHA512:
6
- metadata.gz: b3d80170c66f3650923f3c9cbd50b180e7b619b879e2a5469f6ca12727c040f61d73a8d3828910e5545991073f739783cbe5445b46a59978765b1f8eb80de8a8
7
- data.tar.gz: 748240a5d98f5cc4a974c8cd6230d6938a5013f3b86876c839260dc11fd6c97d03b60df3cf9e321075041b05462b336df48b2c7e9314f539b00ab93243176635
6
+ metadata.gz: 5532edfd11381a0fd582724624fd863bf3230e77958c6108a800d8708f990598fe0378cfd8218768bd693b6dcee1cace0e2b4c041c66fadc58871a2e94756499
7
+ data.tar.gz: 110e6fa0a7df2b1e0abe76825ec44980fef6e069addc80c7739c3db59421f703499c6f0ec672e3e2b4997a1a1acb9328c8375449ac0404c36ccf9a2c5dc79f8a
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  ---
2
+ layout: default
2
3
  permalink: /
3
4
  ---
4
5
  ![jekyll-theme-profile](screenshot.png)
@@ -38,31 +39,80 @@ Or install it yourself as:
38
39
  Here's a sample config file you can copy and customize:
39
40
 
40
41
  ```yaml
41
- repository: athackst/jekyll-theme-profile # Your repository name
42
- url: https://username.github.io # The host url for your site
43
- baseurl: "" # or your package name /jekyll-theme-profile (leave blank if it is the username.github.io package)
42
+ repository: athackst/jekyll-theme-profile
43
+ # The style of the website
44
44
  style: topbar # One of "stacked", "sidebar", "topbar"
45
- # background: #(optional)
46
- # image: /assets/img/background-img.jpg # The path/url to the image you want on the background
45
+ # The user/project avatar. If not set the avatar of the project owner will be used.
46
+ user_image: /media/user-image.jpg
47
+ # Optional custom background image and overlay
48
+ # background:
49
+ # image: /media/background-img.jpg
50
+ # single overlay for all or custom for light and dark modes
51
+ # overlay: rgba(0, 0, 0, 0.5)
47
52
  # light:
48
- # overlay: rgba(255, 255, 255, 0.5) # Overlay for light theme
53
+ # overlay: rgba(255, 255, 255, 0.5)
49
54
  # dark:
50
- # overlay: rgba(0, 0, 0, 0.5) # Overlay for dark theme
51
-
52
- links:
53
- # - name: Example full entry
54
- # web_url: https://www.example.com
55
- # image_url: /assets/img/icon-topbar.png
56
- # description: Example description
57
- # - name: Example entry with url and image
58
- # web_url: https://www.example.com
59
- # image_url: /assets/img/icon-sidebar.png
60
- # - name: Example entry with image
61
- # image_url: /assets/img/icon-stacked.png
62
- # - name: Example entry with description
63
- # description: Example Description
64
- # - name: Example entry with only a name
55
+ # overlay: rgba(0, 0, 0, 0.5)
65
56
 
57
+ # repo_info: true # Show the information for the source of this project
58
+ # metadata: false # Show the metadata associated with the user
59
+
60
+ ####################
61
+ # Social media
62
+ # social_image: /screenshot.png # The social media thumbnail image to use in post links.
63
+ # icon_color: "#959da5" # The color of the social media icons on the site
64
+ # social_media: # Your social media accounts
65
+ # behance: your_username
66
+ # dribbble: your_username
67
+ # docker: your_username
68
+ # facebook: your_username
69
+ # github: your_username
70
+ # hackerrank: your_username
71
+ # instagram: your_username
72
+ # keybase: your_username
73
+ # linkedin: your_username
74
+ # mail: email@address
75
+ # mastodon: your_username
76
+ # medium: your_username
77
+ # stackoverflow: your_user_id
78
+ # telegram: your_username
79
+ # threads: your_username
80
+ # tiktok: your_username
81
+ # twitter: your_username
82
+ # unsplash: your_username
83
+ # vk: your_username
84
+ # vscode: your_username
85
+ # youtube: your_username
86
+ # x: your_username
87
+
88
+ ####################
89
+ # Navigation links
90
+ # nav:
91
+ # - name: Topbar
92
+ # url: /test/home/topbar.html
93
+ # - name: Sidebar
94
+ # url: /test/home/sidebar.html
95
+ # - name: Stacked
96
+ # url: /test/home/stacked.html
97
+
98
+ ####################
99
+ # List of links for home page
100
+ # links:
101
+ # - name: Example page with topbar
102
+ # url: /test/page/topbar
103
+ # thumbnail: /media/icon-topbar.png
104
+ # - name: Example page with sidebar
105
+ # url: /test/page/sidebar
106
+ # thumbnail: /media/icon-sidebar.png
107
+ # - name: Example page with header stacked
108
+ # url: /test/page/stacked
109
+ # thumbnail: /media/icon-stacked.png
110
+ # - name: Example page with a custom background
111
+ # url: /test/page/background
112
+ # thumbnail: /media/icon-bg.png
113
+
114
+ ###################
115
+ # Repositories to show on home page
66
116
  repositories:
67
117
  sort_by: stars
68
118
  # sort_by options:
@@ -73,29 +123,14 @@ repositories:
73
123
  archived: true
74
124
  forks: true
75
125
  repositories:
76
- # - respositories to exclude
126
+ # - list of respositories to exclude
77
127
 
78
- social_media:
79
- # behance: your_username
80
- # dribbble: your_username
81
- # docker: your_username
82
- # facebook: your_username
83
- # hackerrank: your_username
84
- # instagram: your_username
85
- # keybase: your_username
86
- # linkedin: your_username
87
- # mastodon: your_username
88
- # medium: your_username
89
- # stackoverflow: your_user_id
90
- # telegram: your_username
91
- # threads: your_username
92
- # twitter: your_username
93
- # unsplash: your_username
94
- # vk: your_username
95
- # vscode: your_username
96
- # youtube: your_username
97
- # x: your_username
128
+ ####################
129
+ # Blog
130
+ posts_limit: 3 # The number of posts to show in home
98
131
 
132
+ paginate: 6 # The number of posts to show per page of pagination of blog posts
133
+ paginate_path: "/assets/blog/page:num"
99
134
  ```
100
135
 
101
136
  You can also use this with github acions. Below is a typical worfklow file
@@ -205,15 +240,15 @@ style: sidebar # One of "stacked", "sidebar", "topbar"
205
240
 
206
241
  #### [Sidebar](/test/home/sidebar.md)
207
242
 
208
- ![Sidebar image](/assets/img/sidebar-preview.png)
243
+ ![Sidebar image](/media/sidebar-preview.png)
209
244
 
210
245
  #### [Stacked](/test/home/stacked.md)
211
246
 
212
- ![Stacked image](/assets/img/stacked-preview.png)
247
+ ![Stacked image](/media/stacked-preview.png)
213
248
 
214
249
  #### [Topbar](/test/home/topbar.md)
215
250
 
216
- ![Topbar image](/assets/img/topbar-preview.png)
251
+ ![Topbar image](/media/topbar-preview.png)
217
252
 
218
253
  #### Background
219
254
 
@@ -221,7 +256,7 @@ You can even change the background by adding the following to your `_config.yml`
221
256
 
222
257
  ```yaml
223
258
  # background:
224
- # image: /assets/img/background-img.jpg
259
+ # image: /media/background-img.jpg
225
260
  # light:
226
261
  # overlay: rgba(255, 255, 255, 0.5)
227
262
  # dark:
@@ -230,23 +265,39 @@ You can even change the background by adding the following to your `_config.yml`
230
265
 
231
266
  [Example page](/test/page/background.md)
232
267
 
268
+ ### Nav
269
+
270
+ In the `nav` section, you can add navigation links that will show up on every page of your website.
271
+
272
+ ![Nav](/media/nav.png){: .border}
273
+
274
+ ```yaml
275
+ nav:
276
+ - name: Topbar
277
+ url: /test/home/topbar.html
278
+ - name: Sidebar
279
+ url: /test/home/sidebar.html
280
+ - name: Stacked
281
+ url: /test/home/stacked.html
282
+ ```
283
+
233
284
  ### Links
234
285
 
235
286
  In the `links` section, you can add links to showcase various pages on the web or your website.
236
287
 
237
- ![Links](/assets/img/links.png){: .border}
288
+ ![Links](/media/links.png){: .border}
238
289
 
239
290
  ```yaml
240
291
  links:
241
292
  - name: Example full entry
242
- web_url: https://www.example.com
243
- image_url: /assets/img/icon-topbar.png
293
+ url: https://www.example.com
294
+ thumbnail: /media/icon-topbar.png
244
295
  description: Example description
245
296
  - name: Example entry with url and image
246
- web_url: https://www.example.com
247
- image_url: /assets/img/icon-sidebar.png
297
+ url: https://www.example.com
298
+ thumbnail: /media/icon-sidebar.png
248
299
  - name: Example entry with image
249
- image_url: /assets/img/icon-stacked.png
300
+ thumbnail: /media/icon-stacked.png
250
301
  - name: Example entry with description
251
302
  description: Example Description
252
303
  - name: Example entry with only a name
@@ -256,7 +307,7 @@ links:
256
307
 
257
308
  The `repositories` section allows you to display your GitHub repositories on your page. You can sort them by stars or latest pushes, set a limit to the number of repositories displayed, and exclude archived, forked, or specific repositories from the list
258
309
 
259
- ![Repositories](/assets/img/repositories.png){: .border}
310
+ ![Repositories](/media/repositories.png){: .border}
260
311
 
261
312
  ```yaml
262
313
  repositories:
@@ -274,9 +325,21 @@ repositories:
274
325
 
275
326
  ### Social media
276
327
 
328
+ #### Setting the social media card
329
+
330
+ You can set the social media image for your site with the setting
331
+
332
+ ```yaml
333
+ social_image: /screenshot.jpg
334
+ ```
335
+
336
+ This works on both yaml frontmatter for a page and in the `_config.yml` file. Page settings will override site settings.
337
+
338
+ #### Adding your socials
339
+
277
340
  Utilize the `social_media` section to add links to your various social media profiles. For each platform simply provide your username or user ID to have the corresponding icon and link appear on your profile.
278
341
 
279
- ![Social Media](/assets/img/social-media.png){: .border}
342
+ ![Social Media](/media/social-media.png){: .border}
280
343
 
281
344
  ```yaml
282
345
  social_media:
@@ -284,15 +347,18 @@ social_media:
284
347
  dribbble: your_username
285
348
  docker: your_username
286
349
  facebook: your_username
350
+ github: your_username
287
351
  hackerrank: your_username
288
352
  instagram: your_username
289
353
  keybase: your_username
290
354
  linkedin: your_username
355
+ mail: email@address
291
356
  mastodon: your_username
292
357
  medium: your_username
293
358
  stackoverflow: your_user_id
294
359
  telegram: your_username
295
360
  threads: your_username
361
+ tiktok: your_username
296
362
  twitter: your_username
297
363
  unsplash: your_username
298
364
  vk: your_username
@@ -301,11 +367,17 @@ social_media:
301
367
  x: your_username
302
368
  ```
303
369
 
370
+ You can also set the icon color. If you don't set an icon color, the original icon colors will be used.
371
+
372
+ ```yaml
373
+ icon_color: "#959da5"
374
+ ```
375
+
304
376
  ### Blog
305
377
 
306
378
  Make entries for the blog the same way you normally would by placing entries in the `_posts` folder. You can adjust the number of entries that show up in the main page by adjusting `posts_limit` in the `_config.yml` file. If you have more posts than the limit, a `Read more` button will link to the paginated blog post page /blog/index.html.
307
379
 
308
- ![Blog](/assets/img/blog.png){: .border}
380
+ ![Blog](/media/blog.png){: .border}
309
381
 
310
382
  ```yaml
311
383
  posts_limit: 3
data/_config.yml CHANGED
@@ -1,14 +1,95 @@
1
1
  repository: athackst/jekyll-theme-profile
2
+ # The style of the website
2
3
  style: topbar # One of "stacked", "sidebar", "topbar"
3
- user_image: /assets/img/user-image.jpg
4
- image: /screenshot.png
4
+ # The user/project avatar. If not set the avatar of the project owner will be used.
5
+ user_image: /media/user-image.jpg
6
+ # Optional custom background image and overlay
5
7
  # background:
6
- # image: /assets/img/background-img.jpg
8
+ # image: /media/background-img.jpg
7
9
  # light:
8
10
  # overlay: rgba(255, 255, 255, 0.5)
9
11
  # dark:
10
12
  # overlay: rgba(0, 0, 0, 0.5)
11
13
 
14
+ repo_info: true # Show the information for the source of this project
15
+ metadata: false # Show the metadata associated with the user
16
+
17
+ ####################
18
+ # Social media
19
+ social_image: /screenshot.png # The social media thumbnail image to use in post links.
20
+ # icon_color: "#959da5" # The color of the social media icons on the site
21
+ social_media: # Your social media accounts
22
+ # behance: your_username
23
+ # dribbble: your_username
24
+ # docker: your_username
25
+ # facebook: your_username
26
+ # github: your_username
27
+ # hackerrank: your_username
28
+ # instagram: your_username
29
+ # keybase: your_username
30
+ # linkedin: your_username
31
+ # mail: email@address
32
+ # mastodon: your_username
33
+ # medium: your_username
34
+ # stackoverflow: your_user_id
35
+ # telegram: your_username
36
+ # threads: your_username
37
+ # tiktok: your_username
38
+ # twitter: your_username
39
+ # unsplash: your_username
40
+ # vk: your_username
41
+ # vscode: your_username
42
+ # youtube: your_username
43
+ # x: your_username
44
+
45
+ ####################
46
+ # Navigation links
47
+ nav:
48
+ - name: Topbar
49
+ url: /test/home/topbar.html
50
+ - name: Sidebar
51
+ url: /test/home/sidebar.html
52
+ - name: Stacked
53
+ url: /test/home/stacked.html
54
+
55
+ ####################
56
+ # List of links for home page
57
+ links:
58
+ - name: Example page with topbar
59
+ url: /test/page/topbar
60
+ thumbnail: /media/icon-topbar.png
61
+ - name: Example page with sidebar
62
+ url: /test/page/sidebar
63
+ thumbnail: /media/icon-sidebar.png
64
+ - name: Example page with header stacked
65
+ url: /test/page/stacked
66
+ thumbnail: /media/icon-stacked.png
67
+ - name: Example page with a custom background
68
+ url: /test/page/background
69
+ thumbnail: /media/icon-bg.png
70
+
71
+ ###################
72
+ # Repositories to show on home page
73
+ repositories:
74
+ sort_by: stars
75
+ # sort_by options:
76
+ # - pushed
77
+ # - stars
78
+ limit: 24
79
+ exclude:
80
+ archived: true
81
+ forks: true
82
+ repositories:
83
+ # - list of respositories to exclude
84
+
85
+ ####################
86
+ # Blog
87
+ posts_limit: 3 # The number of posts to show in home
88
+
89
+ paginate: 6 # The number of posts to show per page of pagination of blog posts
90
+ paginate_path: "/assets/blog/page:num"
91
+
92
+ # ============= general settings for the theme ===============
12
93
  plugins:
13
94
  - jekyll-github-metadata
14
95
  - jekyll-octicons
@@ -39,56 +120,4 @@ exclude:
39
120
  - .github
40
121
  - "*.gem"
41
122
 
42
- paginate: 6
43
- paginate_path: "/assets/blog/page:num"
44
-
45
123
  markdown: kramdown
46
-
47
- posts_limit: 3
48
-
49
- links:
50
- - name: Example page with topbar
51
- web_url: /test/page/topbar
52
- image_url: /assets/img/icon-topbar.png
53
- - name: Example page with sidebar
54
- web_url: /test/page/sidebar
55
- image_url: /assets/img/icon-sidebar.png
56
- - name: Example page with header stacked
57
- web_url: /test/page/stacked
58
- image_url: /assets/img/icon-stacked.png
59
- - name: Example page with a custom background
60
- web_url: /test/page/background
61
- image_url: /assets/img/icon-bg.png
62
-
63
- repositories:
64
- sort_by: stars
65
- # sort_by options:
66
- # - pushed
67
- # - stars
68
- limit: 24
69
- exclude:
70
- archived: true
71
- forks: true
72
- repositories:
73
- # - respositories to exclude
74
-
75
- social_media:
76
- # behance: your_username
77
- # dribbble: your_username
78
- # docker: your_username
79
- # facebook: your_username
80
- # hackerrank: your_username
81
- # instagram: your_username
82
- # keybase: your_username
83
- # linkedin: your_username
84
- # mastodon: your_username
85
- # medium: your_username
86
- # stackoverflow: your_user_id
87
- # telegram: your_username
88
- # threads: your_username
89
- # twitter: your_username
90
- # unsplash: your_username
91
- # vk: your_username
92
- # vscode: your_username
93
- # youtube: your_username
94
- # x: your_username
@@ -0,0 +1,59 @@
1
+ <div class="d-flex flex-items-center">
2
+ <nav aria-label="Breadcrumb" class="f5">
3
+ <ol class="breadcrumb">
4
+ {%- assign crumbs = page.url | split: '/' %}
5
+ {%- assign url = "/" %}
6
+ {%- for crumb in crumbs %}
7
+ {%- if crumb == "" %}
8
+ <li class="breadcrumb-item">
9
+ <a href="{{ site.baseurl}}/">home</a>
10
+ </li>
11
+ {%- continue %}
12
+ {%- endif %}
13
+ {%- assign asset_url = url | append: "assets/" | append: crumb | append: "/" %}
14
+ {%- assign isa_asset = site.pages | where: "url", asset_url | first %}
15
+ {%- assign index_url = url | append: crumb | append: "/index.html" %}
16
+ {%- assign isa_index = site.pages | where: "url", index_url | first %}
17
+ {%- assign folder_url = url | append: crumb | append: "/" %}
18
+ {%- assign isa_folder = site.pages | where: "url", folder_url | first %}
19
+ {%- assign url = url | append: crumb %}
20
+ {%- assign isa_page = site.pages | where: "url", url | first %}
21
+ {%- assign isa_post = site.posts | where: "url", url | first %}
22
+
23
+ {%- assign nice_crumb = crumb | url_decode | replace: ".html", "" | replace: "-", " " | replace: "_", " " |
24
+ downcase %}
25
+
26
+ {%- comment %}
27
+ Checking the crumb: {{ crumb }}
28
+ [asset url: {{ asset_url }}]
29
+ [index url: {{ index_url }}]
30
+ [folder_url: {{ folder_url }}]
31
+ [url: {{ url }}]
32
+ {% for p in site.pages %}
33
+ {{ p.url }}
34
+ {% endfor %}
35
+ {%- endcomment %}
36
+
37
+ {%- if page.url == url or page.url == index_url or page.url == folder_url %}
38
+ <li class="breadcrumb-item breadcrumb-item-selected" aria-current="page">
39
+ <a href="{{ page.url | relative_url }}">{{ nice_crumb }}</a>
40
+ </li>
41
+ {%- break %}
42
+ {%- elsif isa_page or isa_post or isa_index or isa_folder %}
43
+ <li class="breadcrumb-item">
44
+ <a href="{{ url | relative_url }}">{{ nice_crumb }}</a>
45
+ </li>
46
+ {%- elsif isa_asset %}
47
+ <li class="breadcrumb-item">
48
+ <a href="{{ asset_url | relative_url }}">{{ nice_crumb }}</a>
49
+ </li>
50
+ {%- else %}
51
+ <li class="breadcrumb-item">
52
+ {{ nice_crumb }}
53
+ </li>
54
+ {%- endif %}
55
+ {%- unless crumb == crumbs.last %}{%- assign url = url | append: "/" %}{%- endunless %}
56
+ {%- endfor %}
57
+ </ol>
58
+ </nav>
59
+ </div>
@@ -25,12 +25,12 @@
25
25
  {%- assign meta_description = user.bio | strip_html | strip_newlines | xml_escape | truncate: 300 %}
26
26
  {%- endif %}
27
27
 
28
- {%- if page.image %}
29
- {%- assign page_image = page.image %}
30
- {%- elsif site.image %}
31
- {%- assign page_image = site.image %}
28
+ {%- if page.social_image %}
29
+ {%- assign social_image = page.social_image %}
30
+ {%- elsif site.social_image %}
31
+ {%- assign social_image = site.social_image %}
32
32
  {%- else %}
33
- {% assign page_image = user.avatar_url %}
33
+ {% assign social_image = user.avatar_url %}
34
34
  {%- endif %}
35
35
 
36
36
  {%- if page.background_image %}
@@ -52,7 +52,7 @@
52
52
  <meta property="og:type" content="website">
53
53
  <meta property="og:title" content="{{ page_title | absolute_url }}">
54
54
  <meta property="og:description" content="{{ meta_description }}">
55
- <meta property="og:image" content="{{ page_image | absolute_url }}">
55
+ <meta property="og:image" content="{{ social_image | absolute_url }}">
56
56
 
57
57
  <!-- Twitter Meta Tags -->
58
58
  <meta name="twitter:card" content="summary_large_image">
@@ -61,7 +61,7 @@
61
61
  <meta property="twitter:url" content="{{ page_url | absolute_url }}">
62
62
  <meta name="twitter:title" content="{{ page_title }}">
63
63
  <meta name="twitter:description" content="{{ meta_description }}">
64
- <meta name="twitter:image" content="{{ page_image | absolute_url }}">
64
+ <meta name="twitter:image" content="{{ social_image | absolute_url }}">
65
65
  {%- if site.social_media.twitter %}
66
66
  <meta name="twitter:site" content="@{{ site.social_media.twitter }}">
67
67
  {%- endif %}
@@ -153,6 +153,7 @@
153
153
  }
154
154
  // Set the span to the themeIcon class
155
155
  themeIcon.classList = "octicon octicon-" + nextIcon + "-24";
156
+ themeToggle.setAttribute("aria-label", "Color mode: " + nextMode);
156
157
  }
157
158
 
158
159
  themeToggle.addEventListener('click', function () {
@@ -167,15 +168,15 @@
167
168
  </script>
168
169
 
169
170
  {%- if bg_image %}
171
+ {%- if site.backgrournd.overlay %}
172
+ {%- assign dark_overlay = site.background.overlay %}
173
+ {%- assign light_overlay = site.background.overlay %}
174
+ {%- endif %}
170
175
  {%- if site.background.dark.overlay %}
171
176
  {%- assign dark_overlay = site.background.dark.overlay %}
172
- {%- else %}
173
- {%- assign dark_overlay = 'rgba(34, 39, 46, 0.5)' %}
174
177
  {%- endif %}
175
178
  {%- if site.background.light.overlay %}
176
179
  {%- assign light_overlay = site.background.light.overlay %}
177
- {%- else %}
178
- {%- assign light_overlay = 'rgba(255, 255, 255, 0.5)' %}
179
180
  {%- endif %}
180
181
  <style>
181
182
  body {
@@ -1,10 +1,10 @@
1
- {%- if link.web_url %}
2
- <a href="{{ link.web_url | relative_url }}"
1
+ {%- if link.url %}
2
+ <a href="{{ link.url | relative_url }}"
3
3
  class="github-component position-relative hover-grow no-underline d-flex flex-column text-center border border-gray-light rounded-1 p-1">
4
4
  <div class="d-inline-flex flex-items-center">
5
5
  <div class="avatar-7">
6
- {%- if link.image_url %}
7
- <img src="{{ link.image_url | relative_url }}" width="48" height="48"
6
+ {%- if link.thumbnail %}
7
+ <img src="{{ link.thumbnail | relative_url }}" width="48" height="48"
8
8
  class="rounded-1 box-shadow-none img-contain float-left" alt="{{ link.name }}">
9
9
  {%- endif %}
10
10
  </div>
@@ -21,8 +21,8 @@
21
21
  <div class="github-component position-relative height-full d-flex flex-column text-center p-1">
22
22
  <div class="d-inline-flex flex-items-center">
23
23
  <div class="avatar-7">
24
- {%- if link.image_url %}
25
- <img src="{{ link.image_url | relative_url }}" width="48" height="48"
24
+ {%- if link.thumbnail %}
25
+ <img src="{{ link.thumbnail | relative_url }}" width="48" height="48"
26
26
  class="rounded-1 box-shadow-none img-contain float-left" alt="{{ link.name }}">
27
27
  {%- endif %}
28
28
  </div>
@@ -15,44 +15,42 @@
15
15
  {%- endif %}
16
16
 
17
17
  {%- assign metadata_styles = 'd-flex flex-items-center flex-justify-center mb-3' %}
18
- <a href="{{ site.baseurl }}/">
19
- <div class="img-masthead">
20
- <img src="{{ user_img | relative_url }}" alt="{{ name }}" class="avatar avatar-user rounded-circle border color-border-default">
21
- </div>
22
- </a>
23
- <h1 class="mb-2 lh-condensed overflow-wrap-word">{{ name }}</h1>
24
- <p class="mb-3 f4">
25
- {{ user.bio }}
26
- </p>
27
-
28
- <div class="f4 mb-6">
29
- {%- if include.metadata %}
18
+ <div class="Masthead">
19
+ <a href="{{ site.baseurl }}/">
20
+ <div class="img-masthead">
21
+ <img src="{{ user_img | relative_url }}" alt="{{ name }}"
22
+ class="avatar avatar-user rounded-circle border color-border-default">
23
+ </div>
24
+ </a>
25
+ <h1 class="mb-2 lh-condensed overflow-wrap-word">{{ name }}</h1>
26
+ <p class="mb-3 f4">
27
+ {{ user.bio }}
28
+ </p>
30
29
 
30
+ {%- if include.metadata %}
31
+ <div class="f4">
31
32
  {%- if user.name %}
32
- <div class="{{ metadata_styles }}">
33
- {% octicon mark-github height:20 class:"mr-2 v-align-middle" aria-label:GitHub %}
34
- <a href="https://github.com/{{ user.login }}">
35
- @{{ user.login }}
36
- </a>
37
- </div>
33
+ <div class="{{ metadata_styles }}">
34
+ {% octicon mark-github height:20 class:"mr-2 v-align-middle" aria-label:GitHub %}
35
+ <a href="https://github.com/{{ user.login }}">
36
+ @{{ user.login }}
37
+ </a>
38
+ </div>
38
39
  {%- endif %}
39
40
  {%- if user.email %}
40
- <div class="{{ metadata_styles }}">
41
- {% octicon mail height:20 class:"mr-2 v-align-middle" aria-label:email %}
42
- <a href="mailto:{{ user.email }}">
43
- {{ user.email }}
44
- </a>
45
- </div>
41
+ <div class="{{ metadata_styles }}">
42
+ {% octicon mail height:20 class:"mr-2 v-align-middle" aria-label:email %}
43
+ <a href="mailto:{{ user.email }}">
44
+ {{ user.email }}
45
+ </a>
46
+ </div>
46
47
  {%- endif %}
47
48
  {%- if user.location %}
48
- <div class="{{ metadata_styles }}">
49
- {% octicon location height:20 class:"mr-2 v-align-middle" aria-label:Location %}
50
- {{ user.location }}
51
- </div>
49
+ <div class="{{ metadata_styles }}">
50
+ {% octicon location height:20 class:"mr-2 v-align-middle" aria-label:Location %}
51
+ {{ user.location }}
52
+ </div>
52
53
  {%- endif %}
53
-
54
- {%- endif %}
55
- {%- if site.social_media %}
56
- {%- include social.html %}
57
- {%- endif %}
54
+ </div>
55
+ {%- endif %}
58
56
  </div>