names_are_hard 0.1.0 → 0.1.1

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
  SHA1:
3
- metadata.gz: 5d693c8e1ce6c254abd4a6ba5709ca702ddfa4e4
4
- data.tar.gz: f1bdffd289a8119b9725a6ce2e4d0b1e93df949b
3
+ metadata.gz: 0968d4cb08b956d881fbc3a0c3a401e2bbb56aa6
4
+ data.tar.gz: 2e4ee0f1d0c5cd87731bb0ac6b2d88828ccb51e5
5
5
  SHA512:
6
- metadata.gz: ea9d2ecd0c11ca2418bf7ad10bd2d3d478e58ecbdb3dac7f95646e9cdca424ebf355e2cf2fa25b5915815f80b2b2a221ed7ee6dfa0ffeac0dfd21cb31d4a2836
7
- data.tar.gz: c9c6e81bb40bd7c7035145c27b1ce8894d64b185fe991291e8a2c504dd469f428ea3c1638f717b526ab5fa63a6f16802f1be7c74dad291d29b00cb7e4bb4ce0f
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
- Welcome to your new Jekyll theme! In this directory, you'll find the files you need to be able to package up your theme into a gem. Put your layouts in `_layouts`, your includes in `_includes`, your sass files in `_sass` and any other assets in `assets`.
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
- TODO: Write usage instructions here. Describe your available layouts, includes, sass and/or assets.
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/[USERNAME]/hello. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
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).
@@ -1,3 +1,3 @@
1
1
  <footer class="page-footer">
2
- <div class="footer-copyright">{{ site.github_username }} {{ 'now' | date: "%Y" }}</dev>
2
+ <div class="footer-copyright">{{ site.github_username }} {{ 'now' | date: "%Y" }}</div>
3
3
  </footer>
data/_layouts/boring.html CHANGED
@@ -1,8 +1,3 @@
1
- ---
2
- # plain and simple format
3
- layout: boring
4
- ---
5
-
6
1
  {% include simple_page_head.html %}
7
2
 
8
3
  <body style="font-family: monospace;">
@@ -13,19 +13,19 @@
13
13
  {{ content }}
14
14
  </div>
15
15
 
16
- <!-- 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 %}-->
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
 
@@ -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: 10pt;
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
- // margin-bottom: 20pt;
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
- position: absolute;
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.0
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://chrisjohnston.me
80
+ homepage: https://github.com/Chris-Johnston/names_are_hard
81
81
  licenses:
82
82
  - MIT
83
83
  metadata: {}