bay_jekyll_theme 1.0.10 → 1.0.15
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 +17 -0
- data/_includes/footer.html +1 -1
- data/_includes/header.html +1 -1
- data/_layouts/work.html +7 -5
- data/_sass/_base.scss +1 -1
- data/_sass/_blog.scss +1 -1
- data/_sass/_layout.scss +7 -11
- data/_sass/_post.scss +5 -5
- data/_sass/_site.scss +2 -2
- data/_sass/_work.scss +6 -5
- data/assets/css/main.scss +3 -1
- data/assets/img/icons/dribbble.png +0 -0
- data/assets/img/icons/dribbble@2x.png +0 -0
- data/assets/img/wechat-qr-code.png +0 -0
- data/assets/img/wechat-qr-code@2x.png +0 -0
- data/assets/js/site.js +22 -3
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62306bd24ecf4690e4743065bfac83da9132b53f89937833c38db8c021cc0830
|
4
|
+
data.tar.gz: c1aa63b6a7989bce66c561e3ccfac1caeb69eb73681434e495630f2022cdd3a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0cad75e0a7fd463e3f0aaacda8cf0dbe7586c7a8797d14654f8db1c4adda7915e3a6b6bdb488e3c6f898938f06453798f45edf0537b64aa84d329c2bd08f7eb
|
7
|
+
data.tar.gz: 075d46ed8043f05a023d63f11909da82d1d2027cc9576d6da58f9cad9ed85de0eefa6f1182cf87a10b38f8ccdd1f515ff87793b55454a969529a16ae7de318bf
|
data/README.md
CHANGED
@@ -8,6 +8,10 @@ Inspired by [dangrover.com](http://dangrover.com/). Current theme used at [eliot
|
|
8
8
|
|
9
9
|
### Installation
|
10
10
|
|
11
|
+
|
12
|
+
The easiest solution is to [fork this repo](https://github.com/eliottvincent/bay/fork).
|
13
|
+
If you want to start from a clean website, follow the steps bellow:
|
14
|
+
|
11
15
|
Create a new Jekyll website:
|
12
16
|
```
|
13
17
|
jekyll new mysite
|
@@ -30,6 +34,10 @@ with:
|
|
30
34
|
```
|
31
35
|
theme: bay_jekyll_theme
|
32
36
|
```
|
37
|
+
or, for GitHub Pages:
|
38
|
+
```
|
39
|
+
remote_theme: eliottvincent/bay
|
40
|
+
```
|
33
41
|
|
34
42
|
Finally, install the dependencies:
|
35
43
|
```
|
@@ -78,8 +86,12 @@ footer:
|
|
78
86
|
link: http://linkedin.com/in/YourLinkedInUsername
|
79
87
|
- name: GitHub
|
80
88
|
link: http://github.com/YourGitHubUsername
|
89
|
+
- name: Dribbble
|
90
|
+
link: https://dribbble.com/YourDribbbleUsername
|
81
91
|
- name: Weibo
|
82
92
|
link: http://weibo.com/u/YourWeiboUsername
|
93
|
+
- name: RSS
|
94
|
+
link: /feed.xml
|
83
95
|
```
|
84
96
|
Re-run `jekyll serve` to see the footer updated.
|
85
97
|
|
@@ -117,6 +129,11 @@ Your website is ready!
|
|
117
129
|
|
118
130
|
### Development
|
119
131
|
|
132
|
+
#### Run development instance (with hot-reload)
|
133
|
+
```sh
|
134
|
+
bundle exec jekyll serve
|
135
|
+
```
|
136
|
+
|
120
137
|
#### Build and publish the gem
|
121
138
|
```sh
|
122
139
|
gem build bay_jekyll_theme.gemspec
|
data/_includes/footer.html
CHANGED
@@ -53,7 +53,7 @@
|
|
53
53
|
{% if site.footer.show_powered_by == true %}
|
54
54
|
<div class="footer-col footer-col-3 powered-by">
|
55
55
|
<p>
|
56
|
-
powered by <a href="https://github.com/eliottvincent/bay">Bay</a> |
|
56
|
+
powered by <a href="https://github.com/eliottvincent/bay">Bay</a> | {{ 'now' | date: "%Y" }}
|
57
57
|
</p>
|
58
58
|
</div>
|
59
59
|
{% endif %}
|
data/_includes/header.html
CHANGED
data/_layouts/work.html
CHANGED
@@ -12,16 +12,18 @@
|
|
12
12
|
{{ content }}
|
13
13
|
|
14
14
|
{% for item in page.items %}
|
15
|
-
<
|
15
|
+
<div class="work-item">
|
16
16
|
<img
|
17
17
|
src="{{ item.image.src | absolute_url }}"
|
18
18
|
alt="{{ item.image.alt }}"
|
19
19
|
class="work-bubble"
|
20
20
|
/>
|
21
|
-
<
|
22
|
-
|
23
|
-
|
24
|
-
|
21
|
+
<span class="work-text">
|
22
|
+
<strong>{{ item.title }}</strong>
|
23
|
+
—
|
24
|
+
{{ item.description }}
|
25
|
+
</span>
|
26
|
+
</div>
|
25
27
|
{% endfor %}
|
26
28
|
</div>
|
27
29
|
</div>
|
data/_sass/_base.scss
CHANGED
data/_sass/_blog.scss
CHANGED
data/_sass/_layout.scss
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
padding-top: 10px;
|
9
9
|
padding-bottom: 10px;
|
10
10
|
|
11
|
-
@include media-query($on-
|
11
|
+
@include media-query($on-mobile) {
|
12
12
|
padding-top: 0;
|
13
13
|
padding-bottom: 0;
|
14
14
|
}
|
@@ -34,6 +34,7 @@
|
|
34
34
|
* Site nav
|
35
35
|
*/
|
36
36
|
.site-nav {
|
37
|
+
z-index: 10;
|
37
38
|
float: right;
|
38
39
|
line-height: 56px;
|
39
40
|
|
@@ -51,7 +52,7 @@
|
|
51
52
|
}
|
52
53
|
}
|
53
54
|
|
54
|
-
@include media-query($on-
|
55
|
+
@include media-query($on-mobile) {
|
55
56
|
position: absolute;
|
56
57
|
top: 12px;
|
57
58
|
right: 24px;
|
@@ -69,20 +70,15 @@
|
|
69
70
|
padding-top: 4px;
|
70
71
|
text-align: center;
|
71
72
|
|
72
|
-
background: #ffffff url(/assets/img/menu.png) 6px 4px no-repeat;
|
73
|
+
background: #ffffff url($base-url + '/assets/img/menu.png') 6px 4px no-repeat;
|
73
74
|
}
|
74
75
|
|
75
|
-
.
|
76
|
+
.menu {
|
76
77
|
clear: both;
|
77
78
|
display: none;
|
78
79
|
background-color: #ffffff;
|
79
80
|
min-width: 10em;
|
80
|
-
}
|
81
|
-
|
82
|
-
&:hover .trigger {
|
83
|
-
display: block;
|
84
81
|
padding-bottom: 5px;
|
85
|
-
background-color: #ffffff;
|
86
82
|
}
|
87
83
|
|
88
84
|
.page-link {
|
@@ -100,7 +96,7 @@
|
|
100
96
|
border-top: 1px solid $grey-color-light;
|
101
97
|
padding: $spacing-unit 0;
|
102
98
|
|
103
|
-
@include media-query($on-
|
99
|
+
@include media-query($on-mobile) {
|
104
100
|
padding-top: 10px;
|
105
101
|
}
|
106
102
|
}
|
@@ -141,7 +137,7 @@
|
|
141
137
|
color: $grey-color;
|
142
138
|
}
|
143
139
|
|
144
|
-
@include media-query($on-
|
140
|
+
@include media-query($on-mobile) {
|
145
141
|
.footer-col {
|
146
142
|
float: none;
|
147
143
|
width: 100%;
|
data/_sass/_post.scss
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
|
10
10
|
font-family: $base-font-family;
|
11
11
|
|
12
|
-
@include media-query($on-
|
12
|
+
@include media-query($on-mobile) {
|
13
13
|
font-size: 34px;
|
14
14
|
}
|
15
15
|
}
|
@@ -24,7 +24,7 @@
|
|
24
24
|
position: relative;
|
25
25
|
top: -0.3em;
|
26
26
|
|
27
|
-
@include media-query($on-
|
27
|
+
@include media-query($on-mobile) {
|
28
28
|
font-size: 24px;
|
29
29
|
}
|
30
30
|
}
|
@@ -40,7 +40,7 @@
|
|
40
40
|
h2 {
|
41
41
|
font-size: 32px;
|
42
42
|
|
43
|
-
@include media-query($on-
|
43
|
+
@include media-query($on-mobile) {
|
44
44
|
font-size: 28px;
|
45
45
|
}
|
46
46
|
}
|
@@ -48,7 +48,7 @@
|
|
48
48
|
h3 {
|
49
49
|
font-size: 26px;
|
50
50
|
|
51
|
-
@include media-query($on-
|
51
|
+
@include media-query($on-mobile) {
|
52
52
|
font-size: 22px;
|
53
53
|
}
|
54
54
|
}
|
@@ -56,7 +56,7 @@
|
|
56
56
|
h4 {
|
57
57
|
font-size: 20px;
|
58
58
|
|
59
|
-
@include media-query($on-
|
59
|
+
@include media-query($on-mobile) {
|
60
60
|
font-size: 18px;
|
61
61
|
}
|
62
62
|
}
|
data/_sass/_site.scss
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
border: #ccc 1px solid;
|
4
4
|
margin-left: 20px;
|
5
5
|
|
6
|
-
@include media-query($on-
|
6
|
+
@include media-query($on-mobile) {
|
7
7
|
float: none;
|
8
8
|
margin-bottom: 20px;
|
9
9
|
margin-left: 0px;
|
@@ -14,7 +14,7 @@
|
|
14
14
|
font-size: 12px;
|
15
15
|
line-height: 30px;
|
16
16
|
|
17
|
-
@include media-query($on-
|
17
|
+
@include media-query($on-mobile) {
|
18
18
|
font-size: 14px;
|
19
19
|
line-height: 38px;
|
20
20
|
}
|
data/_sass/_work.scss
CHANGED
data/assets/css/main.scss
CHANGED
@@ -5,6 +5,8 @@
|
|
5
5
|
@charset "utf-8";
|
6
6
|
|
7
7
|
// Our variables
|
8
|
+
$base-url: "{{ site.baseurl }}";
|
9
|
+
|
8
10
|
$base-font-family: Charter, Georgia, Helvetica, Arial, sans-serif;
|
9
11
|
$base-font-size: 14px;
|
10
12
|
$small-font-size: $base-font-size * 0.875;
|
@@ -20,7 +22,7 @@ $grey-color: #828282;
|
|
20
22
|
$grey-color-light: lighten($grey-color, 40%);
|
21
23
|
$grey-color-dark: darken($grey-color, 25%);
|
22
24
|
|
23
|
-
$on-
|
25
|
+
$on-mobile: 500px;
|
24
26
|
$on-laptop: 800px;
|
25
27
|
|
26
28
|
@mixin media-query($device) {
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/assets/js/site.js
CHANGED
@@ -1,11 +1,30 @@
|
|
1
|
+
/**
|
2
|
+
* Menu
|
3
|
+
*/
|
4
|
+
$("a.menu-icon").on("click", function(event) {
|
5
|
+
var w = $(".menu");
|
6
|
+
|
7
|
+
w.css({
|
8
|
+
display: w.css("display") === "none"
|
9
|
+
? "block"
|
10
|
+
: "none"
|
11
|
+
});
|
12
|
+
});
|
13
|
+
|
14
|
+
/**
|
15
|
+
* Wechat widget
|
16
|
+
*/
|
1
17
|
function moveWidget(event) {
|
2
18
|
var w = $("#wechat-widget");
|
3
|
-
|
19
|
+
|
20
|
+
w.css({
|
21
|
+
left: event.pageX - 25,
|
22
|
+
top: event.pageY - w.height() - 60
|
23
|
+
});
|
4
24
|
}
|
5
25
|
|
6
26
|
$("a#wechat-link").on("mouseenter", function(event) {
|
7
|
-
|
8
|
-
w.css({ display: "block" });
|
27
|
+
$("#wechat-widget").css({ display: "block" });
|
9
28
|
moveWidget(event);
|
10
29
|
});
|
11
30
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bay_jekyll_theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eliott Vincent
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -68,6 +68,8 @@ files:
|
|
68
68
|
- assets/css/main.scss
|
69
69
|
- assets/img/content/post-example/Banner.jpg
|
70
70
|
- assets/img/content/post-example/Banner@2x.jpg
|
71
|
+
- assets/img/icons/dribbble.png
|
72
|
+
- assets/img/icons/dribbble@2x.png
|
71
73
|
- assets/img/icons/email.png
|
72
74
|
- assets/img/icons/email@2x.png
|
73
75
|
- assets/img/icons/facebook.png
|
@@ -93,6 +95,7 @@ files:
|
|
93
95
|
- assets/img/title.png
|
94
96
|
- assets/img/title@2x.png
|
95
97
|
- assets/img/wechat-qr-code.png
|
98
|
+
- assets/img/wechat-qr-code@2x.png
|
96
99
|
- assets/img/work/sand.png
|
97
100
|
- assets/img/work/sand@2x.png
|
98
101
|
- assets/img/work/water.png
|