scoobr 0.1.1 → 0.1.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
  SHA1:
3
- metadata.gz: 44eb528c2e4e0cdd2c985900f443bd69896f7bba
4
- data.tar.gz: bcd5495d2dd2d2eaab75b644cdbc9155083585c7
3
+ metadata.gz: f878e44e233e56cd29c3f2f955dc212765fe0d0b
4
+ data.tar.gz: b6116f10c7526b3c007a354962107480f34bd1d0
5
5
  SHA512:
6
- metadata.gz: fecbf5f534e1e78e96093bbffb3b3c1093dc961bcc9bd4bbf5f04108e16ec3f60d182135d4306600efe310fbff25d088e4e6061ba1235466a01920f6a640639d
7
- data.tar.gz: b85dafad80f07a34792aec0e9b4ba1fa3166513cc9f8862cc59c9f72ab99e88432ca6d38e1c6d9de49036dcf30a2be47ea7653b85704a6a7314480200b568e4c
6
+ metadata.gz: ec25a44da4e39e6c048f3da04063ca946f1abc4e3db124e9f570d3d9ecab3de2a8b7478c33d28a8869fbeaed538d69593c8b9d986527eea45adc13a64d00329a
7
+ data.tar.gz: bccaf21e91049cb522ab8515e09579b049251492d716b9233cf9c414082eed5c2a5b44e7b6651f843d12abf05135f1ae815aea953af9ca469f8c5bc4719b63f3
@@ -2,7 +2,7 @@
2
2
 
3
3
  <div class="small-container">
4
4
 
5
- <div class="footer-social flex-small">
5
+ <div class="footer-social">
6
6
  {{ site.data.footer.social_markdown | markdownify }}
7
7
  <div class="social-icons">
8
8
  {% for social_icon in site.data.footer.social_icons %}
@@ -12,7 +12,7 @@
12
12
  <p>Theme built by <a href="https://jonp.io">Jon Persson</a>.</p>
13
13
  </div>
14
14
 
15
- <div class="footer-disclaimer flex-large">
15
+ <div class="footer-disclaimer">
16
16
  {{ site.data.footer.disclaimer_markdown | markdownify }}
17
17
  </div>
18
18
 
data/_includes/head.html CHANGED
@@ -3,8 +3,7 @@
3
3
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
4
4
  <meta name="viewport" content="width=device-width, initial-scale=1">
5
5
 
6
- <title>{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title>
7
- <meta name="description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}">
6
+ {% seo %}
8
7
 
9
8
  <link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
10
9
  <link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
@@ -1,4 +1,4 @@
1
- <nav class="main-navigation">
1
+ <nav class="main-navigation{% if page.layout == "home" or page.layout == "post" %} absolute-navigation{% endif %}">
2
2
 
3
3
  <a class="screen-reader-text" href="#content">Skip Navigation</a>
4
4
 
data/_layouts/home.html CHANGED
@@ -27,7 +27,7 @@ layout: default
27
27
  {% for item in posts %}
28
28
  <article class="cell">
29
29
  <a href="{{ item.url }}">
30
- <img class="thumbnail-image" src=" {{ item.thumbnail_image | default: "assets/thumbnail.svg" }}" alt="{{ item.title }}">
30
+ <img class="thumbnail-image" src=" {{ item.image | default: "assets/thumbnail.svg" }}" alt="{{ item.title }}">
31
31
  </a>
32
32
  <div class="container">
33
33
  <h3><a class="title-link" href="{{ item.url }}">{{ item.title }}</a></h3>
data/_layouts/page.html CHANGED
@@ -2,4 +2,7 @@
2
2
  layout: default
3
3
  ---
4
4
 
5
- {{ content }}
5
+ <article class="small-container content-section">
6
+ <h2>{{ page.title }}</h2>
7
+ {{ content }}
8
+ </article>
data/_layouts/post.html CHANGED
@@ -5,6 +5,10 @@ layout: default
5
5
 
6
6
  <div class="small-container no-side-padding">
7
7
  <h2>{{ page.title }}</h2>
8
+ <p>
9
+ <i data-icon="ei-calendar" data-size="s"></i>{{ page.date | date: '%B %d, %Y' }}
10
+ <i data-icon="ei-user" data-size="s"></i>{{ page.author | default: site.author }}
11
+ </p>
8
12
  </div>
9
13
 
10
14
  </header>
@@ -20,21 +24,11 @@ layout: default
20
24
  <div class="posts">
21
25
  <div class="container">
22
26
 
23
- {% assign posts = site.posts %}
24
- {% for item in posts %}
27
+ {% assign related = site.related_posts %}
28
+ {% for item in related | limit: 3 %}
25
29
  <article class="cell">
26
30
  <a href="{{ item.url }}">
27
- <img class="thumbnail-image" src=" {{ item.thumbnail_image | default: "/assets/thumbnail.svg" }}" alt="{{ item.title }}">
28
- </a>
29
- <div class="container">
30
- <h5><a class="title-link" href="{{ item.url }}">{{ item.title }}</a></h5>
31
- </div>
32
- </article>
33
- {% endfor %}
34
- {% for item in posts | limit: 1 %}
35
- <article class="cell">
36
- <a href="{{ item.url }}">
37
- <img class="thumbnail-image" src=" {{ item.thumbnail_image | default: "/assets/thumbnail.svg" }}" alt="{{ item.title }}">
31
+ <img class="thumbnail-image" src=" {{ item.image | default: "/assets/thumbnail.svg" }}" alt="{{ item.title }}">
38
32
  </a>
39
33
  <div class="container">
40
34
  <h5><a class="title-link" href="{{ item.url }}">{{ item.title }}</a></h5>
@@ -66,8 +66,8 @@ $h5: 1.3rem;
66
66
 
67
67
  $padding: 1.5rem;
68
68
  $margins: 1.5rem;
69
- $content-padding: 60px 0;
70
- $content-padding-mobile: 30px 0;
69
+ $content-padding: 60px;
70
+ $content-padding-mobile: 30px;
71
71
 
72
72
  /* Borders */
73
73
 
@@ -62,6 +62,7 @@ select {
62
62
  -webkit-appearance: none;
63
63
  -moz-appearance: none;
64
64
  background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAJCAYAAAA/33wPAAAAvklEQVQoFY2QMQqEMBBFv7ERa/EMXkGw11K8QbDXzuN4BHv7QO6ifUgj7v4UAdlVM8Uwf+b9YZJISnlqrfEUZVlinucnBGKaJgghbiHOyLyFKIoCbdvecpyReYvo/Ma2bajrGtbaC58kCdZ1RZ7nl/4/4d5EsO/7nzl7IUtodBexMMagaRrs+06JLMvcNWmaOv2W/C/TMAyD58dxROgSmvxFFMdxoOs6lliWBXEcuzokXRbRoJRyvqqqQvye+QDMDz1D6yuj9wAAAABJRU5ErkJggg==) right center no-repeat;
65
+ background-color: $background;
65
66
  line-height: 1; // ensures text doesn't get cut off
66
67
  }
67
68
 
@@ -58,12 +58,31 @@
58
58
  margin-bottom: $margins * 2;
59
59
  }
60
60
 
61
- .post-header .small-container h2 {
61
+ .post-header .small-container h2, .post-header .small-container p {
62
62
  display: inline-block;
63
63
  margin: 0;
64
64
  padding: $padding / 2 $padding;
65
65
  background-color: $background;
66
66
  box-shadow: 0 2px 5px rgba(0,0,0,.1);
67
+ color: $font-color;
68
+ float: left;
69
+ clear: both;
70
+ }
71
+
72
+ .post-header .small-container p {
73
+ margin-top: $margins / 3;
74
+ display: flex;
75
+ flex-direction: row;
76
+ align-items: center;
77
+ font-size: $code-size;
78
+ }
79
+
80
+ .post-header .small-container p .icon {
81
+ margin-right: $margins / 3;
82
+ }
83
+
84
+ .post-header .small-container p .icon:nth-of-type(2) {
85
+ margin-left: $margins;
67
86
  }
68
87
 
69
88
  .home-header h2, .home-header p {
@@ -97,13 +116,19 @@
97
116
  }
98
117
 
99
118
  .cell {
100
- width: 45%;
119
+ width: 100%;
101
120
  margin-bottom: $margins * 2;
102
121
  box-shadow: 0 2px 5px rgba(0,0,0,.1);
103
122
  display: flex;
104
123
  flex-direction: column;
105
124
  }
106
125
 
126
+ @include large-breakpoint {
127
+ .cell {
128
+ width: 45%
129
+ }
130
+ }
131
+
107
132
  .cell .container {
108
133
  padding: $padding $padding * 2;
109
134
  background-color: $background;
@@ -123,11 +148,22 @@
123
148
  padding: 60px $padding;
124
149
  color: $accent-color;
125
150
  display: flex;
126
- flex-direction: row;
127
- justify-content: space-between;
151
+ flex-direction: column;
128
152
  font-size: 1rem;
129
153
  }
130
154
 
155
+ @include large-breakpoint {
156
+ .main-footer .small-container {
157
+ flex-direction: row;
158
+ justify-content: space-between;
159
+ }
160
+ }
161
+
162
+ .footer-social, .footer-disclaimer {
163
+ @extend %column-padding;
164
+ margin-bottom: $margin-bottom;
165
+ }
166
+
131
167
  .social-icons {
132
168
  margin-bottom: $margins;
133
169
  }
@@ -152,8 +188,10 @@
152
188
  margin: $margins * 2 auto 0;
153
189
  }
154
190
 
155
- .after-post .cell {
156
- width: calc(90% / 3)
191
+ @include large-breakpoint {
192
+ .after-post .cell {
193
+ width: calc(90% / 3);
194
+ }
157
195
  }
158
196
 
159
197
  .after-post h3 {
@@ -176,3 +214,16 @@
176
214
  margin-left: auto;
177
215
  margin-right: auto;
178
216
  }
217
+
218
+ p img {
219
+ max-width: 100%;
220
+ width: 100%;
221
+ margin: auto;
222
+ }
223
+
224
+ @include large-breakpoint {
225
+ p img {
226
+ width: 50%;
227
+ float: right;
228
+ }
229
+ }
@@ -3,11 +3,17 @@
3
3
 
4
4
  .main-navigation {
5
5
  padding: $padding;
6
- position: absolute;
6
+ position: relative;
7
7
  left: 0;
8
8
  right: 0;
9
9
  z-index: 30;
10
10
  color: $background !important;
11
+ background-color: darken($primary-color, 20%);
12
+ }
13
+
14
+ .absolute-navigation {
15
+ position: absolute;
16
+ background-color: transparent;
11
17
  }
12
18
 
13
19
  .main-navigation .container {
@@ -225,11 +225,13 @@ dd {
225
225
 
226
226
  // Content
227
227
  .content-section {
228
- padding: $content-padding-mobile;
228
+ padding-top: $content-padding-mobile;
229
+ padding-bottom: $content-padding-mobile;
229
230
  }
230
231
 
231
232
  @include small-breakpoint {
232
233
  .content-section {
233
- padding: $content-padding;
234
+ padding-top: $content-padding;
235
+ padding-bottom: $content-padding;
234
236
  }
235
237
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scoobr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-19 00:00:00.000000000 Z
11
+ date: 2017-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '10.0'
55
55
  description:
56
56
  email:
57
- - ''
57
+ - jonlpersson@gmail.com
58
58
  executables: []
59
59
  extensions: []
60
60
  extra_rdoc_files: []
@@ -88,7 +88,7 @@ files:
88
88
  - assets/thumbnail.svg
89
89
  homepage: https://jonp.io
90
90
  licenses:
91
- - MIT
91
+ - Copyright © Jon Persson. All rights reserved.
92
92
  metadata: {}
93
93
  post_install_message:
94
94
  rdoc_options: []