jekyll-theme-blog 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fd887a55907d90c9b6713b1b7f74764d047d0c03994acc447b99cf7785a04754
4
- data.tar.gz: 5be7eec1d219301b887d0b043e5324cebca03af06a66d2175fa98ef1a6920f57
3
+ metadata.gz: afbdba22eac572243f5c851db9c6d1a4e0890471a246ca9843fe4726efe2dffa
4
+ data.tar.gz: 7128ac53d37ff0407808a4a7f55d712a3ac42150f04ba618de8a54bd47ac0cd5
5
5
  SHA512:
6
- metadata.gz: ea0703f7645fd7ed3deaa28d06269458fb53c975e8ce7886c6ebda32dadfd73054e3584a963b4567d235713b1f148b51c936aeca4dacb1f2ecfb0be3fb67f105
7
- data.tar.gz: 5be375752062cf2ee6253c993ef3488d4eadcbef694b249ff62fe27067bf2e9afd449d74bbbc5e07be69616f6d5f59fba86454476dd9d5f4f300c280d490f15d
6
+ metadata.gz: 3d7321c90aa88b72047cb7d39055a68a1bf1eeca2b057e5c536ad9974509969d121afddb7f47628649f864fc2baf623a5fa96058e12048ecd70333fa29ae9c4b
7
+ data.tar.gz: f45bf4208bf08f27d0b084e3d092d03598036fdd9b71cfcd218219acc15159bcbd607ce58f699535112caabd2988171874e649d81af4ad38d5af87355c17d488
data/README.md CHANGED
@@ -1,12 +1,9 @@
1
1
  # jekyll-theme-blog
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`.
3
+ > A simple blog-style starter for Jekyll
4
4
 
5
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
6
 
7
- TODO: Delete this and the text above, and describe your gem
8
-
9
-
10
7
  ## Installation
11
8
 
12
9
  Add this line to your Jekyll site's `Gemfile`:
@@ -23,30 +20,37 @@ theme: jekyll-theme-blog
23
20
 
24
21
  And then execute:
25
22
 
26
- $ bundle
23
+ ```shell
24
+ bundle
25
+ ```
27
26
 
28
27
  Or install it yourself as:
29
28
 
30
- $ gem install jekyll-theme-blog
29
+ ```shell
30
+ gem install jekyll-theme-blog
31
+ ```
31
32
 
32
- ## Usage
33
+ Please ensure that your `_config.yml` contains the appropriate site title and subtitle.
33
34
 
34
- TODO: Write usage instructions here. Describe your available layouts, includes, sass and/or assets.
35
+ ```yml
36
+ title: Jekyll blog
37
+ subtitle: A simple blog-style theme
38
+ ```
35
39
 
36
40
  ## Contributing
37
41
 
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.
42
+ Bug reports and pull requests are welcome on [GitHub](https://github.com/jekyll-theme-blog/). 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.
39
43
 
40
44
  ## Development
41
45
 
42
46
  To set up your environment to develop this theme, run `bundle install`.
43
47
 
44
- Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
48
+ This theme is setup just like a normal Jekyll site! To test the theme during development, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using this theme. Add pages, documents, data, etc. like normal to build your site. As you make modifications to the theme and content, the site will regenerate and you should see the changes in the browser after a refresh.
49
+
50
+ To add a custom directory to your theme-gem, edit the regexp in `jekyll-theme-blog.gemspec` accordingly.
45
51
 
46
- When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
47
- To add a custom directory to your theme-gem, please edit the regexp in `jekyll-theme-blog.gemspec` accordingly.
52
+ Generate a gem from the theme by running `gem build jekyll-theme-blog.gemspec`.
48
53
 
49
54
  ## License
50
55
 
51
56
  The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
52
-
@@ -3,12 +3,50 @@
3
3
  <head>
4
4
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>Jekyll blog</title>
6
+ <title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
7
+ <link href="https://fonts.googleapis.com/css?family=IBM+Plex+Sans" rel="stylesheet">
8
+ <style>
9
+ html {
10
+ font-family: 'IBM Plex Sans', sans-serif;
11
+ font-size: 15px;
12
+ }
13
+ body {
14
+ width: 80%;
15
+ max-width: 400px;
16
+ margin: 0 auto;
17
+ }
18
+ h1 {
19
+ font-size: 2.4rem;
20
+ font-weight: 600;
21
+ margin-top: 3rem;
22
+ margin-bottom: 0;
23
+ }
24
+ h2 {
25
+ margin-top: 0;
26
+ }
27
+ h3 {
28
+ margin-bottom: 0;
29
+ }
30
+ h3::before {
31
+ content: '- ';
32
+ }
33
+ p {
34
+ margin-top: 0;
35
+ }
36
+ a {
37
+ color: inherit;
38
+ text-decoration: none;
39
+ }
40
+ ul {
41
+ list-style: none;
42
+ padding-left: 0;
43
+ }
44
+ </style>
7
45
  </head>
8
46
  <body>
9
47
  <header>
10
48
  <a href="/">
11
- <h1>Jekyll blog</h1>
49
+ <h1>{{ site.title }}</h1>
12
50
  </a>
13
- <h2>A simple blog-style starter</h2>
51
+ <h2>{{ site.subtitle }}</h2>
14
52
  </header>
@@ -3,7 +3,6 @@
3
3
  <li>
4
4
  <a href="{{ post.url | prepend: site.baseurl }}">
5
5
  <h3>{{ post.title }}</h3>
6
- <p>{{ post.excerpt }}</p>
7
6
  </a>
8
7
  </li>
9
8
  {% endfor %}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-blog
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
  - William L
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-06 00:00:00.000000000 Z
11
+ date: 2019-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll