names_are_hard 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +13 -9
- data/_includes/footer.html +1 -1
- data/_layouts/boring.html +0 -5
- data/_layouts/homeposts.html +13 -13
- data/_sass/names_are_hard.scss +9 -15
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0968d4cb08b956d881fbc3a0c3a401e2bbb56aa6
|
4
|
+
data.tar.gz: 2e4ee0f1d0c5cd87731bb0ac6b2d88828ccb51e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4491c0038fe81dde5fcca70b9a7c40fefb1a0182b9bceea594146384d50692bcdb883a9a9ec0341fd7d865e194bced2915cc6f6bd9943698714a1153fe8ca0a2
|
7
|
+
data.tar.gz: 42c84a0ce632e1fa6176faf8b732bc82d539a7d42ecc91045f4fa0336c685789246ec7900a4617088bef473beb382c43bd77b16c9816423b88c77bbcae558e58
|
data/README.md
CHANGED
@@ -1,10 +1,6 @@
|
|
1
1
|
# names_are_hard
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
To experiment with this code, add some sample content and run `bundle exec jekyll serve` – this directory is setup just like a Jekyll site!
|
6
|
-
|
7
|
-
TODO: Delete this and the text above, and describe your gem
|
3
|
+
This is a theme that is used for https://chris-johnston.me
|
8
4
|
|
9
5
|
|
10
6
|
## Installation
|
@@ -31,11 +27,20 @@ Or install it yourself as:
|
|
31
27
|
|
32
28
|
## Usage
|
33
29
|
|
34
|
-
|
30
|
+
Layouts:
|
31
|
+
- Boring: A plain, monospace page.
|
32
|
+
- Home: A home page, that has a header and shows the content of the homepage.
|
33
|
+
- HomePosts: Same as home, but includes the past 3 posts on the bottom of the page header.
|
34
|
+
- Page: Shows the content of a single page, but with no title bar.
|
35
|
+
- PlainHTML: A plain HTML page.
|
36
|
+
- Post: Shows the content of a single page, but with a title bar.
|
37
|
+
|
38
|
+
Sass:
|
39
|
+
- `names_are_hard.scss` is the main style file.
|
35
40
|
|
36
41
|
## Contributing
|
37
42
|
|
38
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
43
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/Chris-Johnston/names_are_hard.
|
39
44
|
|
40
45
|
## Development
|
41
46
|
|
@@ -48,5 +53,4 @@ To add a custom directory to your theme-gem, please edit the regexp in `names_ar
|
|
48
53
|
|
49
54
|
## License
|
50
55
|
|
51
|
-
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
52
|
-
|
56
|
+
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/_includes/footer.html
CHANGED
data/_layouts/boring.html
CHANGED
data/_layouts/homeposts.html
CHANGED
@@ -13,19 +13,19 @@
|
|
13
13
|
{{ content }}
|
14
14
|
</div>
|
15
15
|
|
16
|
-
<!-- this does not work -->
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
16
|
+
<!--todo this does not work -->
|
17
|
+
{% if site.posts.size > 0 %}
|
18
|
+
<div class="home-post-wrapper">
|
19
|
+
{% for post in site.posts limit:1 %}
|
20
|
+
<div class="home-first-post-title">
|
21
|
+
{{ post.title }}
|
22
|
+
</div>
|
23
|
+
<div class="home-first-post-wrapper">
|
24
|
+
{{ post.excerpt | strip_html | truncatewords:50 }}
|
25
|
+
</div>
|
26
|
+
{% endfor %}
|
27
|
+
</div>
|
28
|
+
{% endif %}
|
29
29
|
|
30
30
|
</div>
|
31
31
|
|
data/_sass/names_are_hard.scss
CHANGED
@@ -4,9 +4,11 @@
|
|
4
4
|
@import "reset";
|
5
5
|
@import url('https://fonts.googleapis.com/css?family=Oswald|Roboto+Condensed');
|
6
6
|
|
7
|
+
// fonts
|
7
8
|
$font-title: 'Oswald', sans-serif;
|
8
9
|
$font-main: 'Roboto Condensed', sans-serif !important;
|
9
10
|
|
11
|
+
// colors
|
10
12
|
$background-color: #142B51 !default;
|
11
13
|
$text-background-color: #263037;
|
12
14
|
$code-background-color: #D9D9D9;
|
@@ -14,8 +16,9 @@ $code-foreground-color: black;
|
|
14
16
|
$foreground-color: #E2E4E9 !default;
|
15
17
|
$highlight-color: #d2f9e6;
|
16
18
|
|
19
|
+
// fonts, only the body
|
17
20
|
$body-font-size: 12pt !default;
|
18
|
-
$body-li-size:
|
21
|
+
$body-li-size: 12pt;
|
19
22
|
|
20
23
|
$line-style: 0.5px dotted $foreground-color;
|
21
24
|
|
@@ -38,19 +41,12 @@ body p
|
|
38
41
|
body li
|
39
42
|
{
|
40
43
|
font-size: $body-li-size;
|
41
|
-
line-height: $body-li-size;
|
44
|
+
line-height: $body-li-size + 2pt;
|
42
45
|
|
43
46
|
margin-top: 2pt;
|
44
47
|
margin-bottom: 2pt;
|
45
48
|
}
|
46
49
|
|
47
|
-
|
48
|
-
// .site-header a
|
49
|
-
// {
|
50
|
-
// color: $foreground-color;
|
51
|
-
// text-decoration: none;
|
52
|
-
// }
|
53
|
-
|
54
50
|
.site-header
|
55
51
|
{
|
56
52
|
position:relative;
|
@@ -61,8 +57,7 @@ body li
|
|
61
57
|
font-family: $font-title;
|
62
58
|
|
63
59
|
height: 50pt;
|
64
|
-
|
65
|
-
// padding-bottom: 10pt;
|
60
|
+
|
66
61
|
}
|
67
62
|
|
68
63
|
// tall site header used for headerposts
|
@@ -159,11 +154,8 @@ body li
|
|
159
154
|
|
160
155
|
.page-footer
|
161
156
|
{
|
162
|
-
//background: $background-color;
|
163
157
|
height: 10pt;
|
164
|
-
|
165
|
-
right: 0;
|
166
|
-
bottom: 0;
|
158
|
+
text-align: center;
|
167
159
|
width: 100%;
|
168
160
|
padding: 5pt;
|
169
161
|
}
|
@@ -270,6 +262,8 @@ pre.highlight > code
|
|
270
262
|
}
|
271
263
|
|
272
264
|
img {
|
265
|
+
margin-top: 10pt;
|
266
|
+
margin-bottom: 10pt;
|
273
267
|
margin-left: auto;
|
274
268
|
margin-right: auto;
|
275
269
|
display: block;
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: names_are_hard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Johnston
|
@@ -77,7 +77,7 @@ files:
|
|
77
77
|
- _sass/reset.scss
|
78
78
|
- _sass/syntax.scss
|
79
79
|
- assets/main.scss
|
80
|
-
homepage: https://
|
80
|
+
homepage: https://github.com/Chris-Johnston/names_are_hard
|
81
81
|
licenses:
|
82
82
|
- MIT
|
83
83
|
metadata: {}
|