eleven-theme 0.1.0
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 +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +49 -0
- data/_config.yml +11 -0
- data/_layouts/backup.html +47 -0
- data/_layouts/block.html +6 -0
- data/_layouts/default.html +9 -0
- data/_layouts/home.html +34 -0
- data/_layouts/post.html +15 -0
- data/_sass/eleven.scss +67 -0
- data/assets/css/main.scss +4 -0
- data/assets/logo.png +0 -0
- metadata +68 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b8ff769d83af3416803adba8f30dca9349b5e88b3cb86bac066454883ba12a6c
|
4
|
+
data.tar.gz: e213b008b43ccc9c835eae9d26a487558e0077c54bd61a25b7d1722ba25f0b75
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: e8e810364812788b6aa2db2f6ce0a0c50e80d180b64b8b94520a44aacb6f3ca6dc1ac5e5d340fd2eaa1787324fde7ff1bb2b461c5f22c42d949bf9dee4792bde
|
7
|
+
data.tar.gz: ec06d854fb346897beddb195aa6b69fb28ec1686d0330bdd2d8c5f7bc76c7d62fda160841b58c47d8ca350d187e85bd42ef52cdffdc9bb96d205392251d4a621
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2022 Paul
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# eleven
|
2
|
+
a very simple, clean & customizable jekyll theme
|
3
|
+
|
4
|
+
## Installation
|
5
|
+
|
6
|
+
Add this line to your Jekyll site's `Gemfile`:
|
7
|
+
|
8
|
+
```ruby
|
9
|
+
gem "eleven-theme"
|
10
|
+
```
|
11
|
+
|
12
|
+
And add this line to your Jekyll site's `_config.yml`:
|
13
|
+
|
14
|
+
```yaml
|
15
|
+
theme: eleven-theme
|
16
|
+
```
|
17
|
+
|
18
|
+
And then execute:
|
19
|
+
|
20
|
+
$ bundle
|
21
|
+
|
22
|
+
Or install it yourself as:
|
23
|
+
|
24
|
+
$ gem install eleven-theme
|
25
|
+
|
26
|
+
## Usage
|
27
|
+
|
28
|
+
So far there are layouts for
|
29
|
+
* home - should be used in for the index.md
|
30
|
+
* block - used to show content directly in the home layout in a seperate block
|
31
|
+
* post - used to create posts, which will be listed in the home layout.
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
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
|
+
|
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
|
+
## License
|
47
|
+
|
48
|
+
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
49
|
+
|
data/_config.yml
ADDED
@@ -0,0 +1,47 @@
|
|
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
|
+
|
data/_layouts/block.html
ADDED
data/_layouts/home.html
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
<main class="page-content" aria-label="Content">
|
6
|
+
<div class="w">
|
7
|
+
<div style="display: inline-block">
|
8
|
+
<img src="{{ site.eleven.logo }}" class="rounded">
|
9
|
+
</div>
|
10
|
+
<div style="display: inline-block; vertical-align: top; margin: 0 10px">
|
11
|
+
{{ content }}
|
12
|
+
</div>
|
13
|
+
</div>
|
14
|
+
|
15
|
+
{% for page in site.pages %}
|
16
|
+
{% if page.layout == 'block' %}
|
17
|
+
<div class="box">
|
18
|
+
{{ page.content | markdownify }}
|
19
|
+
</div>
|
20
|
+
{% endif %}
|
21
|
+
{% endfor %}
|
22
|
+
|
23
|
+
{%- assign date_format = site.eleven.date_format | default: "%b %d, %Y" -%}
|
24
|
+
<div class="box">
|
25
|
+
<h2>Posts</h2>
|
26
|
+
<ul>
|
27
|
+
{% for post in site.posts %}
|
28
|
+
<li>{{ post.date | date: date_format }} - <a href="{{ post.url }}">{{ post.title }}</a></li>
|
29
|
+
{% endfor %}
|
30
|
+
</ul>
|
31
|
+
</div>
|
32
|
+
</main>
|
33
|
+
|
34
|
+
|
data/_layouts/post.html
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
<main class="page-content" aria-label="Content">
|
6
|
+
<div class="w">
|
7
|
+
<a href="{{ page.previous.url }}"><</a>
|
8
|
+
<a href="\">^</a>
|
9
|
+
<a href="{{ page.next.url }}">></a>
|
10
|
+
</div>
|
11
|
+
|
12
|
+
<div class="box">
|
13
|
+
{{ content }}
|
14
|
+
</div>
|
15
|
+
</main>
|
data/_sass/eleven.scss
ADDED
@@ -0,0 +1,67 @@
|
|
1
|
+
html, body { background: white; }
|
2
|
+
|
3
|
+
html { height: 100%; }
|
4
|
+
|
5
|
+
$fontsize: 12px;
|
6
|
+
|
7
|
+
body {
|
8
|
+
color: black;
|
9
|
+
font-family: monospace;
|
10
|
+
font-size: $fontsize;
|
11
|
+
line-height: 1;
|
12
|
+
margin: 0;
|
13
|
+
min-height: 100%;
|
14
|
+
overflow-wrap: break-word;
|
15
|
+
}
|
16
|
+
|
17
|
+
.post-meta { text-align: right; }
|
18
|
+
|
19
|
+
h1 {
|
20
|
+
margin: 0px;
|
21
|
+
}
|
22
|
+
|
23
|
+
h2, h3, h4, h5, h6 {
|
24
|
+
font-size: $fontsize;
|
25
|
+
margin: 0;
|
26
|
+
}
|
27
|
+
|
28
|
+
li { margin: 0.1rem 0; }
|
29
|
+
|
30
|
+
.w {
|
31
|
+
max-width: 512px;
|
32
|
+
height: auto;
|
33
|
+
margin: 1em auto;
|
34
|
+
}
|
35
|
+
|
36
|
+
.box {
|
37
|
+
@extend .w;
|
38
|
+
padding: 1em;
|
39
|
+
border: 1px solid black;
|
40
|
+
}
|
41
|
+
|
42
|
+
code {
|
43
|
+
color: black;
|
44
|
+
background: lightgray;
|
45
|
+
}
|
46
|
+
|
47
|
+
div.highlighter-rouge code {
|
48
|
+
display: block;
|
49
|
+
overflow-x: auto;
|
50
|
+
white-space: pre-wrap;
|
51
|
+
padding: 1rem;
|
52
|
+
}
|
53
|
+
|
54
|
+
#carousel img {
|
55
|
+
width: 100%;
|
56
|
+
height: auto;
|
57
|
+
display: block;
|
58
|
+
margin: 0 auto;
|
59
|
+
padding: 0.5em;
|
60
|
+
}
|
61
|
+
|
62
|
+
img.rounded {
|
63
|
+
object-fit: cover;
|
64
|
+
border-radius: 50%;
|
65
|
+
height: 80px;
|
66
|
+
width: 80px;
|
67
|
+
}
|
data/assets/logo.png
ADDED
Binary file
|
metadata
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: eleven-theme
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Paul
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2022-04-05 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: jekyll
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '4.2'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '4.2'
|
27
|
+
description:
|
28
|
+
email:
|
29
|
+
- stocker.paul@hotmail.com
|
30
|
+
executables: []
|
31
|
+
extensions: []
|
32
|
+
extra_rdoc_files: []
|
33
|
+
files:
|
34
|
+
- LICENSE.txt
|
35
|
+
- README.md
|
36
|
+
- _config.yml
|
37
|
+
- _layouts/backup.html
|
38
|
+
- _layouts/block.html
|
39
|
+
- _layouts/default.html
|
40
|
+
- _layouts/home.html
|
41
|
+
- _layouts/post.html
|
42
|
+
- _sass/eleven.scss
|
43
|
+
- assets/css/main.scss
|
44
|
+
- assets/logo.png
|
45
|
+
homepage: https://github.com/PaulSt/eleven
|
46
|
+
licenses:
|
47
|
+
- MIT
|
48
|
+
metadata: {}
|
49
|
+
post_install_message:
|
50
|
+
rdoc_options: []
|
51
|
+
require_paths:
|
52
|
+
- lib
|
53
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '0'
|
58
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0'
|
63
|
+
requirements: []
|
64
|
+
rubygems_version: 3.3.8
|
65
|
+
signing_key:
|
66
|
+
specification_version: 4
|
67
|
+
summary: simple & clean jekyll theme
|
68
|
+
test_files: []
|