eleven-jekyll-theme 0.3.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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 10961ed1cc617f10a2d37b8ed773455fa6dcf1aeee5ba58577e2ea87cb0ab023
4
+ data.tar.gz: 3f84b71cd3808a88bcaf14a006d35d7de5c7c6f637bbd46e46684b9c435b1c8d
5
+ SHA512:
6
+ metadata.gz: 345acaeb3d01d6f52ccdb9416ed29f3069b8b4584266300b3dd9161dbf3a2628baae6cf4d02e60bfecacd2c9e0402cf838e58c89f61b390fd434785154e2b0e6
7
+ data.tar.gz: 36c73224ba22447bb00311f67e8f85a81e593141107d47420871c04af407027210f70bba3a04b8155bc8cc6747ee645b57e608dc579173256fb9edb730a3feb1
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,50 @@
1
+ # eleven
2
+ a very simple, clean & customizable jekyll theme.
3
+
4
+ Take a look at the [demo website](https://paulst.github.io/eleven-jekyll-theme/).
5
+
6
+ ## Installation
7
+
8
+ ### Local installation
9
+ Add this line to your Jekyll site's `Gemfile`:
10
+
11
+ ```ruby
12
+ gem "eleven-jekyll-theme"
13
+ ```
14
+
15
+ And add this line to your Jekyll site's `_config.yml`:
16
+
17
+ ```yaml
18
+ theme: eleven-jekyll-theme
19
+ ```
20
+
21
+ And then execute:
22
+
23
+ $ bundle
24
+
25
+ Or install it yourself as:
26
+
27
+ $ gem install eleven-jekyll-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-jekyll-theme/blob/main/.github/workflows/ci.yml) can simply be reused.
35
+
36
+ ## Layouts
37
+
38
+ Check out the [demo website](https://paulst.github.io/eleven-jekyll-theme/) to see the different layouts. So far there are layouts for
39
+ * home - should be used in for the index.md
40
+ * block - used to show content directly in the home layout in a seperate block
41
+ * post - used to create posts, which will be listed in the home layout.
42
+
43
+ ## Contributing
44
+
45
+ Bug reports and pull requests are welcome on GitHub at [github.com/PaulSt/eleven-jekyll-theme](https://github.com/PaulSt/eleven-jekyll-theme). 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.
46
+
47
+ ## License
48
+
49
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
50
+
data/_config.yml ADDED
@@ -0,0 +1,21 @@
1
+ remote_theme: PaulSt/eleven-jekyll-theme
2
+ theme: eleven-jekyll-theme
3
+
4
+ eleven:
5
+ date_format: "%b %d, %Y"
6
+ logo: "assets/logo.png"
7
+
8
+ permalink: post/:title
9
+
10
+ title: "eleven"
11
+ description: "simple & clean jekyll theme"
12
+ excerpt_separator: <!--more-->
13
+ page_excerpts: true
14
+
15
+ collections:
16
+ examplecollection:
17
+ output: true
18
+ title: "Collections"
19
+
20
+ # for github subpage
21
+ baseurl: /eleven-jekyll-theme
@@ -0,0 +1,5 @@
1
+ ---
2
+ layout: page
3
+ ---
4
+
5
+ {{ content | markdownify }}
@@ -0,0 +1,11 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>{{ page.title }}</title>
6
+ <link rel="stylesheet" href="{{ "/assets/css/main.css" | relative_url }}" />
7
+ <link rel="shortcut icon" href="{{ "/assets/logo.png" | relative_url}}" />
8
+ <meta name="viewport" content="width=device-width, initial-scale=1">
9
+ </head>
10
+ {{ content }}
11
+ </html>
@@ -0,0 +1,58 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <main class="page-content" aria-label="Content">
6
+ <div class="w">
7
+ <img src="{{ site.eleven.logo | relative_url }}" class="logo">
8
+ {{ content }}
9
+ <div style="clear: both;"></div>
10
+ </div>
11
+ {% assign sorted_pages = site.pages | sort:"order" %}
12
+ {% for page in sorted_pages %}
13
+ {% if page.layout == 'block' %}
14
+ {% unless page.content contains site.excerpt_separator %}
15
+ <div class="box">
16
+ <h1>{{ page.title }}</h1>
17
+ {{ page.content | markdownify }}
18
+ </div>
19
+ {% endunless %}
20
+ {% endif %}
21
+ {% if page.layout == 'block' and page.content contains site.excerpt_separator %}
22
+ <div class="box">
23
+ <h1>{{ page.title }}</h1>
24
+ {{ page.excerpt }}
25
+ <p><a href="{{ page.url | relative_url }}">Read more</a></p>
26
+ </div>
27
+ {% endif %}
28
+ {% endfor %}
29
+
30
+ {% for collection in site.collections %}
31
+ {% unless collection.label == 'posts' %}
32
+ <div class="box">
33
+ {% if collection.title %}
34
+ <h1>{{ collection.title }}</h1>
35
+ {% else %}
36
+ <h1>{{ collection.label }}</h1>
37
+ {% endif %}
38
+ <ul>
39
+ {% for entry in site[collection.label] %}
40
+ <li><a href="{{ entry.url | relative_url }}">{{ entry.title }}</a></li>
41
+ {% endfor %}
42
+ </ul>
43
+ </div>
44
+ {% endunless %}
45
+ {% endfor %}
46
+
47
+ {%- assign date_format = site.eleven.date_format | default: "%b %d, %Y" -%}
48
+ <div class="box">
49
+ <h1>Posts</h1>
50
+ <ul>
51
+ {% for post in site.posts %}
52
+ <li>{{ post.date | date: date_format }} - <a href="{{ post.url | relative_url }}">{{ post.title }}</a></li>
53
+ {% endfor %}
54
+ </ul>
55
+ </div>
56
+ </main>
57
+
58
+
@@ -0,0 +1,13 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <main class="page-content" aria-label="Content">
6
+ <div class="w">
7
+ &nbsp; <a href="{{ '/' | relative_url }}">^</a>
8
+ </div>
9
+ <div class="box">
10
+ <h1>{{ page.title }}</h1>
11
+ {{ content | markdownify }}
12
+ </div>
13
+ </main>
@@ -0,0 +1,21 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <main class="page-content" aria-label="Content">
6
+ <div class="w">
7
+ {% if page.previous.url %}
8
+ <a href="{{ page.previous.url | relative_url }}">&lt;</a>
9
+ {% else %} &nbsp;
10
+ {% endif %}
11
+ <a href="{{ '/' | relative_url }}">^</a>
12
+ {% if page.next.url %}
13
+ <a href="{{ page.next.url | relative_url }}">&gt;</a>
14
+ {% endif %}
15
+ </div>
16
+
17
+ <div class="box">
18
+ <h1>{{ page.title }}</h1>
19
+ {{ content }}
20
+ </div>
21
+ </main>
data/_sass/eleven.scss ADDED
@@ -0,0 +1,125 @@
1
+ @use 'sass:color';
2
+ html, body { background: white; }
3
+
4
+ body {
5
+ max-width: 42em;
6
+ margin: auto;
7
+ font-family: monospace;
8
+ line-height: 1.1;
9
+ }
10
+
11
+ .post-meta { text-align: right; }
12
+
13
+ li { margin: 0.15em 0; }
14
+
15
+ .w {
16
+ height: auto;
17
+ margin: 1em auto;
18
+ }
19
+
20
+ .box {
21
+ @extend .w;
22
+ padding: 0em 1em;
23
+ border: 1px solid black;
24
+ }
25
+
26
+ h1 {
27
+ font-size: 1.3em;
28
+ }
29
+
30
+ h2 {
31
+ font-size: 1.1em;
32
+ }
33
+
34
+ @for $i from 3 through 6 {
35
+ h#{$i} {
36
+ //font-size: $base-font-size + $heading-scale * (6 - $i) * (6 - $i);
37
+ font-size: 1em;
38
+ text-decoration: underline;
39
+ font-weight: normal;
40
+ }
41
+ }
42
+
43
+ code {
44
+ background: lightgray;
45
+ }
46
+
47
+ table{
48
+ margin: 1em auto;
49
+ border-spacing: .5em 0;
50
+ }
51
+
52
+ div.highlighter-rouge code {
53
+ display: block;
54
+ overflow-x: auto;
55
+ white-space: pre-wrap;
56
+ padding: 1em;
57
+ }
58
+
59
+ img {
60
+ height: auto;
61
+ max-width: 50%;
62
+ display: block;
63
+ margin: 0 auto;
64
+ object-fit: scale-down;
65
+ width: 100%;
66
+ }
67
+
68
+ h2 > img {
69
+ max-width: 46.5%;
70
+ max-height: 50%;
71
+ object-fit: cover;
72
+ display: inline-block;
73
+ padding: 0 0 0 5%;
74
+ box-sizing: border-box;
75
+ }
76
+
77
+ h1 > img {
78
+ max-width: 100%;
79
+ padding: 0 5%;
80
+ display: block;
81
+ box-sizing: border-box;
82
+ }
83
+
84
+
85
+ img.logo {
86
+ height: 7em;
87
+ width: 7em;
88
+ object-fit: cover;
89
+ border-radius: 50%;
90
+ float: left;
91
+ margin: 0 1em 0 0;
92
+ }
93
+
94
+ img + em {
95
+ font-size: 0.8rem;
96
+ text-align: center;
97
+ display: block;
98
+ margin: 0.5em auto;
99
+ font-weight: normal;
100
+ }
101
+
102
+
103
+ iframe {
104
+ height: auto;
105
+ max-width: 100%;
106
+ padding: 0 5%;
107
+ display: block;
108
+ margin: 0 auto;
109
+ }
110
+
111
+ $link-color: #4478A6;
112
+ $hover-color: color.adjust($link-color, $lightness: -20%);
113
+ a{
114
+ color: $link-color;
115
+ text-decoration: none;
116
+
117
+ &:hover{
118
+ color: $hover-color;
119
+ border-bottom: 1px solid $hover-color;
120
+ }
121
+
122
+ &:visited{
123
+ }
124
+ }
125
+
@@ -0,0 +1,4 @@
1
+ ---
2
+ ---
3
+
4
+ @use "eleven";
data/assets/logo.png ADDED
Binary file
data/assets/test.png ADDED
Binary file
metadata ADDED
@@ -0,0 +1,65 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: eleven-jekyll-theme
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.0
5
+ platform: ruby
6
+ authors:
7
+ - Paul
8
+ bindir: bin
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: jekyll
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - "~>"
17
+ - !ruby/object:Gem::Version
18
+ version: '4.2'
19
+ type: :runtime
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - "~>"
24
+ - !ruby/object:Gem::Version
25
+ version: '4.2'
26
+ email:
27
+ - stocker.paul@hotmail.com
28
+ executables: []
29
+ extensions: []
30
+ extra_rdoc_files: []
31
+ files:
32
+ - LICENSE.txt
33
+ - README.md
34
+ - _config.yml
35
+ - _layouts/block.html
36
+ - _layouts/default.html
37
+ - _layouts/home.html
38
+ - _layouts/page.html
39
+ - _layouts/post.html
40
+ - _sass/eleven.scss
41
+ - assets/css/main.scss
42
+ - assets/logo.png
43
+ - assets/test.png
44
+ homepage: https://github.com/PaulSt/eleven-jekyll-theme
45
+ licenses:
46
+ - MIT
47
+ metadata: {}
48
+ rdoc_options: []
49
+ require_paths:
50
+ - lib
51
+ required_ruby_version: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ required_rubygems_version: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
61
+ requirements: []
62
+ rubygems_version: 3.6.9
63
+ specification_version: 4
64
+ summary: simple & clean jekyll theme
65
+ test_files: []