jekyll-rebellion 0.1.0 → 0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 51b5200ade4fabeda4bd69ae8ca17151ed0cd17078123983faf573568ce71ae9
4
- data.tar.gz: 1a4fe5fc41748fc8049a205db16dbd0fc5128246e2a7a89c634cc9ba325ac6af
3
+ metadata.gz: 204c8cdf810d6aa67b2e6b43a9fa9c80c8f868e5f5d923571c096e576bdbcee7
4
+ data.tar.gz: 0a9408cb7ca2d211e33621a84453be52b0c74c5b47cf8d8bcdfad7386f64f7fb
5
5
  SHA512:
6
- metadata.gz: c16b9a1c6503262db5c8dbaaa038467640843d1243f0308ed825338bd5178dee91130496e7f95ce52f8c01af673a61ef4ba7d878b883801ee97d7e05c708293a
7
- data.tar.gz: 81f0a9cf6630db81a7d4e3444aefb4c7f68e619c3a16359c46baa0146205c24719b723c188280bf4fffbdcba928fef5ec36115d6af7ef6a314025f700f4d0d92
6
+ metadata.gz: 59c87be691aa45f34ee42bebf32771b42a9cc13d9c6f61373d1b5ea81771c24e359a5d4e3750c9515d3b0d79edd02902377aca9f55eeaceafbb19f120892cbcd
7
+ data.tar.gz: 975fb1248f31cb29762d3a4f2a0257ceb988032afecf3345c7b065539956e544eb4e3b2f6421acd7e806f6c64a25d2cad06ae15b17fa443e78556a2434d88c55
@@ -8,26 +8,64 @@
8
8
  {% capture next_month %}{{ post.previous.date | date: "%B" }}{% endcapture %}
9
9
 
10
10
  {% if forloop.first %}
11
- <h2 id="{{ this_year }}-ref">{{this_year}}</h2>
12
- <h3 id="{{ this_year }}-{{ this_month }}-ref">{{ this_month }}</h3>
13
- <ol>
11
+ {% comment %}
12
+ <!-- Not including month and year at the top -->
13
+ <h2 id="{{ this_year }}-ref">{{this_year}}</h2>
14
+ <h3 id="{{ this_year }}-{{ this_month }}-ref">{{ this_month }}</h3>
15
+ {% endcomment %}
16
+ <div class="Rebellion-Blog-List">
14
17
  {% endif %}
15
18
 
16
- <li class="li{{this_day}}"><a href="{{ post.url }}">{{ post.title }}</a></li>
19
+ <div class="Rebellion-Blog-Item">
20
+ <div class="top">
21
+ <div class="date">
22
+ <span class="day-number">{{ post.date | date: "%e" }}</span>
23
+ <span class="month">{{ post.date | date: "%b" }}</span>
24
+ </div>
25
+ <div class="description">
26
+ <h4><a href="{{ post.url }}">{{ post.title }}</a></h4>
27
+ {% if post.authors %}
28
+ <span>
29
+ {% for a in post.authors %}
30
+ {% if a.url %}<a href='/{{ a.url }}'>{{ a.name }}</a>{% else %}{{a.name}}{% endif %}{% if forloop.last == false %},{% endif %}
31
+ {% endfor %}
32
+ </span>
33
+ {%endif%}
34
+ <p>{% if post.summary %}
35
+ {{ post.summary }}
36
+ {% else if post.excerpt %}
37
+ {{ post.excerpt }}
38
+ {% endif %}</p>
39
+ </div>
40
+ </div>
41
+ {% if post.image %}
42
+ <a href="{{ post.url }}"><img src="{{ post.image }}" /></a>
43
+ {% endif %}
44
+ <div style="width: 100%">
45
+ {% if post.categories.size > 0 %}
46
+ <span style="float: right;">Categories:
47
+ {% for c in post.categories %}
48
+ <a href="/categories/{{ c }}">{{ c }}</a>{% if forloop.last == false %},{% endif %}
49
+ {% endfor %}
50
+ </span>
51
+ {% endif %}
52
+ </div>
53
+ </div>
54
+
17
55
 
18
56
  {% if forloop.last %}
19
- </ol>
57
+ </div>
20
58
  {% else %}
21
59
  {% if this_year != next_year %}
22
- </ol>
60
+ </div>
23
61
  <h2 id="{{ next_year }}-ref">{{next_year}}</h2>
24
62
  <h3 id="{{ next_year }}-{{ next_month }}-ref">{{ next_month }}</h3>
25
- <ol>
63
+ <div class="Rebellion-Blog-List">
26
64
  {% else %}
27
65
  {% if this_month != next_month %}
28
- </ol>
66
+ </div>
29
67
  <h3 id="{{ this_year }}-{{ next_month }}-ref">{{ next_month }}</h3>
30
- <ol>
68
+ <div class="Rebellion-Blog-List">
31
69
  {% endif %}
32
70
  {% endif %}
33
71
  {% endif %}
@@ -42,7 +42,7 @@
42
42
  </div>
43
43
  </nav>
44
44
  </div>
45
- <p>This site uses the <a href="https://github.com/davidgundry/rebellion/">Rebellion</a> theme for Jekyll.
45
+ <p>This site uses the <a href="https://github.com/davidgundry/jekyll-rebellion/">Rebellion</a> theme for Jekyll.
46
46
  {% if site.copyright_notice %}
47
47
  {{ site.copyright_notice }}
48
48
  {% endif %}
@@ -5,7 +5,6 @@
5
5
  {% include mobile-header.html %}
6
6
  {% include desktop-header.html %}
7
7
 
8
-
9
8
  {%- assign titles_size = site.pages | map: 'title' | join: '' | size -%}
10
9
  {% if site.header_pages %}
11
10
  {% assign titles_size = 0 %}
@@ -1,8 +1,9 @@
1
+ <!DOCTYPE html>
1
2
  {% include head.html %}
2
3
  <body>
3
4
  {% include header.html %}
4
5
 
5
- <main class="Rebellion-main">
6
+ <main class="Rebellion-Main">
6
7
 
7
8
  {% if page.top_image %}
8
9
  {% if layout.image_big %}
@@ -7,4 +7,3 @@ layout: default
7
7
  {{ content }}
8
8
  </div>
9
9
  </div>
10
-
@@ -1,9 +1,13 @@
1
1
  ---
2
- layout: base-post
2
+ layout: default
3
3
  ---
4
+
4
5
  <div class="Rebellion-Section">
5
6
  <div class="Rebellion-Wrapper-Wide">
6
7
  <h1>{{ page.title }}</h1>
8
+ {% if page.image %}
9
+ <img src="{{ page.image }}" />
10
+ {% endif %}
7
11
  {{ content }}
8
12
  </div>
9
13
  </div>
@@ -8,7 +8,6 @@
8
8
  font-display:swap
9
9
  }
10
10
 
11
-
12
11
  // Fonts
13
12
  $base-font-stack: "Crimson Text", serif !default;
14
13
  $base-font-size: 16pt !default;
@@ -18,7 +17,6 @@ $header-font-stack: "FucXed","Helvetica Neue",Helvetica,Arial,sans-serif;
18
17
  $small-font-size: $base-font-size * 0.875 !default;
19
18
  $smaller-font-size: $base-font-size * 0.7 !default;
20
19
 
21
-
22
20
  $table-text-align: left !default;
23
21
 
24
22
  // Width of the content area
@@ -32,6 +30,7 @@ $on-large: 1300px !default;
32
30
 
33
31
  $spacing-unit: 10px !default;
34
32
  $action-bar-height: 72px !default;
33
+ $action-bar-height-mobile: 56px !default;
35
34
  $rounding: 5px;
36
35
 
37
36
  // Import partials.
@@ -39,6 +38,6 @@ $rounding: 5px;
39
38
  "rebellion/base",
40
39
  "rebellion/header",
41
40
  "rebellion/footer",
42
- "rebellion/components"
41
+ "rebellion/content"
43
42
  ;
44
43
 
@@ -24,8 +24,6 @@ pre, code, blockquote, figure, table {
24
24
  margin: $spacing-unit*2 0;
25
25
  padding: 0;
26
26
  }
27
- h1 { text-align: center; }
28
-
29
27
 
30
28
  /**
31
29
  * Basic styling
@@ -39,7 +37,17 @@ body {
39
37
  flex-direction: column;
40
38
  }
41
39
 
42
-
40
+ h1 {
41
+ text-align: center;
42
+ line-height: 1.1;
43
+ font-family: $header-font-stack;
44
+ margin: 1em 0 0.4em 0;
45
+ }
46
+
47
+ p {
48
+ margin: 1em 0;
49
+ }
50
+
43
51
  img {
44
52
  max-width: 100%;
45
53
  vertical-align: middle;
@@ -137,9 +145,7 @@ ul {
137
145
  padding-right: 0.5em;
138
146
  }
139
147
  }
140
-
141
-
142
-
148
+
143
149
 
144
150
  /**
145
151
  * Links
@@ -202,10 +208,8 @@ pre {
202
208
  padding-left: 0;
203
209
  }
204
210
  }
205
-
206
211
 
207
212
 
208
-
209
213
  /**
210
214
  * Tables
211
215
  */
@@ -239,8 +243,6 @@ table {
239
243
  }
240
244
  }
241
245
 
242
-
243
-
244
246
  /**
245
247
  * Clearfix
246
248
  */
@@ -250,68 +252,6 @@ table {
250
252
  clear: both;
251
253
  }
252
254
 
253
- .Rebellion-Wrapper-Wide{
254
- max-width: -webkit-calc(#{$content-width-wide} - (#{$spacing-unit}));
255
- max-width: calc(#{$content-width-wide} - (#{$spacing-unit}));
256
- margin-right: auto;
257
- margin-left: auto;
258
- padding-right: $spacing-unit;
259
- padding-left: $spacing-unit;
260
- @extend %clearfix;
261
-
262
- }
263
-
264
- .Rebellion-Wrapper-Narrow{
265
- max-width: -webkit-calc(#{$content-width-narrow} - (#{$spacing-unit}));
266
- max-width: calc(#{$content-width-narrow} - (#{$spacing-unit}));
267
- margin-right: auto;
268
- margin-left: auto;
269
- padding-right: $spacing-unit;
270
- padding-left: $spacing-unit;
271
- @extend %clearfix;
272
- }
273
-
274
- .Rebellion-Main {
275
- display: flex;
276
- flex: 1 0 auto;
277
- flex-direction: column;
278
- display: block; //Defaults to 'inline' in IE 11
279
- }
280
-
281
-
282
- .Rebellion-Button {
283
- display: inline-block;
284
- background-color: $accent-color;
285
- color: $accent-text-color;
286
- padding: 0.5em 1em;
287
- border-radius: $rounding;
288
- font-family: $header-font-stack;
289
- transition: background-color 0.3s ease-in-out;
290
- font-weight: normal;
291
- &:hover {
292
- text-decoration: none;
293
- background-color: $accent-color-dark;
294
- }
295
- &:visited {
296
- color: $accent-text-color;
297
- }
298
- }
299
-
300
-
301
- .Rebellion-Post-Info {
302
- display: flex;
303
- flex-wrap: wrap;
304
- justify-content: space-evenly;
305
- align-content: stretch;
306
- padding-top: $spacing-unit*4;
307
- font-size: $small-font-size;
308
-
309
- > .box {
310
- background-color: $grey-color-light;
311
- padding: 0 $spacing-unit*2;
312
- flex-basis: 250px;
313
- }
314
- }
315
255
 
316
256
  .invert-text {
317
257
  color: $background-color;
@@ -0,0 +1,210 @@
1
+ .Rebellion-Section {
2
+ padding: 10vh 0;
3
+ width: 100%;
4
+ position: relative;
5
+ box-sizing: border-box;
6
+ &:first-of-type {
7
+ padding-top: $action-bar-height-mobile + 50;
8
+
9
+ @media screen and (min-width: $on-small) {
10
+ padding-top: $action-bar-height + 50;
11
+ }
12
+ }
13
+ }
14
+
15
+ .Rebellion-Wrapper-Wide{
16
+ max-width: -webkit-calc(#{$content-width-wide} - (#{$spacing-unit}));
17
+ max-width: calc(#{$content-width-wide} - (#{$spacing-unit}));
18
+ margin-right: auto;
19
+ margin-left: auto;
20
+ padding-right: $spacing-unit;
21
+ padding-left: $spacing-unit;
22
+ @extend %clearfix;
23
+ }
24
+
25
+ .Rebellion-Wrapper-Narrow{
26
+ max-width: -webkit-calc(#{$content-width-narrow} - (#{$spacing-unit}));
27
+ max-width: calc(#{$content-width-narrow} - (#{$spacing-unit}));
28
+ margin-right: auto;
29
+ margin-left: auto;
30
+ padding-right: $spacing-unit;
31
+ padding-left: $spacing-unit;
32
+ @extend %clearfix;
33
+ }
34
+
35
+ .Rebellion-Main {
36
+ display: flex;
37
+ flex: 1 0 auto;
38
+ flex-direction: column;
39
+ display: block; //Defaults to 'inline' in IE 11
40
+ }
41
+
42
+ .Rebellion-Big-Picture {
43
+ background-position: center;
44
+ background-size: cover;
45
+ height: 100vh;
46
+ padding: 0;
47
+ }
48
+
49
+ .Rebellion-Half-Picture {
50
+ background-position: center;
51
+ background-size: cover;
52
+ padding: 0;
53
+ height: 45vh;
54
+ }
55
+
56
+ .Rebellion-Near-Bottom {
57
+ position: absolute;
58
+ bottom: 10%;
59
+ left: 0;
60
+ right: 0;
61
+ }
62
+
63
+ .Rebellion-Flex-Line {
64
+ display: flex;
65
+ flex-direction: row;
66
+ flex-wrap: wrap;
67
+ justify-content: space-evenly;
68
+ }
69
+
70
+ .Rebellion-Button {
71
+ display: inline-block;
72
+ background-color: $accent-color;
73
+ color: $accent-text-color;
74
+ padding: 0.5em 1em;
75
+ border-radius: $rounding;
76
+ font-family: $header-font-stack;
77
+ transition: background-color 0.3s ease-in-out;
78
+ font-weight: normal;
79
+ &:hover {
80
+ text-decoration: none;
81
+ background-color: $accent-color-dark;
82
+ }
83
+ &:visited {
84
+ color: $accent-text-color;
85
+ }
86
+ }
87
+
88
+ .Rebellion-PullQuote {
89
+ background-color: $brand-color;
90
+ color: $brand-text-color;
91
+ font-family: $header-font-stack;
92
+ text-align: center;
93
+ padding: 130px 0 100px 0;
94
+
95
+ h1 {
96
+ text-align: left;
97
+ margin: 1em 0;
98
+ font-size: $base-font-size * 1.25 ;
99
+ }
100
+
101
+ @media screen and (min-width: 400px) {
102
+ h1 { font-size: $base-font-size * 1.5;}
103
+ }
104
+
105
+ @media screen and (min-width: 800px) {
106
+ h1 { font-size: $base-font-size * 2; }
107
+ }
108
+ }
109
+
110
+ .Rebellion-Post-Info {
111
+ display: flex;
112
+ flex-wrap: wrap;
113
+ justify-content: space-evenly;
114
+ align-content: stretch;
115
+ padding-top: $spacing-unit*4;
116
+ font-size: $small-font-size;
117
+
118
+ > .box {
119
+ padding: 0 $spacing-unit*2;
120
+ flex: 0 1 300px;
121
+ }
122
+ }
123
+
124
+ .Rebellion-Blog-List{
125
+ li {
126
+ list-style-type: none;
127
+ counter-increment: list;
128
+ position: relative;
129
+ margin-left: 2.5em;
130
+ }
131
+
132
+ li:before {
133
+ font-weight: bold;
134
+ position: absolute;
135
+ left: -2.6em;
136
+ width: 2em;
137
+ text-align: right;
138
+ color: $text-color;
139
+ font-family: $header-font-stack;
140
+ font-size: 2em;
141
+ }
142
+ }
143
+
144
+ .Rebellion-Blog-Item {
145
+ display: flex;
146
+ flex-direction: column;
147
+ align-items: center;
148
+ background-color: $background-color;
149
+ box-shadow: 0 5px 10px $shadow-color;
150
+ padding: $spacing-unit;
151
+ padding-bottom: $spacing-unit /2;
152
+ margin: $spacing-unit;
153
+ max-width: $content-width-wide;
154
+ width: 90%;
155
+
156
+ & > img {
157
+ margin: $spacing-unit 0 $spacing-unit/2 0;
158
+ }
159
+
160
+ .top {
161
+ display: flex;
162
+ flex-direction: row;
163
+ align-items: center;
164
+ width: 100%;
165
+
166
+ .date {
167
+ flex-basis: 60px;
168
+ flex-grow: 0;
169
+ flex-shrink: 0;
170
+
171
+ display: flex;
172
+ flex-direction: column;
173
+ align-items: center;
174
+ justify-content: center;
175
+ text-align: center;
176
+ font-family: $header-font-stack;
177
+ padding-right: $spacing-unit;
178
+
179
+ .day-number {
180
+ font-size: $base-font-size * 2;
181
+ border-bottom: 4px solid $xr-green;
182
+ line-height: 1;
183
+ }
184
+
185
+ .month {
186
+ font-size: $small-font-size; //$base-font-size * 0.8;
187
+ color: $text-color-light;
188
+ }
189
+ }
190
+
191
+ .description {
192
+ line-height: 1;
193
+ width: 100%;
194
+ font-size: $small-font-size;
195
+
196
+ h3, h4 {
197
+ margin-top: 5px;
198
+ }
199
+
200
+ .bottom-line {
201
+ display: flex;
202
+ flex-direction: row;
203
+ align-items: center;
204
+ justify-content: space-between;
205
+ width: 100%;
206
+ }
207
+ }
208
+ }
209
+ }
210
+