eleven-theme 0.1.5 → 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: be546f5eece825a4f3edb0b63ce370c78edb8b65c5778b1498e2d113023e5081
4
- data.tar.gz: b098ce4e7c55807efb17df6f96916a9f43994ff238eb4e0a5e1f9252af15578e
3
+ metadata.gz: c51648924cc4c844333c25523a4c565eb82f519dab588146ae2d4e65242658f6
4
+ data.tar.gz: 8bfd5bb53ba7766bfc85aca2dc357965bd90f4d4a83fcfe7724cc767ed968c8e
5
5
  SHA512:
6
- metadata.gz: 1a859d341b51faa98e13a3397273b7e1350478d502e5a9ed97a4df58808f79438f148029a3eb1849ae1bf34c2a4694344f940c59fbea6c9218312c0824ad25e7
7
- data.tar.gz: 0e8d55a05a8f60c5aa582b008685d09b6063b53f727ef0042fdef43b7cdb3ee5301adfc7ed4099f6f4889da36811425a63bf72834da5ca3d897229794268c98c
6
+ metadata.gz: 44a5e752adeb1a497aa089dd72ace7e86aaae912a743bc4db47d568991ed2601583b5bc6a84aa314c8e99ebc5ebe8017ec1a203c1bc80b0bfe4d2564fb0b9772
7
+ data.tar.gz: c783de54b7a159c10e8ea1e61edeb783974bcd1df9cdf0d813c02261b64bbcbf068766166d3827f41fa5e16f7812dfea00e99b8170834a54e4209191d6bbf0a7
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
@@ -16,12 +16,14 @@ layout: default
16
16
  {% if page.layout == 'block' %}
17
17
  {% unless page.content contains site.excerpt_separator %}
18
18
  <div class="box">
19
+ <h3>{{ page.title }}</h3>
19
20
  {{ page.content | markdownify }}
20
21
  </div>
21
22
  {% endunless %}
22
23
  {% endif %}
23
24
  {% if page.layout == 'block' and page.content contains site.excerpt_separator %}
24
25
  <div class="box">
26
+ <h3>{{ page.title }}</h3>
25
27
  {{ page.excerpt }}
26
28
  <p><a href="{{ page.url | relative_url }}">Read more</a></p>
27
29
  </div>
@@ -31,7 +33,7 @@ layout: default
31
33
  {% for collection in site.collections %}
32
34
  {% unless collection.label == 'posts' %}
33
35
  <div class="box">
34
- <h2>{{ collection.label }}</h2>
36
+ <h3>{{ collection.label }}</h3>
35
37
  <ul>
36
38
  {% for entry in site[collection.label] %}
37
39
  <li><a href="{{ entry.url | relative_url }}">{{ entry.title }}</a></li>
@@ -43,7 +45,7 @@ layout: default
43
45
 
44
46
  {%- assign date_format = site.eleven.date_format | default: "%b %d, %Y" -%}
45
47
  <div class="box">
46
- <h2>Posts</h2>
48
+ <h3>Posts</h3>
47
49
  <ul>
48
50
  {% for post in site.posts %}
49
51
  <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
@@ -16,15 +16,10 @@ body {
16
16
 
17
17
  .post-meta { text-align: right; }
18
18
 
19
- h1 {
19
+ h1, h2, h3, h4, h5, h6 {
20
20
  margin: 0px;
21
21
  }
22
22
 
23
- h2, h3, h4, h5, h6 {
24
- font-size: $fontsize;
25
- margin: 0;
26
- }
27
-
28
23
  li { margin: 0.15rem 0; }
29
24
 
30
25
  .w {
@@ -33,6 +28,13 @@ li { margin: 0.15rem 0; }
33
28
  margin: 1em auto;
34
29
  }
35
30
 
31
+ @media (max-width: 800px) {
32
+ #container {
33
+ padding: 0;
34
+ margin: 0;
35
+ }
36
+ }
37
+
36
38
  .box {
37
39
  @extend .w;
38
40
  padding: 1em;
@@ -50,22 +52,28 @@ div.highlighter-rouge code {
50
52
  padding: 1rem;
51
53
  }
52
54
 
53
-
54
55
  img {
55
56
  height: auto;
56
57
  max-width: 512px * 0.5;
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: 512px * 0.465;
66
+ max-height: 512px * 0.5;
67
+ object-fit: cover;
63
68
  display: inline;
64
- margin: 0 512px*0.046;
69
+ padding: 0 0 0 512px*0.05;
70
+ box-sizing: border-box;
65
71
  }
66
72
 
67
- strong > img {
73
+ h1 > img {
68
74
  max-width: 512px;
75
+ padding: 0 512px*0.05;
76
+ box-sizing: border-box;
69
77
  }
70
78
 
71
79
  img.logo {
@@ -75,6 +83,14 @@ img.logo {
75
83
  width: 80px;
76
84
  }
77
85
 
86
+ img + em {
87
+ font-size: $fontsize;
88
+ text-align: center;
89
+ display: block;
90
+ margin: 0.5em auto;
91
+ font-weight: normal;
92
+ }
93
+
78
94
  $link-color: #4478A6;
79
95
  $hover-color: darken($link-color, 20%);
80
96
  a{
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.0
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-26 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