bay_jekyll_theme 1.0.7 → 1.0.8
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 +115 -1
- data/_includes/foot.html +3 -3
- data/_includes/footer.html +6 -2
- data/_includes/head.html +2 -2
- data/_includes/header.html +2 -2
- data/_includes/wechat-widget.html +2 -1
- data/_layouts/home.html +1 -1
- data/_layouts/work.html +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3ac6afadac133be1fd8c163e179444cdd741d36be2ceaaffc4f463e49af06b23
|
|
4
|
+
data.tar.gz: '08cf39646bd31e9f6b8e19d5a0cb6681fb2ffdaab77fb21eba2c8f5b7633c810'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e0389dcbb10b8cb6289ece347be276421af1e76f2b0b7167d08b749c0629083df0fe4a459d31d809fd93f1784b1097b6ef085631f8869bb42bbbc3afead96b06
|
|
7
|
+
data.tar.gz: 78ebe543c96c49b1966c813960afc1d61f42497031f4f5c7d373aa8e332e0d4e27177b84ffbc4632ca707dbde4d0a1b35415f2a31e938c8eaa01ecdeb764f564
|
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,116 @@
|
|
|
1
1
|
# bay
|
|
2
|
-
|
|
2
|
+
------
|
|
3
|
+
|
|
4
|
+
A simple theme for Jekyll. Inspired by http://dangrover.com/. Current theme used at https://eliottvincent.com.
|
|
5
|
+
|
|
6
|
+
### [View Live →](https://eliottvincent.github.io/bay)
|
|
7
|
+
|
|
8
|
+

|
|
9
|
+
|
|
10
|
+
### Installation
|
|
11
|
+
|
|
12
|
+
Create a new Jekyll website:
|
|
13
|
+
```
|
|
14
|
+
jekyll new mysite
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Open `Gemfile` and replace the line:
|
|
18
|
+
```
|
|
19
|
+
gem "minima"
|
|
20
|
+
```
|
|
21
|
+
with:
|
|
22
|
+
```
|
|
23
|
+
gem "bay_jekyll_theme", "~> 1.0.8"
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Open `_config.yml` and replace the line:
|
|
27
|
+
```
|
|
28
|
+
theme: minima
|
|
29
|
+
```
|
|
30
|
+
with:
|
|
31
|
+
```
|
|
32
|
+
theme: bay_jekyll_theme
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Finally, install the dependencies:
|
|
36
|
+
```
|
|
37
|
+
bundle install
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
and build the website!
|
|
41
|
+
```
|
|
42
|
+
jekyll serve
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
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.
|
|
47
|
+
|
|
48
|
+
### Header
|
|
49
|
+
Open the `_config.yml` file and add the following:
|
|
50
|
+
```yml
|
|
51
|
+
header:
|
|
52
|
+
pages:
|
|
53
|
+
- name: Home
|
|
54
|
+
slug: / # <-- index.md
|
|
55
|
+
- name: Blog # <-- blog.md
|
|
56
|
+
- name: Whatever # <-- whatever.md
|
|
57
|
+
```
|
|
58
|
+
Re-run `jekyll serve` to see the header updated.
|
|
59
|
+
|
|
60
|
+
### Footer
|
|
61
|
+
Open the `_config.yml` file and add the following:
|
|
62
|
+
```yml
|
|
63
|
+
footer:
|
|
64
|
+
show_powered_by: true
|
|
65
|
+
contact:
|
|
66
|
+
- name: Email
|
|
67
|
+
value: yourmail@domain.com
|
|
68
|
+
link: mailto:yourmail@domain.com
|
|
69
|
+
- name: WeChat
|
|
70
|
+
value: YourWeChatUsername
|
|
71
|
+
link: "#"
|
|
72
|
+
follow:
|
|
73
|
+
- name: Twitter
|
|
74
|
+
link: http://twitter.com/YourTwitterUsername
|
|
75
|
+
username: "@YourTwitterUsername"
|
|
76
|
+
- name: Facebook
|
|
77
|
+
link: http://facebook.com/YourFacebookUsername
|
|
78
|
+
- name: LinkedIn
|
|
79
|
+
link: http://linkedin.com/in/YourLinkedInUsername
|
|
80
|
+
- name: GitHub
|
|
81
|
+
link: http://github.com/YourGitHubUsername
|
|
82
|
+
- name: Weibo
|
|
83
|
+
link: http://weibo.com/u/YourWeiboUsername
|
|
84
|
+
```
|
|
85
|
+
Re-run `jekyll serve` to see the footer updated.
|
|
86
|
+
|
|
87
|
+
### Home page
|
|
88
|
+
Create (or edit) the `index.markdown` file and add the following:
|
|
89
|
+
```yml
|
|
90
|
+
---
|
|
91
|
+
layout: home
|
|
92
|
+
profile_picture:
|
|
93
|
+
src: /assets/img/profile-pic.jpg
|
|
94
|
+
alt: website picture
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
<p>
|
|
98
|
+
Welcome to mysite!
|
|
99
|
+
</p>
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### Blog page
|
|
103
|
+
Create `blog.markdown` file and add the following:
|
|
104
|
+
```yml
|
|
105
|
+
---
|
|
106
|
+
layout: blog
|
|
107
|
+
title: Blog
|
|
108
|
+
slug: /blog
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
This is an example of a "Blog" page, displaying a list of posts.
|
|
112
|
+
<br />
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
Your website is ready!
|
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 }}">
|
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
3
|
<a class="site-title" href="{{ site.baseurl }}/">
|
|
4
|
-
<img src="/assets/img/title.png" alt="{{ site.title }}" />
|
|
4
|
+
<img src="{{ "/assets/img/title.png" | absolute_url }}" alt="{{ site.title }}" />
|
|
5
5
|
</a>
|
|
6
6
|
|
|
7
7
|
<nav class="site-nav">
|
|
@@ -12,7 +12,7 @@
|
|
|
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
17
|
{% assign page_link = page_link | prepend: site.baseurl | prepend: site.url %}
|
|
18
18
|
<a class="page-link" href="{{ page_link }}">
|
data/_layouts/home.html
CHANGED
data/_layouts/work.html
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Eliott Vincent
|
|
@@ -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
|