bay_jekyll_theme 1.0.7 → 1.0.12

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3e91fe54792daaea76b9b8eea7b92208ec895bad192d172fb2c725b46a55212c
4
- data.tar.gz: c6f4d4f7b1c3e9e4257c1516abf35625fc51f218c97e11dfb142c5e01acde936
3
+ metadata.gz: 8b569c6203e2a1f7d8d731cbad82073cf5968c302c731e75de0522c43d168975
4
+ data.tar.gz: 9cb2b0bb20036436b5cacd3016b07ef0b5ea14333de25173dcfb1e5cbb42a853
5
5
  SHA512:
6
- metadata.gz: 93835eb52a14af5bfc5f17b3283e937792ed268ed30b8c0e6fa0e6a82125ac13780a13fc9dd8e56f1d5a07c82e660444b4a04e5466bdb8c471202a8e1795f191
7
- data.tar.gz: 3fed9acc9cb82711eccf1867fa2f4827c07576f4893459255db8e20435ea869aa86b1a067d5ae59e2422676b33f9302eeb4a7faf4c6aac8efa04b87b4b182ae9
6
+ metadata.gz: 98d0d2b1eeb1d6b5c8a9cfb945395f1fa2f34fa408c75853fc3c00c9a67f83b6dcce6ea70dced0393b7e5f3e975b3c089257c9f444ffc906d09d6c5bd1b4d761
7
+ data.tar.gz: 7c2f2db01ebf0381b2e45fe2db0e7739a9205c61fb4d862d66f1ac5a62952a1bfa7902e0f44bdb3503c9aa45f410f7a0a6ce68ef344298cfb37da439b4bc9b9c
@@ -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,132 @@
1
1
  # bay
2
- A simple theme for Jekyll. Inspired by http://dangrover.com/
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
+ ![](/screenshot.png)
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
+ #### Run development instance (with hot-reload)
121
+ ```sh
122
+ bundle exec jekyll serve
123
+ ```
124
+
125
+ #### Build and publish the gem
126
+ ```sh
127
+ gem build bay_jekyll_theme.gemspec
128
+ ```
129
+
130
+ ```sh
131
+ gem push bay_jekyll_theme-1.x.x.gem
132
+ ```
@@ -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?{{ site.version }}"></script>
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>
@@ -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="/assets/img/icons/{{ contact.name | downcase }}.png"
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="/assets/img/icons/{{ follow.name | downcase }}.png"
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> | 2019
56
+ powered by <a href="https://github.com/eliottvincent/bay">Bay</a> | {{ 'now' | date: "%Y" }}
53
57
  </p>
54
58
  </div>
55
59
  {% endif %}
@@ -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?v={{ site.version }}"/>
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>
@@ -1,20 +1,20 @@
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">
8
8
  <a href="#" class="menu-icon"></a>
9
9
 
10
- <div class="trigger">
10
+ <div class="menu">
11
11
  {% for page in site.header.pages %}
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 | append: "/" %}
15
+ {% assign page_link = "/" | append: page.name | downcase %}
16
16
  {% endif %}
17
- {% assign page_link = page_link | prepend: site.baseurl | prepend: site.url %}
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
- <div id="wechat-widget">
2
- <p>
3
- {% for contact in site.footer.contact %}
4
- {% if contact.name == 'WeChat' %}
5
- Find me on WeChat with the ID <strong>{{ contact.value }}</strong>,
6
- {% break %}
7
- {% endif %}
8
- {% endfor %}
9
- or scan my QR code:
10
- </p>
11
- <img src="/assets/img/wechat-qr-code.png" alt="QR code" id="qr-code" />
12
- </div>
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 %}
@@ -9,7 +9,7 @@
9
9
  <div class="wrapper">
10
10
  <div class="home">
11
11
  <img
12
- src="{{ page.profile_picture.src }}"
12
+ src="{{ page.profile_picture.src | absolute_url }}"
13
13
  alt="{{ page.profile_picture.alt }}"
14
14
  class="profilepic"
15
15
  />
@@ -12,16 +12,18 @@
12
12
  {{ content }}
13
13
 
14
14
  {% for item in page.items %}
15
- <p class="work-item">
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
- <strong>{{ item.title }}</strong>
22
- &mdash;
23
- {{ item.description }}
24
- </p>
21
+ <span class="work-text">
22
+ <strong>{{ item.title }}</strong>
23
+ &mdash;
24
+ {{ item.description }}
25
+ </span>
26
+ </div>
25
27
  {% endfor %}
26
28
  </div>
27
29
  </div>
@@ -113,7 +113,7 @@ h4 {
113
113
  a {
114
114
  color: $brand-color;
115
115
  text-decoration: none;
116
- //
116
+ //
117
117
  // &:visited {
118
118
  // color: darken($brand-color, 15%);
119
119
  // }
@@ -5,7 +5,7 @@
5
5
  display: block;
6
6
  float: left;
7
7
 
8
- @include media-query($on-palm) {
8
+ @include media-query($on-mobile) {
9
9
  display: block;
10
10
  float: none;
11
11
  color: #333;
@@ -8,7 +8,7 @@
8
8
  padding-top: 10px;
9
9
  padding-bottom: 10px;
10
10
 
11
- @include media-query($on-palm) {
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-palm) {
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
- .trigger {
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-palm) {
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-palm) {
140
+ @include media-query($on-mobile) {
145
141
  .footer-col {
146
142
  float: none;
147
143
  width: 100%;
@@ -9,7 +9,7 @@
9
9
 
10
10
  font-family: $base-font-family;
11
11
 
12
- @include media-query($on-palm) {
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-palm) {
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-palm) {
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-palm) {
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-palm) {
59
+ @include media-query($on-mobile) {
60
60
  font-size: 18px;
61
61
  }
62
62
  }
@@ -3,7 +3,7 @@
3
3
  border: #ccc 1px solid;
4
4
  margin-left: 20px;
5
5
 
6
- @include media-query($on-palm) {
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-palm) {
17
+ @include media-query($on-mobile) {
18
18
  font-size: 14px;
19
19
  line-height: 38px;
20
20
  }
@@ -1,11 +1,12 @@
1
+ .work-item {
2
+ clear: both;
3
+ overflow: hidden;
4
+ padding-bottom: 3em;
5
+ }
6
+
1
7
  .work-bubble {
2
8
  float: left;
3
9
  padding-right: 20px;
4
10
  width: 100px;
5
11
  height: 100px;
6
12
  }
7
-
8
- .work-item {
9
- clear: both;
10
- padding-bottom: 3em;
11
- }
@@ -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-palm: 500px;
25
+ $on-mobile: 500px;
24
26
  $on-laptop: 800px;
25
27
 
26
28
  @mixin media-query($device) {
@@ -1,11 +1,28 @@
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
- var w = $("#wechat-widget");
3
- w.css({ left: event.pageX - 25, top: event.pageY - w.height() - 60 });
18
+ $("#wechat-widget").css({
19
+ left: event.pageX - 25,
20
+ top: event.pageY - w.height() - 60
21
+ });
4
22
  }
5
23
 
6
24
  $("a#wechat-link").on("mouseenter", function(event) {
7
- var w = $("#wechat-widget");
8
- w.css({ display: "block" });
25
+ $("#wechat-widget").css({ display: "block" });
9
26
  moveWidget(event);
10
27
  });
11
28
 
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.7
4
+ version: 1.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eliott Vincent
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-27 00:00:00.000000000 Z
11
+ date: 2020-08-05 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
@@ -92,6 +93,7 @@ files:
92
93
  - assets/img/title.png
93
94
  - assets/img/title@2x.png
94
95
  - assets/img/wechat-qr-code.png
96
+ - assets/img/wechat-qr-code@2x.png
95
97
  - assets/img/work/sand.png
96
98
  - assets/img/work/sand@2x.png
97
99
  - assets/img/work/water.png