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 +4 -4
- data/README.md +17 -13
- data/_includes/header.html +41 -3
- data/_includes/post-list.html +0 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: afbdba22eac572243f5c851db9c6d1a4e0890471a246ca9843fe4726efe2dffa
|
4
|
+
data.tar.gz: 7128ac53d37ff0407808a4a7f55d712a3ac42150f04ba618de8a54bd47ac0cd5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
23
|
+
```shell
|
24
|
+
bundle
|
25
|
+
```
|
27
26
|
|
28
27
|
Or install it yourself as:
|
29
28
|
|
30
|
-
|
29
|
+
```shell
|
30
|
+
gem install jekyll-theme-blog
|
31
|
+
```
|
31
32
|
|
32
|
-
|
33
|
+
Please ensure that your `_config.yml` contains the appropriate site title and subtitle.
|
33
34
|
|
34
|
-
|
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
|
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
|
-
|
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
|
-
|
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
|
-
|
data/_includes/header.html
CHANGED
@@ -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>
|
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>
|
49
|
+
<h1>{{ site.title }}</h1>
|
12
50
|
</a>
|
13
|
-
<h2>
|
51
|
+
<h2>{{ site.subtitle }}</h2>
|
14
52
|
</header>
|
data/_includes/post-list.html
CHANGED
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.
|
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-
|
11
|
+
date: 2019-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|