jekyll-theme-profile 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/_includes/header.html +9 -32
- data/_includes/masthead.html +2 -13
- data/_includes/posts.html +1 -4
- data/_includes/toggle.html +1 -1
- data/_layouts/default.html +32 -56
- data/_layouts/home.html +1 -5
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ef3c28397bfe7d16a383f40725903daf4c80d615c796d92912b913ed072cf80d
|
|
4
|
+
data.tar.gz: 9540fd8e91c9d5c8650f66ce02fd8d52e72c691d50778662c33d89cf1e2b2931
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 691f10895f2fa78022374e06d1f025ac53bf2518c16227ae4b40d67fb8e8167239a05a31791fd685766f112e11252635cea32354a3af9ae084a4e236ef084197
|
|
7
|
+
data.tar.gz: 2eec4d50cb3740b3b6ee4c08f4c987c8ca165dce646d658d7ee8a8df42589f45dae15bd3cd26a7e0a91d1a927a14c9c7d0dda97dfdafce2c5a95916128bba7e3
|
data/_includes/header.html
CHANGED
|
@@ -7,37 +7,14 @@
|
|
|
7
7
|
{%- assign page_url = page.url %}
|
|
8
8
|
{%- endif %}
|
|
9
9
|
|
|
10
|
-
{%-
|
|
11
|
-
|
|
12
|
-
{%-
|
|
13
|
-
{%- assign page_title = site.title %}
|
|
14
|
-
{%- else %}
|
|
15
|
-
{%- assign page_title = user.name %}
|
|
16
|
-
{%- endif %}
|
|
17
|
-
|
|
18
|
-
{%- if page.description %}
|
|
19
|
-
{%- assign meta_description = page.description %}
|
|
20
|
-
{%- elsif page.path contains '_posts' %}
|
|
21
|
-
{%- assign meta_description = page.content | strip_html | strip_newlines | xml_escape | truncate: 300 %}
|
|
22
|
-
{%- elsif site.description %}
|
|
23
|
-
{%- assign meta_description = site.description %}
|
|
24
|
-
{%- else %}
|
|
25
|
-
{%- assign meta_description = user.bio | strip_html | strip_newlines | xml_escape | truncate: 300 %}
|
|
26
|
-
{%- endif %}
|
|
27
|
-
|
|
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
|
-
{%- else %}
|
|
33
|
-
{% assign social_image = user.avatar_url %}
|
|
34
|
-
{%- endif %}
|
|
35
|
-
|
|
36
|
-
{%- if page.background_image %}
|
|
37
|
-
{%- assign bg_image = page.background_image %}
|
|
38
|
-
{%- elsif site.background.image %}
|
|
39
|
-
{%- assign bg_image = site.background.image %}
|
|
10
|
+
{%- assign page_title = page.title | default: site.title | default: user.name | default: user.login %}
|
|
11
|
+
{%- if page.path contains '_posts' %}
|
|
12
|
+
{%- assign post_description = page.content | strip_html | strip_newlines | xml_escape | truncate: 300 %}
|
|
40
13
|
{%- endif %}
|
|
14
|
+
{%- assign user_bio = user.bio | strip_html | strip_newlines | xml_escape | truncate: 300 %}
|
|
15
|
+
{%- assign meta_description = page.description | default: post_description | default: site_description | default: user_bio %}
|
|
16
|
+
{%- assign social_image = page.social_image | default: site.social_image | default: user.avatar_url %}
|
|
17
|
+
{%- assign bg_image = page.background_image | default: site.background.image | default: null %}
|
|
41
18
|
|
|
42
19
|
<head>
|
|
43
20
|
<meta charset="utf-8">
|
|
@@ -50,7 +27,7 @@
|
|
|
50
27
|
<!-- Opengraph Meta Tags -->
|
|
51
28
|
<meta property="og:url" content="{{ page_url | absolute_url }}">
|
|
52
29
|
<meta property="og:type" content="website">
|
|
53
|
-
<meta property="og:title" content="{{ page_title
|
|
30
|
+
<meta property="og:title" content="{{ page_title }}">
|
|
54
31
|
<meta property="og:description" content="{{ meta_description }}">
|
|
55
32
|
<meta property="og:image" content="{{ social_image | absolute_url }}">
|
|
56
33
|
|
|
@@ -69,7 +46,7 @@
|
|
|
69
46
|
<link href="{{ '/assets/css/theme.css' | relative_url }}" rel="stylesheet" type="text/css">
|
|
70
47
|
<link href="{{ '/assets/css/style.css' | relative_url }}" rel="stylesheet" type="text/css">
|
|
71
48
|
<link rel="icon" type="image/x-icon" href="{{ '/assets/img/favicon.ico' | relative_url}}">
|
|
72
|
-
<link rel="canonical" href="{{ page.url |
|
|
49
|
+
<link rel="canonical" href="{{ page.url | absolute_url }}">
|
|
73
50
|
|
|
74
51
|
|
|
75
52
|
{%- if site.analytics.provider == 'google' %}
|
data/_includes/masthead.html
CHANGED
|
@@ -1,18 +1,7 @@
|
|
|
1
1
|
{%- assign user = site.github.owner %}
|
|
2
2
|
|
|
3
|
-
{%-
|
|
4
|
-
{%- assign
|
|
5
|
-
{%- elsif user.name %}
|
|
6
|
-
{%- assign name = user.name %}
|
|
7
|
-
{%- else %}
|
|
8
|
-
{%- assign name = user.login %}
|
|
9
|
-
{%- endif %}
|
|
10
|
-
|
|
11
|
-
{%- if site.user_image %}
|
|
12
|
-
{%- assign user_img = site.user_image %}
|
|
13
|
-
{%- else %}
|
|
14
|
-
{%- assign user_img = user.avatar_url %}
|
|
15
|
-
{%- endif %}
|
|
3
|
+
{%- assign name = site.title | default: user.name | default: user.login %}
|
|
4
|
+
{%- assign user_img = site.user_image | default: user.avatar_url %}
|
|
16
5
|
|
|
17
6
|
{%- assign metadata_styles = 'd-flex flex-items-center flex-justify-center mb-3' %}
|
|
18
7
|
<div class="Masthead">
|
data/_includes/posts.html
CHANGED
data/_includes/toggle.html
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
<div class="d-flex flex-items-center">
|
|
2
|
-
<button id="theme-toggle" class="btn btn-
|
|
2
|
+
<button id="theme-toggle" class="btn btn-octicon mr-2 tooltipped tooltipped-se" aria-label="Color mode" type="button"><span id="theme-icon"
|
|
3
3
|
class="octicon octicon-moon-24"></span></button>
|
|
4
4
|
</div>
|
data/_layouts/default.html
CHANGED
|
@@ -1,36 +1,11 @@
|
|
|
1
1
|
{%- assign user = site.github.owner %}
|
|
2
2
|
|
|
3
|
-
{%-
|
|
4
|
-
{%- assign
|
|
5
|
-
{%-
|
|
6
|
-
{%- assign
|
|
7
|
-
{%-
|
|
3
|
+
{%- assign style = page.style | default: site.style %}
|
|
4
|
+
{%- assign breadcrumbs = page.breadcrumbs | default: false %}
|
|
5
|
+
{%- assign name = site.title | default: user.name | default: user.login %}
|
|
6
|
+
{%- assign user_img = site.user_image | default: user.avatar_url %}
|
|
7
|
+
{%- assign metadata = site.metadata | default: true %}
|
|
8
8
|
|
|
9
|
-
{%- if page.breadcrumbs %}
|
|
10
|
-
{%- assign breadcrumbs = page.breadcrumbs %}
|
|
11
|
-
{%- else %}
|
|
12
|
-
{%- assign breadcrumbs = false %}
|
|
13
|
-
{%- endif %}
|
|
14
|
-
|
|
15
|
-
{%- if site.title %}
|
|
16
|
-
{%- assign name = site.title %}
|
|
17
|
-
{%- elsif user.name %}
|
|
18
|
-
{%- assign name = user.name %}
|
|
19
|
-
{%- else %}
|
|
20
|
-
{%- assign name = user.login %}
|
|
21
|
-
{%- endif %}
|
|
22
|
-
|
|
23
|
-
{%- if site.user_image %}
|
|
24
|
-
{%- assign user_img = site.user_image %}
|
|
25
|
-
{%- else %}
|
|
26
|
-
{%- assign user_img = user.avatar_url %}
|
|
27
|
-
{%- endif %}
|
|
28
|
-
|
|
29
|
-
{%- if site.metadata == true or site.metadata == false %}
|
|
30
|
-
{%- assign metadata = site.metadata %}
|
|
31
|
-
{%- else %}
|
|
32
|
-
{%- assign metadata = true %}
|
|
33
|
-
{%- endif %}
|
|
34
9
|
|
|
35
10
|
<!doctype html>
|
|
36
11
|
<html lang="en" class="min-height-full min-width" data-color-mode="auto" data-light-theme="light"
|
|
@@ -41,36 +16,35 @@
|
|
|
41
16
|
<body class="min-height-full">
|
|
42
17
|
{%- if style == 'stacked' %}
|
|
43
18
|
<div class="container-lg min-height-full">
|
|
44
|
-
|
|
45
|
-
<div class="Profile text-center py-1">
|
|
46
|
-
<div class="d-flex flex-justify-end pt-2">
|
|
47
|
-
{%- include toggle.html %}
|
|
48
|
-
</div>
|
|
19
|
+
<div class="Profile text-center">
|
|
49
20
|
{%- include masthead.html metadata=metadata %}
|
|
50
21
|
{%- if site.repo_info %}
|
|
51
|
-
<div class="
|
|
22
|
+
<div class="py-2">
|
|
52
23
|
{% include mini-repo-info-card.html class="Box-row-link" %}
|
|
53
24
|
</div>
|
|
54
25
|
{%- endif %}
|
|
55
26
|
{%- if site.social_media %}
|
|
56
|
-
<div class="
|
|
27
|
+
<div class="py-2 px-2">
|
|
57
28
|
{%- include social.html %}
|
|
58
29
|
</div>
|
|
59
30
|
{%- endif %}
|
|
31
|
+
{%- if site.nav %}
|
|
32
|
+
<nav class="Header d-flex flex-column flex-md-row flex-justify-center">
|
|
33
|
+
{%- include nav.html %}
|
|
34
|
+
</nav>
|
|
35
|
+
{%- endif %}
|
|
60
36
|
</div>
|
|
61
|
-
{%- if site.nav %}
|
|
62
|
-
<nav class="Header d-flex flex-column flex-md-row flex-justify-center">
|
|
63
|
-
{%- include nav.html %}
|
|
64
|
-
</nav>
|
|
65
|
-
{%- endif %}
|
|
66
37
|
<div class="color-bg-default">
|
|
67
|
-
|
|
68
|
-
|
|
38
|
+
<div class="d-flex p-2">
|
|
39
|
+
{%- if breadcrumbs %}
|
|
69
40
|
{%- include breadcrumbs.html %}
|
|
41
|
+
{%- endif %}
|
|
42
|
+
<div class="flex-1">
|
|
43
|
+
</div>
|
|
44
|
+
{% include toggle.html %}
|
|
70
45
|
</div>
|
|
71
|
-
{%- endif %}
|
|
72
46
|
<div class="p-responsive markdown-body ">
|
|
73
|
-
|
|
47
|
+
{{ content }}
|
|
74
48
|
</div>
|
|
75
49
|
</div>
|
|
76
50
|
</div>
|
|
@@ -79,12 +53,12 @@
|
|
|
79
53
|
<div class="Profile col-lg-4 border-gray-light pt-6 text-center">
|
|
80
54
|
{%- include masthead.html metadata=metadata %}
|
|
81
55
|
{%- if site.repo_info %}
|
|
82
|
-
<div class="
|
|
83
|
-
{% include mini-repo-info-card.html %}
|
|
56
|
+
<div class="py-2">
|
|
57
|
+
{% include mini-repo-info-card.html class="Box-row-link" %}
|
|
84
58
|
</div>
|
|
85
59
|
{%- endif %}
|
|
86
60
|
{%- if site.social_media %}
|
|
87
|
-
<div class="
|
|
61
|
+
<div class="py-2 px-2">
|
|
88
62
|
{%- include social.html %}
|
|
89
63
|
</div>
|
|
90
64
|
{%- endif %}
|
|
@@ -130,9 +104,6 @@
|
|
|
130
104
|
{% include mini-repo-info-card.html class="Header-link" %}
|
|
131
105
|
</div>
|
|
132
106
|
{% endif %}
|
|
133
|
-
<div class="Header-item mr-3">
|
|
134
|
-
{% include toggle.html %}
|
|
135
|
-
</div>
|
|
136
107
|
<div class="Header-item mr-0">
|
|
137
108
|
<a href="https://github.com/{{ user.login }}" class="Header-link d-flex flex-items-center">
|
|
138
109
|
<img class="avatar img-cover" height="32" width="32" alt="{{ name }}"
|
|
@@ -149,10 +120,15 @@
|
|
|
149
120
|
{%- endif %}
|
|
150
121
|
</div>
|
|
151
122
|
</div>
|
|
152
|
-
<div class="container-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
123
|
+
<div class="container-xl p-3 color-bg-default flex-1">
|
|
124
|
+
<div class="d-flex pb-2">
|
|
125
|
+
{%- if breadcrumbs %}
|
|
126
|
+
{%- include breadcrumbs.html %}
|
|
127
|
+
{%- endif %}
|
|
128
|
+
<div class="flex-1">
|
|
129
|
+
</div>
|
|
130
|
+
{% include toggle.html %}
|
|
131
|
+
</div>
|
|
156
132
|
<div class="p-responsive markdown-body">
|
|
157
133
|
{{ content }}
|
|
158
134
|
</div>
|
data/_layouts/home.html
CHANGED
|
@@ -3,11 +3,7 @@ layout: default
|
|
|
3
3
|
---
|
|
4
4
|
<div class="py-3">
|
|
5
5
|
{%- assign posts_total = site.posts | size %}
|
|
6
|
-
{%-
|
|
7
|
-
{%- assign posts_limit = site.posts_limit %}
|
|
8
|
-
{%- else %}
|
|
9
|
-
{%- assign posts_limit = posts_total %}
|
|
10
|
-
{%- endif %}
|
|
6
|
+
{%- assign posts_limit = site.posts_limit | default: posts_total %}
|
|
11
7
|
|
|
12
8
|
{%- unless content == "" %}
|
|
13
9
|
{{ content }}
|
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.3.
|
|
4
|
+
version: 1.3.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
|
+
date: 2023-09-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jekyll
|