hey-world 0.1.1 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +21 -0
- data/README.md +44 -0
- data/_includes/header.html +14 -0
- data/_includes/main.scss +1 -0
- data/_includes/subscribe-form.html +49 -0
- data/_layouts/default.html +34 -0
- data/_layouts/page.html +5 -0
- data/_layouts/post.html +15 -0
- data/_sass/2-base/_base.scss +223 -0
- metadata +37 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 748ebe5fd651bf049746a13c69abdf091791e13f6a5ecd95f7b5d888c2827a0d
|
4
|
+
data.tar.gz: b342578f7a1b3d804909a401b306b529d5725319b81352b2128828a8594114c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bcb7741dfbcbacc6132233e1075cc62d7a12a37286144828a2d0dd21cae1ccbba6ea7a98d96daa6fd077fc2265d8b568a396e46c527be41035a97c6dee6d4fb0
|
7
|
+
data.tar.gz: ad9b74eb4e740e0233a82e0770ef921c18adac716501f2b77039dd6793fb4b88b6eae158ae36244afee0ef39e917426f88fec3a5bef0b3706ea5c86c062e4426
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2021 Marcus Heng
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
# hey-world
|
2
|
+
|
3
|
+
This theme is inspired by Hey by Basecamp. They have recently introduced https://hey.com/world/ and I really like the minimal look for the blogging page. Here is one example by [DHH](https://world.hey.com/dhh/).
|
4
|
+
|
5
|
+
This is what this theme looks like for a jekyll project:
|
6
|
+
![sample](./sample.png)
|
7
|
+
|
8
|
+
Or you can visit [my blog](https://marcushwz.netlify.app/) where I have hosted it on Netlify using this theme.
|
9
|
+
|
10
|
+
## Usage
|
11
|
+
|
12
|
+
This theme is tested to be working on Netlify, simply follow the installation procedures below and you will have the theme in place.
|
13
|
+
The idea of this theme is to keep things very minimal, so the theme is mainly focusing on the index.html and page.html. There are no suport for `Tag or Categories` for now.
|
14
|
+
|
15
|
+
This theme is not tested on GitHub Pages, but it seems like GitHub Pages does not support gem based theme. So you might have to copy those necessary folders into your Jekyll project if you are planning to host your blog on GitHub Pages.
|
16
|
+
|
17
|
+
|
18
|
+
## Installation
|
19
|
+
|
20
|
+
Add this line to your Jekyll site's `Gemfile`:
|
21
|
+
|
22
|
+
```ruby
|
23
|
+
gem "hey-world"
|
24
|
+
```
|
25
|
+
|
26
|
+
And add this line to your Jekyll site's `_config.yml`:
|
27
|
+
|
28
|
+
```yaml
|
29
|
+
theme: hey-world
|
30
|
+
```
|
31
|
+
|
32
|
+
And then execute:
|
33
|
+
|
34
|
+
$ bundle
|
35
|
+
|
36
|
+
Or install it yourself as:
|
37
|
+
|
38
|
+
$ gem install hey-world
|
39
|
+
|
40
|
+
|
41
|
+
## License
|
42
|
+
|
43
|
+
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
44
|
+
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<div class="grid-item">
|
2
|
+
<div class="author-container">
|
3
|
+
{%if site.logo and site.logo != "" %}
|
4
|
+
<div class="logo">
|
5
|
+
<a class="logo-link" href="{{site.baseurl}}" />
|
6
|
+
<img src="{{ site.logo | relative_url }}" alt="profile" />
|
7
|
+
</div>
|
8
|
+
{% endif %} {% if site.author.name %}
|
9
|
+
<div>
|
10
|
+
<a class="author-name" href="{{site.baseurl}}">{{site.author.name}}</a>
|
11
|
+
</div>
|
12
|
+
{% endif %}
|
13
|
+
</div>
|
14
|
+
</div>
|
data/_includes/main.scss
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
@import "2-base/base";
|
@@ -0,0 +1,49 @@
|
|
1
|
+
<div class="grid-item">
|
2
|
+
<div class="newsletter-container">
|
3
|
+
<!-- Begin Mailchimp Signup Form -->
|
4
|
+
<div id="mc_embed_signup">
|
5
|
+
<form
|
6
|
+
action="//{{site.mailchimp}}"
|
7
|
+
method="post"
|
8
|
+
id="mc-embedded-subscribe-form"
|
9
|
+
name="mc-embedded-subscribe-form"
|
10
|
+
target="_blank"
|
11
|
+
>
|
12
|
+
<label for="EMAIL"
|
13
|
+
>Subscribe below to get future posts from<br /><span
|
14
|
+
>{{site.author.name}}</span
|
15
|
+
></label
|
16
|
+
>
|
17
|
+
<!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups-->
|
18
|
+
<div style="position: absolute; left: -5000px" aria-hidden="true">
|
19
|
+
<input
|
20
|
+
type="text"
|
21
|
+
name="b_becbf687e29d6ebb24d593c8b_d1b189ae5a"
|
22
|
+
tabindex="-1"
|
23
|
+
value=""
|
24
|
+
/>
|
25
|
+
</div>
|
26
|
+
<div class="form-input">
|
27
|
+
<input
|
28
|
+
type="email"
|
29
|
+
value=""
|
30
|
+
name="EMAIL"
|
31
|
+
class="email"
|
32
|
+
id="mce-EMAIL"
|
33
|
+
placeholder="Type your email..."
|
34
|
+
required
|
35
|
+
/>
|
36
|
+
<input
|
37
|
+
type="submit"
|
38
|
+
value="Subscribe"
|
39
|
+
name="subscribe"
|
40
|
+
id="mc-embedded-subscribe"
|
41
|
+
class="button"
|
42
|
+
/>
|
43
|
+
</div>
|
44
|
+
</form>
|
45
|
+
</div>
|
46
|
+
|
47
|
+
<!--End mc_embed_signup-->
|
48
|
+
</div>
|
49
|
+
</div>
|
@@ -0,0 +1,34 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8" />
|
5
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
7
|
+
<title>
|
8
|
+
{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}
|
9
|
+
</title>
|
10
|
+
<link
|
11
|
+
rel="shortcut icon"
|
12
|
+
type="image/jpg"
|
13
|
+
href="{{ site.logo | relative_url }}"
|
14
|
+
/>
|
15
|
+
|
16
|
+
<!-- Fonts -->
|
17
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" />
|
18
|
+
<link
|
19
|
+
href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap"
|
20
|
+
rel="stylesheet"
|
21
|
+
/>
|
22
|
+
<style>
|
23
|
+
{% capture include_to_scssify %}
|
24
|
+
{% include main.scss %}
|
25
|
+
{% endcapture %}
|
26
|
+
{{ include_to_scssify | scssify }}
|
27
|
+
</style>
|
28
|
+
</head>
|
29
|
+
<body>
|
30
|
+
<div class="main-container">
|
31
|
+
<div class="grid-container">{% include header.html %} {{ content }}</div>
|
32
|
+
</div>
|
33
|
+
</body>
|
34
|
+
</html>
|
data/_layouts/page.html
ADDED
data/_layouts/post.html
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
<div class="grid-item">
|
6
|
+
<article class="post">
|
7
|
+
<div class="header">
|
8
|
+
<span class="date"> {{ page.date | date: '%B %d, %Y' }} </span>
|
9
|
+
<p class="title">{{ page.title}}</p>
|
10
|
+
</div>
|
11
|
+
<div class="content">{{content}}</div>
|
12
|
+
</article>
|
13
|
+
</div>
|
14
|
+
|
15
|
+
{% if site.mailchimp %} {% include subscribe-form.html %} {% endif %}
|
@@ -0,0 +1,223 @@
|
|
1
|
+
body {
|
2
|
+
background-color: #1b2733;
|
3
|
+
font-family: "Montserrat", sans-serif;
|
4
|
+
}
|
5
|
+
|
6
|
+
.main-container {
|
7
|
+
position: relative;
|
8
|
+
padding: 1.6rem;
|
9
|
+
position: relative;
|
10
|
+
}
|
11
|
+
|
12
|
+
.grid-container {
|
13
|
+
position: relative;
|
14
|
+
display: grid;
|
15
|
+
max-width: 790px;
|
16
|
+
margin: 0 auto;
|
17
|
+
justify-content: center;
|
18
|
+
row-gap: 1rem;
|
19
|
+
}
|
20
|
+
|
21
|
+
.grid-item {
|
22
|
+
max-width: 702px;
|
23
|
+
}
|
24
|
+
|
25
|
+
.pagination {
|
26
|
+
margin-top: 1rem;
|
27
|
+
text-align: center;
|
28
|
+
a {
|
29
|
+
text-decoration: none;
|
30
|
+
color: #eae7e4;
|
31
|
+
padding: 0.3em 0.8em;
|
32
|
+
border-radius: 3rem;
|
33
|
+
font-weight: 500;
|
34
|
+
font-size: 13px;
|
35
|
+
border: 1px solid #eae7e4;
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
.author-container {
|
40
|
+
margin-top: 2.6rem;
|
41
|
+
margin-bottom: 1rem;
|
42
|
+
text-align: center;
|
43
|
+
.logo-link {
|
44
|
+
top: 0;
|
45
|
+
left: 0;
|
46
|
+
right: 0;
|
47
|
+
bottom: 0;
|
48
|
+
text-indent: -9999px;
|
49
|
+
z-index: 1;
|
50
|
+
}
|
51
|
+
.author-name {
|
52
|
+
text-decoration: none;
|
53
|
+
letter-spacing: 2px;
|
54
|
+
margin-top: 0rem;
|
55
|
+
text-transform: uppercase;
|
56
|
+
color: #a4a7a9;
|
57
|
+
}
|
58
|
+
img {
|
59
|
+
color: transparent;
|
60
|
+
width: 2.625em;
|
61
|
+
height: 2.635em;
|
62
|
+
border-radius: 100%;
|
63
|
+
z-index: 1;
|
64
|
+
position: relative;
|
65
|
+
}
|
66
|
+
}
|
67
|
+
|
68
|
+
.post {
|
69
|
+
margin-top: 0;
|
70
|
+
text-align: center;
|
71
|
+
color: #ece9e6;
|
72
|
+
blockquote {
|
73
|
+
font-style: italic;
|
74
|
+
margin: 1.6rem;
|
75
|
+
padding-block: 0;
|
76
|
+
padding-inline-end: 0;
|
77
|
+
padding-inline-start: 1.5rem;
|
78
|
+
border-inline-start: 1px solid #3a444e;
|
79
|
+
}
|
80
|
+
cite {
|
81
|
+
font-weight: bold;
|
82
|
+
}
|
83
|
+
a {
|
84
|
+
color: #4e9df7;
|
85
|
+
}
|
86
|
+
.header {
|
87
|
+
margin-bottom: 2.6rem;
|
88
|
+
}
|
89
|
+
.date {
|
90
|
+
font-size: 14px;
|
91
|
+
color: #8c9195;
|
92
|
+
}
|
93
|
+
.title {
|
94
|
+
font-size: 36px;
|
95
|
+
font-weight: bolder;
|
96
|
+
margin-top: 0rem;
|
97
|
+
margin-bottom: 0.6rem;
|
98
|
+
}
|
99
|
+
.content {
|
100
|
+
text-align: left;
|
101
|
+
font-size: 17px;
|
102
|
+
line-height: 1.6rem;
|
103
|
+
}
|
104
|
+
img {
|
105
|
+
width: 100%;
|
106
|
+
margin: 0.625rem 0;
|
107
|
+
text-align: center;
|
108
|
+
}
|
109
|
+
}
|
110
|
+
|
111
|
+
.newsletter-container {
|
112
|
+
text-align: center;
|
113
|
+
border-radius: 0.2rem;
|
114
|
+
border: 1px solid #3a444e;
|
115
|
+
color: #ece9e6;
|
116
|
+
margin: 0 auto;
|
117
|
+
max-width: 26rem;
|
118
|
+
margin-bottom: 1.6rem;
|
119
|
+
transform: rotate(-1deg);
|
120
|
+
box-shadow: 5px 5px 7px rgba(0, 0, 0, 0.15);
|
121
|
+
padding: 2em;
|
122
|
+
.form-input {
|
123
|
+
display: flex;
|
124
|
+
justify-content: center;
|
125
|
+
}
|
126
|
+
.title {
|
127
|
+
font-weight: bold;
|
128
|
+
font-size: 24px;
|
129
|
+
}
|
130
|
+
.content {
|
131
|
+
margin-top: 1.6rem;
|
132
|
+
}
|
133
|
+
label {
|
134
|
+
font-size: 13px;
|
135
|
+
font-weight: bold;
|
136
|
+
box-sizing: border-box;
|
137
|
+
}
|
138
|
+
input[type="email"] {
|
139
|
+
padding: 12px 20px;
|
140
|
+
margin: 8px 0;
|
141
|
+
box-sizing: border-box;
|
142
|
+
border-top-left-radius: 3rem;
|
143
|
+
border: 1px solid #3a444e;
|
144
|
+
color: #ece9e6;
|
145
|
+
font-size: 14px;
|
146
|
+
border-right-color: transparent;
|
147
|
+
border-bottom-left-radius: 3rem;
|
148
|
+
background-color: #1b2733;
|
149
|
+
::placeholder {
|
150
|
+
color: #5e656c;
|
151
|
+
opacity: 1;
|
152
|
+
}
|
153
|
+
}
|
154
|
+
input[type="email"]:focus,
|
155
|
+
textarea:focus {
|
156
|
+
outline: none;
|
157
|
+
box-shadow: 0 0 5px rgba(81, 203, 238, 1);
|
158
|
+
border: 1px solid rgba(81, 203, 238, 1);
|
159
|
+
}
|
160
|
+
input[type="submit"] {
|
161
|
+
border: 1px solid #3a444e;
|
162
|
+
border-left-color: transparent;
|
163
|
+
margin: 8px 0;
|
164
|
+
box-sizing: border-box;
|
165
|
+
border-top-right-radius: 3rem;
|
166
|
+
border-bottom-right-radius: 3rem;
|
167
|
+
color: #ece9e6;
|
168
|
+
font-size: 14px;
|
169
|
+
padding: 0.5em 0.9em;
|
170
|
+
cursor: pointer;
|
171
|
+
background-color: #2d3643;
|
172
|
+
}
|
173
|
+
}
|
174
|
+
|
175
|
+
.post-container {
|
176
|
+
position: relative;
|
177
|
+
padding: 1.6rem;
|
178
|
+
border-radius: 0.2rem;
|
179
|
+
border: 1px solid #3a444e;
|
180
|
+
color: #ece9e6;
|
181
|
+
text-align: center;
|
182
|
+
.post-title {
|
183
|
+
font-size: 30px;
|
184
|
+
font-weight: bolder;
|
185
|
+
margin-top: 0rem;
|
186
|
+
margin-bottom: 0.6rem;
|
187
|
+
}
|
188
|
+
.date {
|
189
|
+
font-size: 14px;
|
190
|
+
color: #8c9195;
|
191
|
+
}
|
192
|
+
.excerpt {
|
193
|
+
text-align: justify;
|
194
|
+
font-size: 18px;
|
195
|
+
margin-bottom: 3rem;
|
196
|
+
}
|
197
|
+
.card-link {
|
198
|
+
position: absolute;
|
199
|
+
top: 0;
|
200
|
+
left: 0;
|
201
|
+
right: 0;
|
202
|
+
bottom: 0;
|
203
|
+
text-indent: -9999px;
|
204
|
+
z-index: 1;
|
205
|
+
}
|
206
|
+
.read-more-section {
|
207
|
+
padding: 1.75em;
|
208
|
+
position: absolute;
|
209
|
+
left: 0;
|
210
|
+
right: 0;
|
211
|
+
bottom: 0;
|
212
|
+
text-align: center;
|
213
|
+
z-index: 0;
|
214
|
+
}
|
215
|
+
.read-more-button {
|
216
|
+
color: #8c9195;
|
217
|
+
padding: 0.3em 0.8em;
|
218
|
+
border-radius: 3rem;
|
219
|
+
font-weight: 500;
|
220
|
+
font-size: 13px;
|
221
|
+
border: 1px solid #3a444e;
|
222
|
+
}
|
223
|
+
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hey-world
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marcus Heng
|
@@ -14,16 +14,22 @@ dependencies:
|
|
14
14
|
name: jekyll
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.5'
|
20
|
+
- - "<"
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
22
|
+
version: '5.0'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
29
|
+
version: '3.5'
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '5.0'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: jekyll-paginate
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -38,17 +44,41 @@ dependencies:
|
|
38
44
|
- - "~>"
|
39
45
|
- !ruby/object:Gem::Version
|
40
46
|
version: '1.1'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: bundler
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '0'
|
41
61
|
description:
|
42
62
|
email:
|
43
63
|
- marcushwz@gmail.com
|
44
64
|
executables: []
|
45
65
|
extensions: []
|
46
66
|
extra_rdoc_files: []
|
47
|
-
files:
|
67
|
+
files:
|
68
|
+
- LICENSE.txt
|
69
|
+
- README.md
|
70
|
+
- _includes/header.html
|
71
|
+
- _includes/main.scss
|
72
|
+
- _includes/subscribe-form.html
|
73
|
+
- _layouts/default.html
|
74
|
+
- _layouts/page.html
|
75
|
+
- _layouts/post.html
|
76
|
+
- _sass/2-base/_base.scss
|
48
77
|
homepage: http://website.com
|
49
78
|
licenses:
|
50
79
|
- MIT
|
51
|
-
metadata:
|
80
|
+
metadata:
|
81
|
+
plugin_type: theme
|
52
82
|
post_install_message:
|
53
83
|
rdoc_options: []
|
54
84
|
require_paths:
|