eleven-theme 0.1.4 → 0.2.1

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: bc80247b24c472028d3f5cc083a8f79944fe13fa4ea5ad053954c6d3078d1c4b
4
- data.tar.gz: 7dadac6b5d9c8c404702f23fb6d3bdb44daa94e89f96c186d72d4eeecbcc8055
3
+ metadata.gz: 116bf78d2c2bb17a0bb25443596fb00ebcc2ce65764a6b5bb23400fd7cb4caaa
4
+ data.tar.gz: 4643e929ed52b801923e6128f727f03d9bbe879c7b1a55d35cadef5ed382b78c
5
5
  SHA512:
6
- metadata.gz: 488605050b160f856cc5034b482212119b96800c89b98ff7e6594bfbafa06c48d69dd72a0b2ed16b0c6543b18b57eea8aa7bbcb67c6a663c57ac12faabbfadd3
7
- data.tar.gz: edbffa90aeae66cbf7fbcd31d4ac9010a9c3481109d4ff75fb6e6c6ba81d320ad13474d8fa13049b1bd89a17db8eb01991519748a86f0e04c3a06417fc3d9b65
6
+ metadata.gz: 6430597159bf7176ea6f9525f80eb204e9069af3638570844de1cd9b49550554459d37a36ed7118c78792386efdeca612b02238f14bb2fe18bc14a6293bcce55
7
+ data.tar.gz: f4c5bfe20cf04acc2aa3f02bd01730113098c34667a32a5ac3bb09db88c4a620182d4c41e19392666861c7ec007e079122d0261f44e2e81fed0c72f220c03b48
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
@@ -4,33 +4,45 @@ 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>
28
27
  {% endif %}
29
28
  {% endfor %}
30
29
 
30
+ {% for collection in site.collections %}
31
+ {% unless collection.label == 'posts' %}
32
+ <div class="box">
33
+ <h3>{{ collection.label }}</h3>
34
+ <ul>
35
+ {% for entry in site[collection.label] %}
36
+ <li><a href="{{ entry.url | relative_url }}">{{ entry.title }}</a></li>
37
+ {% endfor %}
38
+ </ul>
39
+ </div>
40
+ {% endunless %}
41
+ {% endfor %}
42
+
31
43
  {%- assign date_format = site.eleven.date_format | default: "%b %d, %Y" -%}
32
44
  <div class="box">
33
- <h2>Posts</h2>
45
+ <h3>Posts</h3>
34
46
  <ul>
35
47
  {% for post in site.posts %}
36
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;
@@ -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,28 +52,46 @@ div.highlighter-rouge code {
51
52
  padding: 1rem;
52
53
  }
53
54
 
54
-
55
55
  img {
56
56
  height: auto;
57
- max-width: 512px * 0.5;
57
+ max-width: 50%;
58
58
  display: block;
59
- margin-left: auto;
60
- margin-right: auto;
59
+ margin: 0 auto;
60
+ object-fit: scale-down;
61
+ width: 100%;
61
62
  }
62
63
 
63
- em > img {
64
- max-width: 512px;
64
+ h2 > img {
65
+ max-width: 46.5%;
66
+ max-height: 50%;
67
+ object-fit: cover;
68
+ display: inline;
69
+ padding: 0 0 0 5%;
70
+ box-sizing: border-box;
65
71
  }
66
72
 
67
- strong > img {
68
- border-radius: 8px;
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: 15%;
82
+ width: 15%;
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.4
4
+ version: 0.2.1
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-11 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