jekyll-theme-open-project 1.2.4 → 1.2.5
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/README.md +5 -1
- data/_config.yml +1 -0
- data/_includes/post-author-pic.html +13 -0
- data/_includes/post-card.html +1 -5
- data/_includes/social-links.html +4 -0
- data/_layouts/docs-base.html +7 -4
- data/_layouts/post.html +1 -5
- data/_sass/jekyll-theme-open-project.scss +12 -16
- data/_sass/open-project-base.scss +2 -0
- metadata +5 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f554f580dec2539c21dafb88d79d1b8e72a5a8c2ca86aca931d0234420a050ff
|
|
4
|
+
data.tar.gz: abcd76ed84e0ecc88ed9b0f1ca3d42c08b720dff3dbd6acddb36b63b4ab7cee5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ec98188faff28d0c290e4a6a0c0b2061599062bc8ceab89b5fea78afb9448e67540823efd3fef98415acc29d24c054457dc00027d96727330867a3b03e25e41c
|
|
7
|
+
data.tar.gz: 89f5a8b43ba97b7abba070275f4c5d575892cfa6cf581b40a0adc0d8ebc8d12881b985ed22384938daa7b0fe28a6f69752c7ce64c422c70e45dea384f47aa629
|
data/README.md
CHANGED
|
@@ -205,7 +205,8 @@ excerpt: >-
|
|
|
205
205
|
Post excerpt goes here, and supports inline formatting only.
|
|
206
206
|
|
|
207
207
|
author:
|
|
208
|
-
email: <author’s email
|
|
208
|
+
email: <author’s email, required>
|
|
209
|
+
use_picture: <`gravatar` (default), `assets`, an image path relative to assets/, or `no`>
|
|
209
210
|
name: <author’s full name>
|
|
210
211
|
social_links:
|
|
211
212
|
- https://twitter.com/username
|
|
@@ -217,6 +218,9 @@ author:
|
|
|
217
218
|
For hub-wide posts, put posts under _posts/ in site root and name files e.g.
|
|
218
219
|
`2018-04-20-welcome-to-jekyll.markdown` (no change from the usual Jekyll setup).
|
|
219
220
|
|
|
221
|
+
If ``use_picture`` is set to "assets", author photo would be expected to
|
|
222
|
+
reside under assets/blog/authors/<author email>.jpg.
|
|
223
|
+
|
|
220
224
|
For project posts, see below the project site section.
|
|
221
225
|
|
|
222
226
|
|
data/_config.yml
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{% if include.author.email and include.author.use_picture != false %}
|
|
2
|
+
{% assign use_picture = include.author.use_picture | default: "gravatar" %}
|
|
3
|
+
<span class="author-avatar">
|
|
4
|
+
{% if use_picture == "gravatar" %}
|
|
5
|
+
{% assign author_pic_url = "https://gravatar.com/avatar/" | append: include.author.email | append: "?s=64" %}
|
|
6
|
+
{% elsif use_picture == "assets" %}
|
|
7
|
+
{% assign author_pic_url = "/assets/blog/authors/" | append: include.author.plaintext_email | append: ".jpg" %}
|
|
8
|
+
{% else %}
|
|
9
|
+
{% assign author_pic_url = "/assets" | append: use_picture %}
|
|
10
|
+
{% endif %}
|
|
11
|
+
<img src="{{ author_pic_url | relative_url }}">
|
|
12
|
+
</span>
|
|
13
|
+
{% endif %}
|
data/_includes/post-card.html
CHANGED
|
@@ -35,11 +35,7 @@
|
|
|
35
35
|
|
|
36
36
|
<footer class="meta">
|
|
37
37
|
{% if include.post.author.name %}
|
|
38
|
-
{%
|
|
39
|
-
<span class="author-avatar">
|
|
40
|
-
<img src="https://gravatar.com/avatar/{{ include.post.author.email }}?s=32">
|
|
41
|
-
</span>
|
|
42
|
-
{% endif %}
|
|
38
|
+
{% include post-author-pic.html author=include.post.author %}
|
|
43
39
|
<span class="author-name">
|
|
44
40
|
{{ include.post.author.name }}
|
|
45
41
|
</span>
|
data/_includes/social-links.html
CHANGED
|
@@ -6,6 +6,10 @@
|
|
|
6
6
|
<i class="fab fa-twitter"></i>
|
|
7
7
|
{% elsif link contains "github.com" %}
|
|
8
8
|
<i class="fab fa-github"></i>
|
|
9
|
+
{% elsif link contains "facebook.com" %}
|
|
10
|
+
<i class="fab fa-facebook"></i>
|
|
11
|
+
{% elsif link contains "linkedin.com" %}
|
|
12
|
+
<i class="fab fa-linkedin"></i>
|
|
9
13
|
{% endif %}
|
|
10
14
|
</a>
|
|
11
15
|
{% endfor %}
|
data/_layouts/docs-base.html
CHANGED
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
layout: default
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
+
{% assign title = page.title | default: layout.title %}
|
|
6
|
+
{% assign prominent_title = page.article_header_title | default: layout.article_header_title %}
|
|
5
7
|
{% assign nav = page.navigation | default: layout.navigation %}
|
|
8
|
+
{% assign base_url = nav.base_url | default: page.base_url | default: layout.base_url %}
|
|
6
9
|
{% assign num_top_nav_items = nav.items | size %}
|
|
7
10
|
|
|
8
11
|
{% for item in nav.items %}
|
|
@@ -25,9 +28,9 @@ layout: default
|
|
|
25
28
|
|
|
26
29
|
|
|
27
30
|
<header class="documentation-header {% if num_top_nav_items > 0 %} has-nav {% endif %}">
|
|
28
|
-
{% if
|
|
31
|
+
{% if title %}
|
|
29
32
|
<span class="section-title">
|
|
30
|
-
{{
|
|
33
|
+
{{ title|replace: " ", " " }}
|
|
31
34
|
</span>
|
|
32
35
|
{% endif %}
|
|
33
36
|
|
|
@@ -58,7 +61,7 @@ layout: default
|
|
|
58
61
|
<nav class="docs-nav">
|
|
59
62
|
<ul class="nav-items">
|
|
60
63
|
{% for item in nav.items %}
|
|
61
|
-
{% include _nav-item.html selected_item=selected_item item=item %}
|
|
64
|
+
{% include _nav-item.html selected_item=selected_item item=item base_url=base_url %}
|
|
62
65
|
{% endfor %}
|
|
63
66
|
</ul>
|
|
64
67
|
</nav>
|
|
@@ -66,7 +69,7 @@ layout: default
|
|
|
66
69
|
<article>
|
|
67
70
|
<header>
|
|
68
71
|
<div class="title">
|
|
69
|
-
<h1 class="text">{{
|
|
72
|
+
<h1 class="text">{{ prominent_title | default: title }}</h1>
|
|
70
73
|
</div>
|
|
71
74
|
|
|
72
75
|
<div>
|
data/_layouts/post.html
CHANGED
|
@@ -8,11 +8,7 @@ layout: default
|
|
|
8
8
|
|
|
9
9
|
<div class="meta">
|
|
10
10
|
{% if page.author.name %}
|
|
11
|
-
{%
|
|
12
|
-
<span class="author-avatar">
|
|
13
|
-
<img src="https://gravatar.com/avatar/{{ page.author.email }}?s=32">
|
|
14
|
-
</span>
|
|
15
|
-
{% endif %}
|
|
11
|
+
{% include post-author-pic.html author=page.author %}
|
|
16
12
|
<span class="author-name">
|
|
17
13
|
{{ page.author.name }}
|
|
18
14
|
</span>
|
|
@@ -67,20 +67,6 @@ main {
|
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
> .underlay, > section {
|
|
71
|
-
&:last-child {
|
|
72
|
-
padding-bottom: 50px;
|
|
73
|
-
@media screen and (min-width: $bigscreen-breakpoint) {
|
|
74
|
-
padding-bottom: 100px;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
&:only-child {
|
|
78
|
-
@media screen and (min-width: $bigscreen-breakpoint) {
|
|
79
|
-
padding-bottom: 130px;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
70
|
> .underlay > .featured-posts {
|
|
85
71
|
@extend .main-section;
|
|
86
72
|
|
|
@@ -136,8 +122,14 @@ main {
|
|
|
136
122
|
.layout--product > &,
|
|
137
123
|
.layout--post > &,
|
|
138
124
|
.layout--spec > &,
|
|
139
|
-
.layout--project-index >
|
|
140
|
-
|
|
125
|
+
.layout--project-index > &,
|
|
126
|
+
.layout--home > &,
|
|
127
|
+
.docs-page > & {
|
|
128
|
+
padding-bottom: 50px;
|
|
129
|
+
|
|
130
|
+
@media screen and (min-width: $bigscreen-breakpoint) {
|
|
131
|
+
padding-bottom: 100px;
|
|
132
|
+
}
|
|
141
133
|
}
|
|
142
134
|
|
|
143
135
|
.layout--spec-index > &,
|
|
@@ -300,6 +292,10 @@ main {
|
|
|
300
292
|
top: -10px;
|
|
301
293
|
margin-bottom: 14px;
|
|
302
294
|
|
|
295
|
+
.ico-ext {
|
|
296
|
+
display: none;
|
|
297
|
+
}
|
|
298
|
+
|
|
303
299
|
@media screen and (min-width: $bigscreen-breakpoint) {
|
|
304
300
|
// "Remove" from the flow, and offset to the left
|
|
305
301
|
$height: 100px;
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jekyll-theme-open-project
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-01-
|
|
11
|
+
date: 2019-01-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jekyll
|
|
@@ -72,14 +72,14 @@ dependencies:
|
|
|
72
72
|
requirements:
|
|
73
73
|
- - '='
|
|
74
74
|
- !ruby/object:Gem::Version
|
|
75
|
-
version: 1.2.
|
|
75
|
+
version: 1.2.5
|
|
76
76
|
type: :runtime
|
|
77
77
|
prerelease: false
|
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
|
79
79
|
requirements:
|
|
80
80
|
- - '='
|
|
81
81
|
- !ruby/object:Gem::Version
|
|
82
|
-
version: 1.2.
|
|
82
|
+
version: 1.2.5
|
|
83
83
|
- !ruby/object:Gem::Dependency
|
|
84
84
|
name: bundler
|
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -172,6 +172,7 @@ files:
|
|
|
172
172
|
- _includes/logo.html
|
|
173
173
|
- _includes/nav-links.html
|
|
174
174
|
- _includes/nav-page-link.html
|
|
175
|
+
- _includes/post-author-pic.html
|
|
175
176
|
- _includes/post-card.html
|
|
176
177
|
- _includes/project-doc-page.html
|
|
177
178
|
- _includes/project-nav.html
|