eleven-theme 0.1.3 → 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: 47d32a889d6b61b02ea4d9bf7951782d99683383a0d7b090783ec021985993a1
4
- data.tar.gz: b5d4c0d60b1bdd5631d92317797b0768539bdfffa576426fca0d513aac07de7c
3
+ metadata.gz: c51648924cc4c844333c25523a4c565eb82f519dab588146ae2d4e65242658f6
4
+ data.tar.gz: 8bfd5bb53ba7766bfc85aca2dc357965bd90f4d4a83fcfe7724cc767ed968c8e
5
5
  SHA512:
6
- metadata.gz: c4e99d59256ea82984e2f20f31ce545a3078befb62ae985afb27773db9cf786eb71439f658258ac7faea15bb081b6efb81514be568c618badfd45dcd5b82588e
7
- data.tar.gz: 17622beae35066b9e0f6fe5217d2fae342b2d19dce23883dbe688911f210329890ad59615684e808158c7e66c8721242cb5f3eaba1ff8adff2a9979b8c9b371b
6
+ metadata.gz: 44a5e752adeb1a497aa089dd72ace7e86aaae912a743bc4db47d568991ed2601583b5bc6a84aa314c8e99ebc5ebe8017ec1a203c1bc80b0bfe4d2564fb0b9772
7
+ data.tar.gz: c783de54b7a159c10e8ea1e61edeb783974bcd1df9cdf0d813c02261b64bbcbf068766166d3827f41fa5e16f7812dfea00e99b8170834a54e4209191d6bbf0a7
data/_config.yml CHANGED
@@ -12,5 +12,9 @@ description: "simple & clean jekyll theme"
12
12
  excerpt_separator: <!--more-->
13
13
  page_excerpts: true
14
14
 
15
+ collections:
16
+ Collection:
17
+ output: true
18
+
15
19
  # for github subpage
16
20
  baseurl: /eleven
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
@@ -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 | relative_url }}" class="rounded">
8
+ <img src="{{ site.eleven.logo | relative_url }}" class="logo">
9
9
  </div>
10
10
  <div style="display: inline-block; vertical-align: top; margin: 0 10px">
11
11
  {{ content }}
@@ -16,21 +16,36 @@ 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>
28
30
  {% endif %}
29
31
  {% endfor %}
30
32
 
33
+ {% for collection in site.collections %}
34
+ {% unless collection.label == 'posts' %}
35
+ <div class="box">
36
+ <h3>{{ collection.label }}</h3>
37
+ <ul>
38
+ {% for entry in site[collection.label] %}
39
+ <li><a href="{{ entry.url | relative_url }}">{{ entry.title }}</a></li>
40
+ {% endfor %}
41
+ </ul>
42
+ </div>
43
+ {% endunless %}
44
+ {% endfor %}
45
+
31
46
  {%- assign date_format = site.eleven.date_format | default: "%b %d, %Y" -%}
32
47
  <div class="box">
33
- <h2>Posts</h2>
48
+ <h3>Posts</h3>
34
49
  <ul>
35
50
  {% for post in site.posts %}
36
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;
@@ -40,7 +42,6 @@ li { margin: 0.15rem 0; }
40
42
  }
41
43
 
42
44
  code {
43
- color: black;
44
45
  background: lightgray;
45
46
  }
46
47
 
@@ -51,32 +52,56 @@ div.highlighter-rouge code {
51
52
  padding: 1rem;
52
53
  }
53
54
 
54
- #carousel img {
55
- width: 100%;
55
+ img {
56
56
  height: auto;
57
+ max-width: 512px * 0.5;
57
58
  display: block;
58
59
  margin: 0 auto;
59
- padding: 0.5em;
60
+ object-fit: scale-down;
61
+ width: 100%;
60
62
  }
61
63
 
62
- img.rounded {
64
+ h2 > img {
65
+ max-width: 512px * 0.465;
66
+ max-height: 512px * 0.5;
67
+ object-fit: cover;
68
+ display: inline;
69
+ padding: 0 0 0 512px*0.05;
70
+ box-sizing: border-box;
71
+ }
72
+
73
+ h1 > img {
74
+ max-width: 512px;
75
+ padding: 0 512px*0.05;
76
+ box-sizing: border-box;
77
+ }
78
+
79
+ img.logo {
63
80
  object-fit: cover;
64
81
  border-radius: 50%;
65
82
  height: 80px;
66
83
  width: 80px;
67
84
  }
68
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
+
69
94
  $link-color: #4478A6;
70
95
  $hover-color: darken($link-color, 20%);
71
96
  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
- }
97
+ color: $link-color;
98
+ text-decoration: none;
99
+
100
+ &:hover{
101
+ color: $hover-color;
102
+ border-bottom: 1px solid $hover-color;
103
+ }
104
+
105
+ &:visited{
106
+ }
82
107
  }
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.3
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-10 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