bay_jekyll_theme 1.0.6 → 1.0.11
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/LICENSE.md +15 -0
- data/README.md +126 -1
- data/_includes/foot.html +3 -3
- data/_includes/footer.html +7 -3
- data/_includes/head.html +2 -2
- data/_includes/header.html +4 -4
- data/_includes/wechat-widget.html +16 -12
- data/_layouts/home.html +1 -1
- data/_layouts/work.html +8 -6
- data/_sass/_work.scss +6 -5
- data/assets/css/main.scss +33 -0
- data/assets/img/content/post-example/Banner.jpg +0 -0
- data/assets/img/content/post-example/Banner@2x.jpg +0 -0
- data/assets/img/icons/email.png +0 -0
- data/assets/img/icons/email@2x.png +0 -0
- data/assets/img/icons/facebook.png +0 -0
- data/assets/img/icons/facebook@2x.png +0 -0
- data/assets/img/icons/github.png +0 -0
- data/assets/img/icons/github@2x.png +0 -0
- data/assets/img/icons/keybase.png +0 -0
- data/assets/img/icons/keybase@2x.png +0 -0
- data/assets/img/icons/linkedin.png +0 -0
- data/assets/img/icons/linkedin@2x.png +0 -0
- data/assets/img/icons/rss.png +0 -0
- data/assets/img/icons/rss@2x.png +0 -0
- data/assets/img/icons/twitter.png +0 -0
- data/assets/img/icons/twitter@2x.png +0 -0
- data/assets/img/icons/wechat.png +0 -0
- data/assets/img/icons/wechat@2x.png +0 -0
- data/assets/img/icons/weibo.png +0 -0
- data/assets/img/icons/weibo@2x.png +0 -0
- data/assets/img/menu.png +0 -0
- data/assets/img/menu@2x.png +0 -0
- data/assets/img/profile-pic.jpg +0 -0
- data/assets/img/profile-pic@2x.jpg +0 -0
- data/assets/img/title.png +0 -0
- data/assets/img/title@2x.png +0 -0
- data/assets/img/wechat-qr-code.png +0 -0
- data/assets/img/work/sand.png +0 -0
- data/assets/img/work/sand@2x.png +0 -0
- data/assets/img/work/water.png +0 -0
- data/assets/img/work/water@2x.png +0 -0
- data/assets/js/site.js +18 -0
- data/assets/js/vendor/cash-4.1.5.min.js +37 -0
- data/assets/js/vendor/retina-1.3.0.min.js +10 -0
- metadata +38 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 841a30f0f812c5c7eaecf9b6876d9241a8e41a77a0cfa2122ac8809b378fe472
|
|
4
|
+
data.tar.gz: 72b3a8251b9b3cbb299ddb38ed103446b1a2d861f2c868f1bed07093c676907b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7c420949c967ed55868476b4e220bf2cfd3afff3adf89ecb51b60737552b29742a89aa315ca60ed02e952baef06eb37597ea06ca506edd8e158e49290c8d6009
|
|
7
|
+
data.tar.gz: bf1dff56ce0ed16736d6ac02e324caa563f7d0044de20026bdc1b64068e18a29c4bdff0e2a1bf7dde324ec1d4a7f25d480256bbf2206432099a8dd152b81601c
|
data/LICENSE.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
ISC License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2019, Eliott Vincent
|
|
4
|
+
|
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
7
|
+
copyright notice and this permission notice appear in all copies.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
10
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
11
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
12
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
13
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
14
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
15
|
+
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
data/README.md
CHANGED
|
@@ -1,2 +1,127 @@
|
|
|
1
1
|
# bay
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
Bay is a simple theme for Jekyll. [[view live]](https://eliottvincent.github.io/bay)
|
|
4
|
+
|
|
5
|
+
Inspired by [dangrover.com](http://dangrover.com/). Current theme used at [eliottvincent.com](http://eliottvincent.com/).
|
|
6
|
+
|
|
7
|
+

|
|
8
|
+
|
|
9
|
+
### Installation
|
|
10
|
+
|
|
11
|
+
Create a new Jekyll website:
|
|
12
|
+
```
|
|
13
|
+
jekyll new mysite
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Open `Gemfile` and replace the line:
|
|
17
|
+
```
|
|
18
|
+
gem "minima"
|
|
19
|
+
```
|
|
20
|
+
with:
|
|
21
|
+
```
|
|
22
|
+
gem "bay_jekyll_theme"
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Open `_config.yml` and replace the line:
|
|
26
|
+
```
|
|
27
|
+
theme: minima
|
|
28
|
+
```
|
|
29
|
+
with:
|
|
30
|
+
```
|
|
31
|
+
theme: bay_jekyll_theme
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Finally, install the dependencies:
|
|
35
|
+
```
|
|
36
|
+
bundle install
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
and build the website!
|
|
40
|
+
```
|
|
41
|
+
jekyll serve
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
The website will look somewhat empty at first. That's normal. Follow the next instructions to complete the header and footer components, and the home and blog pages.
|
|
46
|
+
|
|
47
|
+
### Header
|
|
48
|
+
Open the `_config.yml` file and add the following:
|
|
49
|
+
```yml
|
|
50
|
+
header:
|
|
51
|
+
pages:
|
|
52
|
+
- name: Home
|
|
53
|
+
slug: / # <-- index.md
|
|
54
|
+
- name: Blog # <-- blog.md
|
|
55
|
+
- name: Whatever # <-- whatever.md
|
|
56
|
+
```
|
|
57
|
+
Re-run `jekyll serve` to see the header updated.
|
|
58
|
+
|
|
59
|
+
### Footer
|
|
60
|
+
Open the `_config.yml` file and add the following:
|
|
61
|
+
```yml
|
|
62
|
+
footer:
|
|
63
|
+
show_powered_by: true
|
|
64
|
+
contact:
|
|
65
|
+
- name: Email
|
|
66
|
+
value: yourmail@domain.com
|
|
67
|
+
link: mailto:yourmail@domain.com
|
|
68
|
+
- name: WeChat
|
|
69
|
+
value: YourWeChatUsername
|
|
70
|
+
link: "#"
|
|
71
|
+
follow:
|
|
72
|
+
- name: Twitter
|
|
73
|
+
link: http://twitter.com/YourTwitterUsername
|
|
74
|
+
username: "@YourTwitterUsername"
|
|
75
|
+
- name: Facebook
|
|
76
|
+
link: http://facebook.com/YourFacebookUsername
|
|
77
|
+
- name: LinkedIn
|
|
78
|
+
link: http://linkedin.com/in/YourLinkedInUsername
|
|
79
|
+
- name: GitHub
|
|
80
|
+
link: http://github.com/YourGitHubUsername
|
|
81
|
+
- name: Weibo
|
|
82
|
+
link: http://weibo.com/u/YourWeiboUsername
|
|
83
|
+
```
|
|
84
|
+
Re-run `jekyll serve` to see the footer updated.
|
|
85
|
+
|
|
86
|
+
### Home page
|
|
87
|
+
Create (or edit) the `index.markdown` file and add the following:
|
|
88
|
+
```yml
|
|
89
|
+
---
|
|
90
|
+
layout: home
|
|
91
|
+
profile_picture:
|
|
92
|
+
src: /assets/img/profile-pic.jpg
|
|
93
|
+
alt: website picture
|
|
94
|
+
---
|
|
95
|
+
|
|
96
|
+
<p>
|
|
97
|
+
Welcome to mysite!
|
|
98
|
+
</p>
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
### Blog page
|
|
102
|
+
Create `blog.markdown` file and add the following:
|
|
103
|
+
```yml
|
|
104
|
+
---
|
|
105
|
+
layout: blog
|
|
106
|
+
title: Blog
|
|
107
|
+
slug: /blog
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
This is an example of a "Blog" page, displaying a list of posts.
|
|
111
|
+
<br />
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
Your website is ready!
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
### Development
|
|
119
|
+
|
|
120
|
+
#### Build and publish the gem
|
|
121
|
+
```sh
|
|
122
|
+
gem build bay_jekyll_theme.gemspec
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
```sh
|
|
126
|
+
gem push bay_jekyll_theme-1.x.x.gem
|
|
127
|
+
```
|
data/_includes/foot.html
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
<script type="text/javascript" src="/assets/js/vendor/retina-1.3.0.min.js"></script>
|
|
2
|
-
<script type="text/javascript" src="/assets/js/vendor/cash-4.1.5.min.js"></script>
|
|
3
|
-
<script type="text/javascript" src="/assets/js/site.js
|
|
1
|
+
<script type="text/javascript" src="{{ "/assets/js/vendor/retina-1.3.0.min.js" | absolute_url }}"></script>
|
|
2
|
+
<script type="text/javascript" src="{{ "/assets/js/vendor/cash-4.1.5.min.js" | absolute_url }}"></script>
|
|
3
|
+
<script type="text/javascript" src="{{ "/assets/js/site.js" | absolute_url }}"></script>
|
data/_includes/footer.html
CHANGED
|
@@ -5,8 +5,10 @@
|
|
|
5
5
|
<h4>CONTACT</h4>
|
|
6
6
|
|
|
7
7
|
{% for contact in site.footer.contact %}
|
|
8
|
+
|
|
9
|
+
{% assign contact_icon_path = "/assets/img/icons/" | append: contact.name | downcase | append: ".png" | absolute_url %}
|
|
8
10
|
<img
|
|
9
|
-
src="
|
|
11
|
+
src="{{ contact_icon_path }}"
|
|
10
12
|
alt="{{ contact.name | downcase }}"
|
|
11
13
|
/>
|
|
12
14
|
<a href="{{ contact.link }}" id="{{ contact.name | downcase }}-link">
|
|
@@ -26,8 +28,10 @@
|
|
|
26
28
|
|
|
27
29
|
{% for follow in site.footer.follow %}
|
|
28
30
|
<span class="wrap-link">
|
|
31
|
+
|
|
32
|
+
{% assign follow_icon_path = "/assets/img/icons/" | append: follow.name | downcase | append: ".png" | absolute_url %}
|
|
29
33
|
<img
|
|
30
|
-
src="
|
|
34
|
+
src="{{ follow_icon_path }}"
|
|
31
35
|
alt="{{ follow.name | downcase }}"
|
|
32
36
|
/>
|
|
33
37
|
<a href="{{ follow.link }}">
|
|
@@ -49,7 +53,7 @@
|
|
|
49
53
|
{% if site.footer.show_powered_by == true %}
|
|
50
54
|
<div class="footer-col footer-col-3 powered-by">
|
|
51
55
|
<p>
|
|
52
|
-
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" }}
|
|
53
57
|
</p>
|
|
54
58
|
</div>
|
|
55
59
|
{% endif %}
|
data/_includes/head.html
CHANGED
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
<meta property="twitter:site" content="{{ twitter_username }}"/>
|
|
61
61
|
{% endif %}
|
|
62
62
|
|
|
63
|
-
<link rel="stylesheet" href="/assets/css/main.css
|
|
63
|
+
<link rel="stylesheet" href="{{ "/assets/css/main.css" | absolute_url }}"/>
|
|
64
64
|
<link rel="canonical" href="{{ page_url }}"/>
|
|
65
|
-
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
|
|
65
|
+
<link rel="shortcut icon" href="{{ "/favicon.ico" | absolute_url }}" type="image/x-icon"/>
|
|
66
66
|
|
|
67
67
|
<!-- Google Analytics -->
|
|
68
68
|
<script>
|
data/_includes/header.html
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<header class="site-header">
|
|
2
2
|
<div class="wrapper">
|
|
3
|
-
<a class="site-title" href="{{ site.baseurl }}/">
|
|
4
|
-
<img src="/assets/img/title.png" alt="{{ site.title }}" />
|
|
3
|
+
<a class="site-title" href="{{ "" | prepend: site.baseurl | prepend: site.url }}/">
|
|
4
|
+
<img src="{{ "/assets/img/title.png" | absolute_url }}" alt="{{ site.title }}" />
|
|
5
5
|
</a>
|
|
6
6
|
|
|
7
7
|
<nav class="site-nav">
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
{% if page.slug and page.slug != "" and page.slug != nil %}
|
|
13
13
|
{% assign page_link = page.slug %}
|
|
14
14
|
{% else %}
|
|
15
|
-
{% assign page_link = "/" | append: page.name | downcase
|
|
15
|
+
{% assign page_link = "/" | append: page.name | downcase %}
|
|
16
16
|
{% endif %}
|
|
17
|
-
{% assign page_link = page_link |
|
|
17
|
+
{% assign page_link = page_link | absolute_url %}
|
|
18
18
|
<a class="page-link" href="{{ page_link }}">
|
|
19
19
|
{{ page.name }}
|
|
20
20
|
</a>
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
{%
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
</
|
|
1
|
+
{% for contact in site.footer.contact %}
|
|
2
|
+
{% if contact.name == 'WeChat' %}
|
|
3
|
+
{% assign wechat_username = contact.value %}
|
|
4
|
+
{% break %}
|
|
5
|
+
{% endif %}
|
|
6
|
+
{% endfor %}
|
|
7
|
+
|
|
8
|
+
{% if wechat_username %}
|
|
9
|
+
<div id="wechat-widget">
|
|
10
|
+
<p>
|
|
11
|
+
Find me on WeChat with the ID <strong>{{ wechat_username }}</strong>, or scan my QR code:
|
|
12
|
+
</p>
|
|
13
|
+
|
|
14
|
+
<img src="{{ "/assets/img/wechat-qr-code.png" | absolute_url }}" alt="QR code" id="qr-code" />
|
|
15
|
+
</div>
|
|
16
|
+
{% endif %}
|
data/_layouts/home.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
|
-
src="{{ item.image.src }}"
|
|
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/_work.scss
CHANGED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
# Only the main Sass file needs front matter (the dashes are enough)
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
@charset "utf-8";
|
|
6
|
+
|
|
7
|
+
// Our variables
|
|
8
|
+
$base-font-family: Charter, Georgia, Helvetica, Arial, sans-serif;
|
|
9
|
+
$base-font-size: 14px;
|
|
10
|
+
$small-font-size: $base-font-size * 0.875;
|
|
11
|
+
$base-line-height: 1.7;
|
|
12
|
+
|
|
13
|
+
$spacing-unit: 30px;
|
|
14
|
+
|
|
15
|
+
$text-color: #111;
|
|
16
|
+
$background-color: #fdfdfd;
|
|
17
|
+
$brand-color: #2a7ae2;
|
|
18
|
+
|
|
19
|
+
$grey-color: #828282;
|
|
20
|
+
$grey-color-light: lighten($grey-color, 40%);
|
|
21
|
+
$grey-color-dark: darken($grey-color, 25%);
|
|
22
|
+
|
|
23
|
+
$on-palm: 500px;
|
|
24
|
+
$on-laptop: 800px;
|
|
25
|
+
|
|
26
|
+
@mixin media-query($device) {
|
|
27
|
+
@media screen and (max-width: $device) {
|
|
28
|
+
@content;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// Import partials from `sass_dir` (defaults to `_sass`)
|
|
33
|
+
@import "base", "layout", "site", "work", "blog", "post", "404";
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/assets/img/menu.png
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/assets/js/site.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
function moveWidget(event) {
|
|
2
|
+
var w = $("#wechat-widget");
|
|
3
|
+
w.css({ left: event.pageX - 25, top: event.pageY - w.height() - 60 });
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
$("a#wechat-link").on("mouseenter", function(event) {
|
|
7
|
+
var w = $("#wechat-widget");
|
|
8
|
+
w.css({ display: "block" });
|
|
9
|
+
moveWidget(event);
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
$("a#wechat-link").on("mousemove", function(event) {
|
|
13
|
+
moveWidget(event);
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
$("a#wechat-link").on("mouseleave", function(event) {
|
|
17
|
+
$("#wechat-widget").css({ display: "none" });
|
|
18
|
+
});
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* MIT https://github.com/kenwheeler/cash */
|
|
2
|
+
(function(){
|
|
3
|
+
'use strict';var e=document,g=window,k=e.createElement("div"),l=Array.prototype,m=l.filter,n=l.indexOf,aa=l.map,q=l.push,r=l.reverse,u=l.slice,v=l.some,ba=l.splice,ca=/^#[\w-]*$/,da=/^\.[\w-]*$/,ea=/<.+>/,fa=/^\w+$/;function x(a,b){void 0===b&&(b=e);return b&&9===b.nodeType||b&&1===b.nodeType?da.test(a)?b.getElementsByClassName(a.slice(1)):fa.test(a)?b.getElementsByTagName(a):b.querySelectorAll(a):[]}
|
|
4
|
+
var y=function(){function a(a,c){void 0===c&&(c=e);if(a){if(a instanceof y)return a;var b=a;if(z(a)){if(b=c instanceof y?c[0]:c,b=ca.test(a)?b.getElementById(a.slice(1)):ea.test(a)?A(a):x(a,b),!b)return}else if(B(a))return this.ready(a);if(b.nodeType||b===g)b=[b];this.length=b.length;a=0;for(c=this.length;a<c;a++)this[a]=b[a]}}a.prototype.init=function(b,c){return new a(b,c)};return a}(),C=y.prototype.init;C.fn=C.prototype=y.prototype;y.prototype.length=0;y.prototype.splice=ba;
|
|
5
|
+
"function"===typeof Symbol&&(y.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator]);y.prototype.get=function(a){return void 0===a?u.call(this):this[0>a?a+this.length:a]};y.prototype.eq=function(a){return C(this.get(a))};y.prototype.first=function(){return this.eq(0)};y.prototype.last=function(){return this.eq(-1)};y.prototype.map=function(a){return C(aa.call(this,function(b,c){return a.call(b,c,b)}))};y.prototype.slice=function(){return C(u.apply(this,arguments))};var ha=/-([a-z])/g;
|
|
6
|
+
function ia(a,b){return b.toUpperCase()}function D(a){return a.replace(ha,ia)}C.camelCase=D;function E(a,b){for(var c=0,d=a.length;c<d&&!1!==b.call(a[c],c,a[c]);c++);}C.each=E;y.prototype.each=function(a){E(this,a);return this};y.prototype.removeProp=function(a){return this.each(function(b,c){delete c[a]})};function F(a){for(var b=1;b<arguments.length;b++);b=arguments;for(var c=b.length,d=2>c?0:1;d<c;d++)for(var f in b[d])a[f]=b[d][f];return a}y.prototype.extend=function(a){return F(C.fn,a)};
|
|
7
|
+
C.extend=F;C.guid=1;function G(a,b){var c=a&&(a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector);return!!c&&c.call(a,b)}C.matches=G;function H(a,b,c){for(var d=[],f=0,h=a.length;f<h;f++)for(var p=a[f][b];null!=p;){d.push(p);if(!c)break;p=p[b]}return d}function I(a){return!!a&&a===a.window}function B(a){return"function"===typeof a}function z(a){return"string"===typeof a}function J(a){return!isNaN(parseFloat(a))&&isFinite(a)}var K=Array.isArray;
|
|
8
|
+
C.isWindow=I;C.isFunction=B;C.isString=z;C.isNumeric=J;C.isArray=K;y.prototype.prop=function(a,b){if(a){if(z(a))return 2>arguments.length?this[0]&&this[0][a]:this.each(function(c,f){f[a]=b});for(var c in a)this.prop(c,a[c]);return this}};function L(a){return z(a)?function(b,c){return G(c,a)}:B(a)?a:a instanceof y?function(b,c){return a.is(c)}:function(b,c){return c===a}}y.prototype.filter=function(a){if(!a)return C();var b=L(a);return C(m.call(this,function(a,d){return b.call(a,d,a)}))};
|
|
9
|
+
function M(a,b){return b&&a.length?a.filter(b):a}var ja=/\S+/g;function N(a){return z(a)?a.match(ja)||[]:[]}y.prototype.hasClass=function(a){return a&&v.call(this,function(b){return b.classList.contains(a)})};y.prototype.removeAttr=function(a){var b=N(a);return b.length?this.each(function(a,d){E(b,function(a,b){d.removeAttribute(b)})}):this};
|
|
10
|
+
y.prototype.attr=function(a,b){if(a){if(z(a)){if(2>arguments.length){if(!this[0])return;var c=this[0].getAttribute(a);return null===c?void 0:c}return void 0===b?this:null===b?this.removeAttr(a):this.each(function(c,f){f.setAttribute(a,b)})}for(c in a)this.attr(c,a[c]);return this}};y.prototype.toggleClass=function(a,b){var c=N(a),d=void 0!==b;return c.length?this.each(function(a,h){E(c,function(a,c){d?b?h.classList.add(c):h.classList.remove(c):h.classList.toggle(c)})}):this};
|
|
11
|
+
y.prototype.addClass=function(a){return this.toggleClass(a,!0)};y.prototype.removeClass=function(a){return arguments.length?this.toggleClass(a,!1):this.attr("class","")};function O(a){return 1<a.length?m.call(a,function(a,c,d){return n.call(d,a)===c}):a}C.unique=O;y.prototype.add=function(a,b){return C(O(this.get().concat(C(a,b).get())))};function P(a,b,c){if(a&&1===a.nodeType&&b)return a=g.getComputedStyle(a,null),b?c?a.getPropertyValue(b)||void 0:a[b]:a}
|
|
12
|
+
function Q(a,b){return parseInt(P(a,b),10)||0}var R=/^--/,S={},ka=k.style,la=["webkit","moz","ms","o"];function ma(a,b){void 0===b&&(b=R.test(a));if(b)return a;if(!S[a]){b=D(a);var c=""+b.charAt(0).toUpperCase()+b.slice(1);b=(b+" "+la.join(c+" ")+c).split(" ");E(b,function(b,c){if(c in ka)return S[a]=c,!1})}return S[a]}C.prefixedProp=ma;var na={animationIterationCount:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0};
|
|
13
|
+
function oa(a,b,c){void 0===c&&(c=R.test(a));return c||na[a]||!J(b)?b:b+"px"}y.prototype.css=function(a,b){if(z(a)){var c=R.test(a);a=ma(a,c);if(2>arguments.length)return this[0]&&P(this[0],a,c);if(!a)return this;b=oa(a,b,c);return this.each(function(d,h){h&&1===h.nodeType&&(c?h.style.setProperty(a,b):h.style[a]=b)})}for(var d in a)this.css(d,a[d]);return this};function pa(a,b){a=a.dataset?a.dataset[b]||a.dataset[D(b)]:a.getAttribute("data-"+b);try{return JSON.parse(a)}catch(c){}return a}var qa=/^data-(.+)/;
|
|
14
|
+
y.prototype.data=function(a,b){var c=this;if(!a){if(!this[0])return;var d={};E(this[0].attributes,function(a,b){(a=b.name.match(qa))&&(d[a[1]]=c.data(a[1]))});return d}if(z(a))return void 0===b?this[0]&&pa(this[0],a):this.each(function(c,d){c=b;try{c=JSON.stringify(c)}catch(w){}d.dataset?d.dataset[D(a)]=c:d.setAttribute("data-"+a,c)});for(var f in a)this.data(f,a[f]);return this};
|
|
15
|
+
function ra(a,b){return Q(a,"border"+(b?"Left":"Top")+"Width")+Q(a,"padding"+(b?"Left":"Top"))+Q(a,"padding"+(b?"Right":"Bottom"))+Q(a,"border"+(b?"Right":"Bottom")+"Width")}E(["Width","Height"],function(a,b){y.prototype["inner"+b]=function(){if(this[0])return I(this[0])?g["inner"+b]:this[0]["client"+b]}});
|
|
16
|
+
E(["width","height"],function(a,b){y.prototype[b]=function(c){if(!this[0])return void 0===c?void 0:this;if(!arguments.length)return I(this[0])?this[0][D("outer-"+b)]:this[0].getBoundingClientRect()[b]-ra(this[0],!a);var d=parseInt(c,10);return this.each(function(c,h){h&&1===h.nodeType&&(c=P(h,"boxSizing"),h.style[b]=oa(b,d+("border-box"===c?ra(h,!a):0)))})}});
|
|
17
|
+
E(["Width","Height"],function(a,b){y.prototype["outer"+b]=function(c){if(this[0])return I(this[0])?g["outer"+b]:this[0]["offset"+b]+(c?Q(this[0],"margin"+(a?"Top":"Left"))+Q(this[0],"margin"+(a?"Bottom":"Right")):0)}});var T={};
|
|
18
|
+
y.prototype.toggle=function(a){return this.each(function(b,c){if(void 0!==a?a:"none"===P(c,"display")){if(c.style.display="","none"===P(c,"display")){b=c.style;c=c.tagName;if(T[c])c=T[c];else{var d=e.createElement(c);e.body.appendChild(d);var f=P(d,"display");e.body.removeChild(d);c=T[c]="none"!==f?f:"block"}b.display=c}}else c.style.display="none"})};y.prototype.hide=function(){return this.toggle(!1)};y.prototype.show=function(){return this.toggle(!0)};
|
|
19
|
+
function sa(a,b){return!b||!v.call(b,function(b){return 0>a.indexOf(b)})}var U={focus:"focusin",blur:"focusout"},ta={mouseenter:"mouseover",mouseleave:"mouseout"},ua=/^(?:mouse|pointer|contextmenu|drag|drop|click|dblclick)/i;function va(a,b,c,d,f){f.guid=f.guid||C.guid++;var h=a.__cashEvents=a.__cashEvents||{};h[b]=h[b]||[];h[b].push([c,d,f]);a.addEventListener(b,f)}function V(a){a=a.split(".");return[a[0],a.slice(1).sort()]}
|
|
20
|
+
function W(a,b,c,d,f){var h=a.__cashEvents=a.__cashEvents||{};if(b)h[b]&&(h[b]=h[b].filter(function(h){var p=h[0],ya=h[1];h=h[2];if(f&&h.guid!==f.guid||!sa(p,c)||d&&d!==ya)return!0;a.removeEventListener(b,h)}));else{for(b in h)W(a,b,c,d,f);delete a.__cashEvents}}y.prototype.off=function(a,b,c){var d=this;void 0===a?this.each(function(a,b){return W(b)}):(B(b)&&(c=b,b=""),E(N(a),function(a,h){a=V(ta[h]||U[h]||h);var f=a[0],w=a[1];d.each(function(a,d){return W(d,f,w,b,c)})}));return this};
|
|
21
|
+
y.prototype.on=function(a,b,c,d){var f=this;if(!z(a)){for(var h in a)this.on(h,b,a[h]);return this}B(b)&&(c=b,b="");E(N(a),function(a,h){a=V(ta[h]||U[h]||h);var p=a[0],w=a[1];f.each(function(a,h){a=function za(a){if(!a.namespace||sa(w,a.namespace.split("."))){var f=h;if(b){for(var t=a.target;!G(t,b);){if(t===h)return;t=t.parentNode;if(!t)return}f=t;a.__delegate=!0}a.__delegate&&Object.defineProperty(a,"currentTarget",{configurable:!0,get:function(){return f}});t=c.call(f,a,a.data);d&&W(h,p,w,b,za);
|
|
22
|
+
!1===t&&(a.preventDefault(),a.stopPropagation())}};a.guid=c.guid=c.guid||C.guid++;va(h,p,w,b,a)})});return this};y.prototype.one=function(a,b,c){return this.on(a,b,c,!0)};y.prototype.ready=function(a){function b(){return a(C)}"loading"!==e.readyState?setTimeout(b):e.addEventListener("DOMContentLoaded",b);return this};
|
|
23
|
+
y.prototype.trigger=function(a,b){if(z(a)){var c=V(a);a=c[0];c=c[1];var d=ua.test(a)?"MouseEvents":"HTMLEvents";var f=e.createEvent(d);f.initEvent(a,!0,!0);f.namespace=c.join(".")}else f=a;f.data=b;var h=f.type in U;return this.each(function(a,b){if(h&&B(b[f.type]))b[f.type]();else b.dispatchEvent(f)})};function wa(a){return a.multiple&&a.options?H(m.call(a.options,function(a){return a.selected&&!a.disabled&&!a.parentNode.disabled}),"value"):a.value||""}
|
|
24
|
+
var xa=/%20/g,Aa=/file|reset|submit|button|image/i,Ba=/radio|checkbox/i;y.prototype.serialize=function(){var a="";this.each(function(b,c){E(c.elements||[c],function(b,c){c.disabled||!c.name||"FIELDSET"===c.tagName||Aa.test(c.type)||Ba.test(c.type)&&!c.checked||(b=wa(c),void 0!==b&&(b=K(b)?b:[b],E(b,function(b,d){b=a;d="&"+encodeURIComponent(c.name)+"="+encodeURIComponent(d).replace(xa,"+");a=b+d})))})});return a.substr(1)};
|
|
25
|
+
y.prototype.val=function(a){return void 0===a?this[0]&&wa(this[0]):this.each(function(b,c){if("SELECT"===c.tagName){var d=K(a)?a:null===a?[]:[a];E(c.options,function(a,b){b.selected=0<=d.indexOf(b.value)})}else c.value=null===a?"":a})};y.prototype.clone=function(){return this.map(function(a,b){return b.cloneNode(!0)})};y.prototype.detach=function(){return this.each(function(a,b){b.parentNode&&b.parentNode.removeChild(b)})};var Ca=/^\s*<(\w+)[^>]*>/,Da=/^\s*<(\w+)\s*\/?>(?:<\/\1>)?\s*$/,X;
|
|
26
|
+
function A(a){if(!X){var b=e.createElement("table"),c=e.createElement("tr");X={"*":k,tr:e.createElement("tbody"),td:c,th:c,thead:b,tbody:b,tfoot:b}}if(!z(a))return[];if(Da.test(a))return[e.createElement(RegExp.$1)];b=Ca.test(a)&&RegExp.$1;b=X[b]||X["*"];b.innerHTML=a;return C(b.childNodes).detach().get()}C.parseHTML=A;y.prototype.empty=function(){return this.each(function(a,b){for(;b.firstChild;)b.removeChild(b.firstChild)})};
|
|
27
|
+
y.prototype.html=function(a){return void 0===a?this[0]&&this[0].innerHTML:this.each(function(b,c){c.innerHTML=a})};y.prototype.remove=function(){return this.detach().off()};y.prototype.text=function(a){return void 0===a?this[0]?this[0].textContent:"":this.each(function(b,c){c.textContent=a})};y.prototype.unwrap=function(){this.parent().each(function(a,b){a=C(b);a.replaceWith(a.children())});return this};var Ea=e.documentElement;
|
|
28
|
+
y.prototype.offset=function(){var a=this[0];if(a)return a=a.getBoundingClientRect(),{top:a.top+g.pageYOffset-Ea.clientTop,left:a.left+g.pageXOffset-Ea.clientLeft}};y.prototype.offsetParent=function(){return C(this[0]&&this[0].offsetParent)};y.prototype.position=function(){var a=this[0];if(a)return{left:a.offsetLeft,top:a.offsetTop}};y.prototype.children=function(a){var b=[];this.each(function(a,d){q.apply(b,d.children)});return M(C(O(b)),a)};
|
|
29
|
+
y.prototype.contents=function(){var a=[];this.each(function(b,c){q.apply(a,"IFRAME"===c.tagName?[c.contentDocument]:c.childNodes)});return C(O(a))};y.prototype.find=function(a){for(var b=[],c=0,d=this.length;c<d;c++){var f=x(a,this[c]);f.length&&q.apply(b,f)}return C(O(b))};var Fa=/^$|^module$|\/(?:java|ecma)script/i,Ga=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;
|
|
30
|
+
function Y(a){a=C(a);a.filter("script").add(a.find("script")).each(function(a,c){!c.src&&Fa.test(c.type)&&c.ownerDocument.documentElement.contains(c)&&eval(c.textContent.replace(Ga,""))})}function Z(a,b,c){E(a,function(a,f){E(b,function(b,d){b=a?d.cloneNode(!0):d;c?f.insertBefore(b,c&&f.firstChild):f.appendChild(b);Y(b)})})}y.prototype.append=function(){var a=this;E(arguments,function(b,c){Z(a,C(c))});return this};y.prototype.appendTo=function(a){Z(C(a),this);return this};
|
|
31
|
+
y.prototype.insertAfter=function(a){var b=this;C(a).each(function(a,d){var c=d.parentNode;c&&b.each(function(b,f){b=a?f.cloneNode(!0):f;c.insertBefore(b,d.nextSibling);Y(b)})});return this};y.prototype.after=function(){var a=this;E(r.apply(arguments),function(b,c){r.apply(C(c).slice()).insertAfter(a)});return this};y.prototype.insertBefore=function(a){var b=this;C(a).each(function(a,d){var c=d.parentNode;c&&b.each(function(b,f){b=a?f.cloneNode(!0):f;c.insertBefore(b,d);Y(b)})});return this};
|
|
32
|
+
y.prototype.before=function(){var a=this;E(arguments,function(b,c){C(c).insertBefore(a)});return this};y.prototype.prepend=function(){var a=this;E(arguments,function(b,c){Z(a,C(c),!0)});return this};y.prototype.prependTo=function(a){Z(C(a),r.apply(this.slice()),!0);return this};y.prototype.replaceWith=function(a){return this.before(a).remove()};y.prototype.replaceAll=function(a){C(a).replaceWith(this);return this};
|
|
33
|
+
y.prototype.wrapAll=function(a){if(this[0]){a=C(a);this.first().before(a);for(a=a[0];a.children.length;)a=a.firstElementChild;this.appendTo(a)}return this};y.prototype.wrap=function(a){return this.each(function(b,c){var d=C(a)[0];C(c).wrapAll(b?d.cloneNode(!0):d)})};y.prototype.wrapInner=function(a){return this.each(function(b,c){b=C(c);c=b.contents();c.length?c.wrapAll(a):b.append(a)})};
|
|
34
|
+
y.prototype.has=function(a){var b=z(a)?function(b,d){return!!x(a,d).length}:function(b,d){return d.contains(a)};return this.filter(b)};y.prototype.is=function(a){if(!a||!this[0])return!1;var b=L(a),c=!1;this.each(function(a,f){c=b.call(f,a,f);return!c});return c};y.prototype.next=function(a,b){return M(C(O(H(this,"nextElementSibling",b))),a)};y.prototype.nextAll=function(a){return this.next(a,!0)};
|
|
35
|
+
y.prototype.not=function(a){if(!a||!this[0])return this;var b=L(a);return this.filter(function(a,d){return!b.call(d,a,d)})};y.prototype.parent=function(a){return M(C(O(H(this,"parentNode"))),a)};y.prototype.index=function(a){var b=a?C(a)[0]:this[0];a=a?this:C(b).parent().children();return n.call(a,b)};y.prototype.closest=function(a){if(!a||!this[0])return C();var b=this.filter(a);return b.length?b:this.parent().closest(a)};
|
|
36
|
+
y.prototype.parents=function(a){return M(C(O(H(this,"parentElement",!0))),a)};y.prototype.prev=function(a,b){return M(C(O(H(this,"previousElementSibling",b))),a)};y.prototype.prevAll=function(a){return this.prev(a,!0)};y.prototype.siblings=function(a){var b=[];this.each(function(a,d){q.apply(b,C(d).parent().children(function(a,b){return b!==d}))});return M(C(O(b)),a)};"undefined"!==typeof exports?module.exports=C:g.cash=g.$=C;
|
|
37
|
+
})();
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Retina.js v1.3.0
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2014 Imulus, LLC
|
|
5
|
+
* Released under the MIT license
|
|
6
|
+
*
|
|
7
|
+
* Retina.js is an open source script that makes it easy to serve
|
|
8
|
+
* high-resolution images to devices with retina displays.
|
|
9
|
+
*/
|
|
10
|
+
!function(){function a(){}function b(a){return f.retinaImageSuffix+a}function c(a,c){if(this.path=a||"","undefined"!=typeof c&&null!==c)this.at_2x_path=c,this.perform_check=!1;else{if(void 0!==document.createElement){var d=document.createElement("a");d.href=this.path,d.pathname=d.pathname.replace(g,b),this.at_2x_path=d.href}else{var e=this.path.split("?");e[0]=e[0].replace(g,b),this.at_2x_path=e.join("?")}this.perform_check=!0}}function d(a){this.el=a,this.path=new c(this.el.getAttribute("src"),this.el.getAttribute("data-at2x"));var b=this;this.path.check_2x_variant(function(a){a&&b.swap()})}var e="undefined"==typeof exports?window:exports,f={retinaImageSuffix:"@2x",check_mime_type:!0,force_original_dimensions:!0};e.Retina=a,a.configure=function(a){null===a&&(a={});for(var b in a)a.hasOwnProperty(b)&&(f[b]=a[b])},a.init=function(a){null===a&&(a=e);var b=a.onload||function(){};a.onload=function(){var a,c,e=document.getElementsByTagName("img"),f=[];for(a=0;a<e.length;a+=1)c=e[a],c.getAttributeNode("data-no-retina")||f.push(new d(c));b()}},a.isRetina=function(){var a="(-webkit-min-device-pixel-ratio: 1.5), (min--moz-device-pixel-ratio: 1.5), (-o-min-device-pixel-ratio: 3/2), (min-resolution: 1.5dppx)";return e.devicePixelRatio>1?!0:e.matchMedia&&e.matchMedia(a).matches?!0:!1};var g=/\.\w+$/;e.RetinaImagePath=c,c.confirmed_paths=[],c.prototype.is_external=function(){return!(!this.path.match(/^https?\:/i)||this.path.match("//"+document.domain))},c.prototype.check_2x_variant=function(a){var b,d=this;return this.is_external()?a(!1):this.perform_check||"undefined"==typeof this.at_2x_path||null===this.at_2x_path?this.at_2x_path in c.confirmed_paths?a(!0):(b=new XMLHttpRequest,b.open("HEAD",this.at_2x_path),b.onreadystatechange=function(){if(4!==b.readyState)return a(!1);if(b.status>=200&&b.status<=399){if(f.check_mime_type){var e=b.getResponseHeader("Content-Type");if(null===e||!e.match(/^image/i))return a(!1)}return c.confirmed_paths.push(d.at_2x_path),a(!0)}return a(!1)},b.send(),void 0):a(!0)},e.RetinaImage=d,d.prototype.swap=function(a){function b(){c.el.complete?(f.force_original_dimensions&&(c.el.setAttribute("width",c.el.offsetWidth),c.el.setAttribute("height",c.el.offsetHeight)),c.el.setAttribute("src",a)):setTimeout(b,5)}"undefined"==typeof a&&(a=this.path.at_2x_path);var c=this;b()},a.isRetina()&&a.init(e)}();
|
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.11
|
|
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-08-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jekyll
|
|
@@ -45,6 +45,7 @@ executables: []
|
|
|
45
45
|
extensions: []
|
|
46
46
|
extra_rdoc_files: []
|
|
47
47
|
files:
|
|
48
|
+
- LICENSE.md
|
|
48
49
|
- README.md
|
|
49
50
|
- _includes/draft-banner.html
|
|
50
51
|
- _includes/foot.html
|
|
@@ -64,6 +65,41 @@ files:
|
|
|
64
65
|
- _sass/_post.scss
|
|
65
66
|
- _sass/_site.scss
|
|
66
67
|
- _sass/_work.scss
|
|
68
|
+
- assets/css/main.scss
|
|
69
|
+
- assets/img/content/post-example/Banner.jpg
|
|
70
|
+
- assets/img/content/post-example/Banner@2x.jpg
|
|
71
|
+
- assets/img/icons/email.png
|
|
72
|
+
- assets/img/icons/email@2x.png
|
|
73
|
+
- assets/img/icons/facebook.png
|
|
74
|
+
- assets/img/icons/facebook@2x.png
|
|
75
|
+
- assets/img/icons/github.png
|
|
76
|
+
- assets/img/icons/github@2x.png
|
|
77
|
+
- assets/img/icons/keybase.png
|
|
78
|
+
- assets/img/icons/keybase@2x.png
|
|
79
|
+
- assets/img/icons/linkedin.png
|
|
80
|
+
- assets/img/icons/linkedin@2x.png
|
|
81
|
+
- assets/img/icons/rss.png
|
|
82
|
+
- assets/img/icons/rss@2x.png
|
|
83
|
+
- assets/img/icons/twitter.png
|
|
84
|
+
- assets/img/icons/twitter@2x.png
|
|
85
|
+
- assets/img/icons/wechat.png
|
|
86
|
+
- assets/img/icons/wechat@2x.png
|
|
87
|
+
- assets/img/icons/weibo.png
|
|
88
|
+
- assets/img/icons/weibo@2x.png
|
|
89
|
+
- assets/img/menu.png
|
|
90
|
+
- assets/img/menu@2x.png
|
|
91
|
+
- assets/img/profile-pic.jpg
|
|
92
|
+
- assets/img/profile-pic@2x.jpg
|
|
93
|
+
- assets/img/title.png
|
|
94
|
+
- assets/img/title@2x.png
|
|
95
|
+
- assets/img/wechat-qr-code.png
|
|
96
|
+
- assets/img/work/sand.png
|
|
97
|
+
- assets/img/work/sand@2x.png
|
|
98
|
+
- assets/img/work/water.png
|
|
99
|
+
- assets/img/work/water@2x.png
|
|
100
|
+
- assets/js/site.js
|
|
101
|
+
- assets/js/vendor/cash-4.1.5.min.js
|
|
102
|
+
- assets/js/vendor/retina-1.3.0.min.js
|
|
67
103
|
homepage: https://github.com/eliottvincent/bay
|
|
68
104
|
licenses:
|
|
69
105
|
- MIT
|