eleven-theme 0.1.5 → 0.2.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: be546f5eece825a4f3edb0b63ce370c78edb8b65c5778b1498e2d113023e5081
4
- data.tar.gz: b098ce4e7c55807efb17df6f96916a9f43994ff238eb4e0a5e1f9252af15578e
3
+ metadata.gz: 8ba3de877663bcedc50a7a2ab094a5499f04ca0ced19274bb3aef50bd10be6d4
4
+ data.tar.gz: c2f11823bd9345ceed8aa182d6781f571f6ddc724c47ea01d9618ad41a2cb80a
5
5
  SHA512:
6
- metadata.gz: 1a859d341b51faa98e13a3397273b7e1350478d502e5a9ed97a4df58808f79438f148029a3eb1849ae1bf34c2a4694344f940c59fbea6c9218312c0824ad25e7
7
- data.tar.gz: 0e8d55a05a8f60c5aa582b008685d09b6063b53f727ef0042fdef43b7cdb3ee5301adfc7ed4099f6f4889da36811425a63bf72834da5ca3d897229794268c98c
6
+ metadata.gz: c43cbeeb52105479ec8205895c7aa2241f0962e0af5165c34223fe45b45c0e5c6b05b0e89837c8b1a08a62dbaa16a99ff24f0ba907392ea4f6a402873bf3bdbf
7
+ data.tar.gz: 5dc52a25a53e7136823c87e4b6563537c038fbb6d0451abc234595f0b6c0e44b3643947812cff2ecc7a9e1b5188f7f7bb0fd2edb98af8e9de72c9a8d81860fb5
data/_config.yml CHANGED
@@ -13,7 +13,7 @@ excerpt_separator: <!--more-->
13
13
  page_excerpts: true
14
14
 
15
15
  collections:
16
- collectionName:
16
+ Collection:
17
17
  output: true
18
18
 
19
19
  # for github subpage
data/_layouts/block.html CHANGED
@@ -8,6 +8,7 @@ layout: default
8
8
  </div>
9
9
 
10
10
  <div class="box">
11
+ <h1>{{ page.title }}</h1>
11
12
  {{ content }}
12
13
  </div>
13
14
  </main>
@@ -4,6 +4,7 @@
4
4
  <meta charset="utf-8">
5
5
  <title>{{ page.title }}</title>
6
6
  <link rel="stylesheet" href="{{ "/assets/css/main.css" | relative_url }}" />
7
+ <link rel="shortcut icon" href="{{ "/assets/logo.png" | relative_url}}" />
7
8
  </head>
8
9
  {{ content }}
9
10
  </html>
data/_layouts/home.html CHANGED
@@ -4,24 +4,23 @@ layout: default
4
4
 
5
5
  <main class="page-content" aria-label="Content">
6
6
  <div class="w">
7
- <div style="display: inline-block">
8
- <img src="{{ site.eleven.logo | relative_url }}" class="logo">
9
- </div>
10
- <div style="display: inline-block; vertical-align: top; margin: 0 10px">
7
+ <img src="{{ site.eleven.logo | relative_url }}" class="logo">
11
8
  {{ content }}
12
- </div>
9
+ <div style="clear: both;"></div>
13
10
  </div>
14
11
 
15
12
  {% for page in site.pages %}
16
13
  {% if page.layout == 'block' %}
17
14
  {% unless page.content contains site.excerpt_separator %}
18
15
  <div class="box">
16
+ <h3>{{ page.title }}</h3>
19
17
  {{ page.content | markdownify }}
20
18
  </div>
21
19
  {% endunless %}
22
20
  {% endif %}
23
21
  {% if page.layout == 'block' and page.content contains site.excerpt_separator %}
24
22
  <div class="box">
23
+ <h3>{{ page.title }}</h3>
25
24
  {{ page.excerpt }}
26
25
  <p><a href="{{ page.url | relative_url }}">Read more</a></p>
27
26
  </div>
@@ -31,7 +30,7 @@ layout: default
31
30
  {% for collection in site.collections %}
32
31
  {% unless collection.label == 'posts' %}
33
32
  <div class="box">
34
- <h2>{{ collection.label }}</h2>
33
+ <h3>{{ collection.label }}</h3>
35
34
  <ul>
36
35
  {% for entry in site[collection.label] %}
37
36
  <li><a href="{{ entry.url | relative_url }}">{{ entry.title }}</a></li>
@@ -43,7 +42,7 @@ layout: default
43
42
 
44
43
  {%- assign date_format = site.eleven.date_format | default: "%b %d, %Y" -%}
45
44
  <div class="box">
46
- <h2>Posts</h2>
45
+ <h3>Posts</h3>
47
46
  <ul>
48
47
  {% for post in site.posts %}
49
48
  <li>{{ post.date | date: date_format }} - <a href="{{ post.url | relative_url }}">{{ post.title }}</a></li>
data/_layouts/post.html CHANGED
@@ -4,9 +4,14 @@ layout: default
4
4
 
5
5
  <main class="page-content" aria-label="Content">
6
6
  <div class="w">
7
+ {% if page.previous.url %}
7
8
  <a href="{{ page.previous.url | relative_url }}">&lt;</a>
9
+ {% else %} &nbsp;
10
+ {% endif %}
8
11
  <a href="{{ '/' | relative_url }}">^</a>
12
+ {% if page.next.url %}
9
13
  <a href="{{ page.next.url | relative_url }}">&gt;</a>
14
+ {% endif %}
10
15
  </div>
11
16
 
12
17
  <div class="box">
data/_sass/eleven.scss CHANGED
@@ -3,6 +3,7 @@ html, body { background: white; }
3
3
  html { height: 100%; }
4
4
 
5
5
  $fontsize: 12px;
6
+ $maxwidth: 512px;
6
7
 
7
8
  body {
8
9
  color: black;
@@ -16,23 +17,24 @@ body {
16
17
 
17
18
  .post-meta { text-align: right; }
18
19
 
19
- h1 {
20
+ h1, h2, h3, h4, h5, h6 {
20
21
  margin: 0px;
21
22
  }
22
23
 
23
- h2, h3, h4, h5, h6 {
24
- font-size: $fontsize;
25
- margin: 0;
26
- }
27
-
28
24
  li { margin: 0.15rem 0; }
29
25
 
30
26
  .w {
31
- max-width: 512px;
27
+ max-width: $maxwidth;
32
28
  height: auto;
33
29
  margin: 1em auto;
34
30
  }
35
31
 
32
+ @media (max-width: 980px) {
33
+ .w {
34
+ max-width: 100%
35
+ }
36
+ }
37
+
36
38
  .box {
37
39
  @extend .w;
38
40
  padding: 1em;
@@ -50,29 +52,46 @@ div.highlighter-rouge code {
50
52
  padding: 1rem;
51
53
  }
52
54
 
53
-
54
55
  img {
55
56
  height: auto;
56
- max-width: 512px * 0.5;
57
+ max-width: 50%;
57
58
  display: block;
58
59
  margin: 0 auto;
60
+ object-fit: scale-down;
61
+ width: 100%;
59
62
  }
60
63
 
61
- em > img {
62
- max-width: 512px * 0.40;
64
+ h2 > img {
65
+ max-width: 46.5%;
66
+ max-height: 50%;
67
+ object-fit: cover;
63
68
  display: inline;
64
- margin: 0 512px*0.046;
69
+ padding: 0 0 0 5%;
70
+ box-sizing: border-box;
65
71
  }
66
72
 
67
- strong > img {
68
- max-width: 512px;
73
+ h1 > img {
74
+ max-width: 100%;
75
+ padding: 0 5%;
76
+ box-sizing: border-box;
69
77
  }
70
78
 
79
+
71
80
  img.logo {
81
+ height: 7em;
82
+ width: 7em;
72
83
  object-fit: cover;
73
84
  border-radius: 50%;
74
- height: 80px;
75
- width: 80px;
85
+ float: left;
86
+ margin: 0 1em 0 0;
87
+ }
88
+
89
+ img + em {
90
+ font-size: $fontsize;
91
+ text-align: center;
92
+ display: block;
93
+ margin: 0.5em auto;
94
+ font-weight: normal;
76
95
  }
77
96
 
78
97
  $link-color: #4478A6;
data/assets/test.png ADDED
Binary file
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.5
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-13 00:00:00.000000000 Z
11
+ date: 2022-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -42,6 +42,7 @@ files:
42
42
  - _sass/eleven.scss
43
43
  - assets/css/main.scss
44
44
  - assets/logo.png
45
+ - assets/test.png
45
46
  homepage: https://github.com/PaulSt/eleven
46
47
  licenses:
47
48
  - MIT