eleven-theme 0.1.0 → 0.1.3
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 +4 -4
- data/README.md +13 -12
- data/_config.yml +5 -0
- data/_layouts/block.html +8 -1
- data/_layouts/home.html +10 -2
- data/_layouts/page.html +7 -0
- data/_layouts/post.html +4 -3
- data/_sass/eleven.scss +16 -1
- metadata +8 -8
- data/_layouts/backup.html +0 -47
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 47d32a889d6b61b02ea4d9bf7951782d99683383a0d7b090783ec021985993a1
|
4
|
+
data.tar.gz: b5d4c0d60b1bdd5631d92317797b0768539bdfffa576426fca0d513aac07de7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4e99d59256ea82984e2f20f31ce545a3078befb62ae985afb27773db9cf786eb71439f658258ac7faea15bb081b6efb81514be568c618badfd45dcd5b82588e
|
7
|
+
data.tar.gz: 17622beae35066b9e0f6fe5217d2fae342b2d19dce23883dbe688911f210329890ad59615684e808158c7e66c8721242cb5f3eaba1ff8adff2a9979b8c9b371b
|
data/README.md
CHANGED
@@ -1,8 +1,11 @@
|
|
1
1
|
# eleven
|
2
|
-
a very simple, clean & customizable jekyll theme
|
2
|
+
a very simple, clean & customizable jekyll theme.
|
3
|
+
|
4
|
+
Take a look at the [demo website](https://paulst.github.io/eleven/). The theme is inspired by [no-style-please](https://github.com/riggraz/no-style-please) and [elly.town](https://elly.town/).
|
3
5
|
|
4
6
|
## Installation
|
5
7
|
|
8
|
+
### Local installation
|
6
9
|
Add this line to your Jekyll site's `Gemfile`:
|
7
10
|
|
8
11
|
```ruby
|
@@ -22,10 +25,17 @@ And then execute:
|
|
22
25
|
Or install it yourself as:
|
23
26
|
|
24
27
|
$ gem install eleven-theme
|
28
|
+
|
29
|
+
Run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using the theme.
|
30
|
+
|
31
|
+
### Deploying with github-pages
|
32
|
+
To get the best out of this template jekyll v4.2 is required. Since github pages runs on Jekyll 3, the easiest way is to use github actions to deploy the site.
|
33
|
+
Instructions can be found [here](https://jekyllrb.com/docs/continuous-integration/github-actions/).
|
34
|
+
Also the github-pages part of the github actions [here](https://github.com/PaulSt/eleven/blob/main/.github/workflows/ci.yml) can simply be reused.
|
25
35
|
|
26
|
-
##
|
36
|
+
## Layouts
|
27
37
|
|
28
|
-
So far there are layouts for
|
38
|
+
Check iut the [demo website](https://paulst.github.io/eleven/) to see the different layouts. So far there are layouts for
|
29
39
|
* home - should be used in for the index.md
|
30
40
|
* block - used to show content directly in the home layout in a seperate block
|
31
41
|
* post - used to create posts, which will be listed in the home layout.
|
@@ -34,15 +44,6 @@ So far there are layouts for
|
|
34
44
|
|
35
45
|
Bug reports and pull requests are welcome on GitHub at https://github.com/PaulSt/eleven. 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.
|
36
46
|
|
37
|
-
## Development
|
38
|
-
|
39
|
-
To set up your environment to develop this theme, run `bundle install`.
|
40
|
-
|
41
|
-
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.
|
42
|
-
|
43
|
-
When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
|
44
|
-
To add a custom directory to your theme-gem, please edit the regexp in `eleven.gemspec` accordingly.
|
45
|
-
|
46
47
|
## License
|
47
48
|
|
48
49
|
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/_config.yml
CHANGED
data/_layouts/block.html
CHANGED
data/_layouts/home.html
CHANGED
@@ -5,7 +5,7 @@ layout: default
|
|
5
5
|
<main class="page-content" aria-label="Content">
|
6
6
|
<div class="w">
|
7
7
|
<div style="display: inline-block">
|
8
|
-
<img src="{{ site.eleven.logo }}" class="rounded">
|
8
|
+
<img src="{{ site.eleven.logo | relative_url }}" class="rounded">
|
9
9
|
</div>
|
10
10
|
<div style="display: inline-block; vertical-align: top; margin: 0 10px">
|
11
11
|
{{ content }}
|
@@ -14,9 +14,17 @@ layout: default
|
|
14
14
|
|
15
15
|
{% for page in site.pages %}
|
16
16
|
{% if page.layout == 'block' %}
|
17
|
+
{% unless page.content contains site.excerpt_separator %}
|
17
18
|
<div class="box">
|
18
19
|
{{ page.content | markdownify }}
|
19
20
|
</div>
|
21
|
+
{% endunless %}
|
22
|
+
{% endif %}
|
23
|
+
{% if page.layout == 'block' and page.content contains site.excerpt_separator %}
|
24
|
+
<div class="box">
|
25
|
+
{{ page.excerpt }}
|
26
|
+
<p><a href="{{ page.url | relative_url }}">Read more</a></p>
|
27
|
+
</div>
|
20
28
|
{% endif %}
|
21
29
|
{% endfor %}
|
22
30
|
|
@@ -25,7 +33,7 @@ layout: default
|
|
25
33
|
<h2>Posts</h2>
|
26
34
|
<ul>
|
27
35
|
{% for post in site.posts %}
|
28
|
-
<li>{{ post.date | date: date_format }} - <a href="{{ post.url }}">{{ post.title }}</a></li>
|
36
|
+
<li>{{ post.date | date: date_format }} - <a href="{{ post.url | relative_url }}">{{ post.title }}</a></li>
|
29
37
|
{% endfor %}
|
30
38
|
</ul>
|
31
39
|
</div>
|
data/_layouts/page.html
ADDED
data/_layouts/post.html
CHANGED
@@ -4,12 +4,13 @@ layout: default
|
|
4
4
|
|
5
5
|
<main class="page-content" aria-label="Content">
|
6
6
|
<div class="w">
|
7
|
-
<a href="{{ page.previous.url }}"><</a>
|
8
|
-
<a href="
|
9
|
-
<a href="{{ page.next.url }}">></a>
|
7
|
+
<a href="{{ page.previous.url | relative_url }}"><</a>
|
8
|
+
<a href="{{ '/' | relative_url }}">^</a>
|
9
|
+
<a href="{{ page.next.url | relative_url }}">></a>
|
10
10
|
</div>
|
11
11
|
|
12
12
|
<div class="box">
|
13
|
+
<h1>{{ page.title }}</h1>
|
13
14
|
{{ content }}
|
14
15
|
</div>
|
15
16
|
</main>
|
data/_sass/eleven.scss
CHANGED
@@ -25,7 +25,7 @@ h2, h3, h4, h5, h6 {
|
|
25
25
|
margin: 0;
|
26
26
|
}
|
27
27
|
|
28
|
-
li { margin: 0.
|
28
|
+
li { margin: 0.15rem 0; }
|
29
29
|
|
30
30
|
.w {
|
31
31
|
max-width: 512px;
|
@@ -65,3 +65,18 @@ img.rounded {
|
|
65
65
|
height: 80px;
|
66
66
|
width: 80px;
|
67
67
|
}
|
68
|
+
|
69
|
+
$link-color: #4478A6;
|
70
|
+
$hover-color: darken($link-color, 20%);
|
71
|
+
a{
|
72
|
+
color: $link-color;
|
73
|
+
text-decoration: none;
|
74
|
+
|
75
|
+
&:hover{
|
76
|
+
color: $hover-color;
|
77
|
+
border-bottom: 1px solid $hover-color;
|
78
|
+
}
|
79
|
+
|
80
|
+
&:visited{
|
81
|
+
}
|
82
|
+
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eleven-theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-04-
|
11
|
+
date: 2022-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -24,7 +24,7 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '4.2'
|
27
|
-
description:
|
27
|
+
description:
|
28
28
|
email:
|
29
29
|
- stocker.paul@hotmail.com
|
30
30
|
executables: []
|
@@ -34,10 +34,10 @@ files:
|
|
34
34
|
- LICENSE.txt
|
35
35
|
- README.md
|
36
36
|
- _config.yml
|
37
|
-
- _layouts/backup.html
|
38
37
|
- _layouts/block.html
|
39
38
|
- _layouts/default.html
|
40
39
|
- _layouts/home.html
|
40
|
+
- _layouts/page.html
|
41
41
|
- _layouts/post.html
|
42
42
|
- _sass/eleven.scss
|
43
43
|
- assets/css/main.scss
|
@@ -46,7 +46,7 @@ homepage: https://github.com/PaulSt/eleven
|
|
46
46
|
licenses:
|
47
47
|
- MIT
|
48
48
|
metadata: {}
|
49
|
-
post_install_message:
|
49
|
+
post_install_message:
|
50
50
|
rdoc_options: []
|
51
51
|
require_paths:
|
52
52
|
- lib
|
@@ -61,8 +61,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: '0'
|
63
63
|
requirements: []
|
64
|
-
rubygems_version: 3.
|
65
|
-
signing_key:
|
64
|
+
rubygems_version: 3.1.2
|
65
|
+
signing_key:
|
66
66
|
specification_version: 4
|
67
67
|
summary: simple & clean jekyll theme
|
68
68
|
test_files: []
|
data/_layouts/backup.html
DELETED
@@ -1,47 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html lang="{{ page.lang | default: "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 -%}
|
9
|
-
{{ page.title }}
|
10
|
-
{%- else -%}
|
11
|
-
{{ site.title }}
|
12
|
-
{%- endif -%}
|
13
|
-
</title>
|
14
|
-
<link rel="shortcut icon" type="image/x-icon" href="{{ site.favicon | relative_url }}" />
|
15
|
-
<link rel="stylesheet" href="{{ "/assets/css/main.css" | relative_url }}" />
|
16
|
-
</head>
|
17
|
-
|
18
|
-
<body a="{{ site.theme_config.appearance | default: "auto" }}">
|
19
|
-
|
20
|
-
<main class="page-content" aria-label="Content">
|
21
|
-
<div class="w">
|
22
|
-
{{ content }}
|
23
|
-
</div>
|
24
|
-
|
25
|
-
{% for page in site.pages %}
|
26
|
-
{% if page.layout == 'page' %}
|
27
|
-
<div class="box">
|
28
|
-
{{ page.content | markdownify }}
|
29
|
-
</div>
|
30
|
-
{% endif %}
|
31
|
-
{% endfor %}
|
32
|
-
|
33
|
-
<div class="box">
|
34
|
-
<h2>Posts</h2>
|
35
|
-
<ul>
|
36
|
-
{% assign filtered_posts = site.posts | where: 'author', page.short_name %}
|
37
|
-
{% for post in filtered_posts %}
|
38
|
-
<li><a href="{{ post.url }}">{{ post.title }}</a></li>
|
39
|
-
{% endfor %}
|
40
|
-
</ul>
|
41
|
-
</div>
|
42
|
-
</main>
|
43
|
-
</body>
|
44
|
-
</html>
|
45
|
-
|
46
|
-
|
47
|
-
|