eli-theme 0.1.0 → 0.1.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
  SHA1:
3
- metadata.gz: cac801fd2f3f5ae70be7f5f8e78ffe87d5b5a482
4
- data.tar.gz: e78e1dcadf9aa38b23b817907e2c0b5ff0bf9b0a
3
+ metadata.gz: 5abb8ceebc9726744caa15f93621885ce443182e
4
+ data.tar.gz: de52d6d40dc9e26ff5c90249a3269b4d1cfd3c2c
5
5
  SHA512:
6
- metadata.gz: e29680f585f329e428e30d9e9eff7bd11e3957c653773b87d047ec34e92dc308d6412188ea4cc9e0192e08e3a3da44a361e646245a33b9f51fbe492be315d657
7
- data.tar.gz: d9df4641840a07b4431f4fd2883938ca551ee2c4d37c37b5892b5bba4c6d6d1a9533f0af9af4a5c886145aba550c97e4315e1174f70b5dbf04469c00df64be46
6
+ metadata.gz: '048ab074f5e129f3a417b0dabcbd76a209f8bd204d52512b3da923b06cf467e3746a5d5370d6c9e115b8ba526708082c8e0150618dcb1e810e59c0f14a8d41c0'
7
+ data.tar.gz: 64ac421bd4dcfd746e79833d3356049c4064056f9a5549e894c133913d507bf72bcc571765b6939a02c59c26b7704137623314301d95ecc6d56e8f6351b8b4fb
data/_includes/head.html CHANGED
@@ -5,4 +5,7 @@
5
5
  <link rel="stylesheet" href="assets/main.css">
6
6
  <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha256-3edrmyuQ0w65f8gfBsqowzjJe2iM6n0nKciPUp8y+7E=" crossorigin="anonymous"></script>
7
7
  <script src="https://use.fontawesome.com/f2b29d30d8.js"></script>
8
+
9
+ <!-- Liquid variables -->
10
+ {% assign post_size = site.posts | size %}
8
11
  </head>
@@ -7,7 +7,16 @@
7
7
  {% include mobile-nav.html %}
8
8
  {% include header.html %}
9
9
  <div class="container">
10
- {{ content }}
10
+ {% if page.post-index == true and post_size > 0 %}
11
+ <div class="post-index-box">
12
+ <div class="box">
13
+ {{ content }}
14
+ </div>
15
+ {% include post-index.html %}
16
+ </div>
17
+ {% else %}
18
+ {{content}}
19
+ {% endif %}
11
20
  </div>
12
21
 
13
22
  {% include footer.html %}
@@ -3,8 +3,7 @@ body {
3
3
  }
4
4
 
5
5
  .container {
6
- padding: 0 64px;
7
- content-align: center;
6
+ padding: 0 10%;
8
7
 
9
8
  @media screen and (max-width: $screen_small) {
10
9
  padding: 0 24px;
@@ -17,4 +16,54 @@ body {
17
16
  @media screen and (max-width: $screen_small) {
18
17
  display: block;
19
18
  }
19
+ }
20
+
21
+
22
+ .post-index-box {
23
+ display: flex;
24
+ justify-content: space-around;
25
+ align-items: stretch;
26
+
27
+ & .box {
28
+ width: 70%;
29
+ }
30
+
31
+ @media screen and (max-width: $screen_small) {
32
+ display: block;
33
+ & .box {
34
+ width: 100%;
35
+ margin-bottom: 48px;
36
+ }
37
+ }
38
+ }
39
+
40
+ .post-index {
41
+ width: 30%;
42
+ margin: 12px;
43
+ padding: 12px;
44
+ border: 1px solid red;
45
+ border: 1px solid #ddd;
46
+ border-radius: 5px;
47
+
48
+ & h5 {
49
+ margin: 0;
50
+ text-align: center;
51
+ }
52
+
53
+ & .post-index-entry {
54
+ color: #999;
55
+ }
56
+
57
+ & .post-index-entry p {
58
+ color: $color_1;
59
+ width: 100%;
60
+ margin-bottom: 0;
61
+ white-space: nowrap;
62
+ overflow: hidden;
63
+ text-overflow: ellipsis;
64
+ }
65
+
66
+ @media screen and (max-width: $screen_small) {
67
+ width: 100%;
68
+ }
20
69
  }
@@ -45,6 +45,11 @@ a {
45
45
  text-decoration: none;
46
46
  }
47
47
 
48
+ ul a {
49
+ font-family: $font_headers;
50
+ font-size: 0.9em;
51
+ }
52
+
48
53
  blockquote {
49
54
  background-color: #efefef;
50
55
  padding: 12px;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eli-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - thegoobs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-03 00:00:00.000000000 Z
11
+ date: 2018-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll