jekyll-theme-yat 1.0.1 → 1.1.0

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: a435ef6001371fcf5562037fc2e45c466af7617b5eec3baea067254bfdec9f69
4
- data.tar.gz: 0a31d8fe912a761ec58b519109db028304e2039a43a7588ffae5017a2b0d57e2
3
+ metadata.gz: 8e400b5095fe94ac655f5b7082ed7a1ed084d2f91df05628303d892261330214
4
+ data.tar.gz: b7a07628a1f055962edc70349575cf25b4ee5bdde8720b2f41b476fd22ec3eb8
5
5
  SHA512:
6
- metadata.gz: bf0168e62b3a505dcd3a727f8391c3b82652c501a63a6ef16644b39b4f3f31598d0fb29b236a7e24243ed7bf3c64954e4fd83dce5874009037b8456c09b3cbba
7
- data.tar.gz: 15798054a9ce741f8efec0980cd14de59ced3e9e01c0663fee9bf058680838b75b0f76a73a6f9579f96147bc53ba86a647d81bd50185f0e0064c264975882dfd
6
+ metadata.gz: eb2bc388b34096a5044585ba79e176ce17da6ee8f18c8609230e875bd5bc6e84d77effd1b548d010afeba8d364ddf3d8d3a4bc1d9476734f2d0f2b4f05fccffa
7
+ data.tar.gz: b4a421865b0ca37cefa41a3cebf68cd3c14b85e1665e1877df3e0e0adbbc33d87ef78c3c95fdfc2c1322ee49f33d17570b01902d747f9a802bef31e8f2a2e13e
data/_includes/head.html CHANGED
@@ -4,10 +4,8 @@
4
4
  <meta name="viewport" content="width=device-width, initial-scale=1">
5
5
  <meta name="google-translate-customization" content="108d9124921d80c3-80e20d618ff053c8-g4f02ec6f3dba68b7-c"></meta>
6
6
  {%- seo -%}
7
- {%- if site.favicon -%}
8
7
  <link rel="shortcut icon" href="{{ site.favicon }}">
9
- {%- endif -%}
10
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
8
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
11
9
  <link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
12
10
  {%- feed_meta -%}
13
11
  {%- if jekyll.environment == 'production' and site.google_analytics -%}
@@ -21,7 +21,7 @@
21
21
  {% if banner %}
22
22
 
23
23
  {% assign auto_banner = true %}
24
- {% assign array = banner | split: '//' %}
24
+ {% assign array = banner | split: '/' %}
25
25
  {% assign protocol = array[0] %}
26
26
 
27
27
  {% if array.size > 1 and (protocol == '' or protocol == 'http:' or protocol == 'https:') %}
@@ -57,9 +57,23 @@
57
57
  </section>
58
58
 
59
59
  {%- if auto_banner -%}
60
+
60
61
  {%- assign selector = ".page-banner-img" -%}
61
- {%- assign seed = page.id | append: '-seed-' | append: banner -%}
62
+
63
+ {%- if banner == "default" -%}
64
+
65
+ {%- assign heading = page.heading | default: page.title | escape -%}
66
+ {%- assign subheading = page.subheading | default: page.subtitle | escape -%}
67
+ {%- assign seed = page.date | append: heading | append: subheading -%}
68
+
69
+ {%- else -%}
70
+
71
+ {%- assign seed = 'theme-' | append: banner -%}
72
+
73
+ {%- endif -%}
74
+
62
75
  {%- include extensions/trianglify.html -%}
76
+
63
77
  {%- endif -%}
64
78
 
65
79
  {%- endif -%}
@@ -1,7 +1,4 @@
1
- <a class="site-title" rel="author" href="{{ "/" | relative_url }}">
2
- {%- if site.favicon -%}
3
- <img class="site-favicon" title="{{ site.title | escape }}" src="{{
4
- site.favicon }}">
5
- {%- endif -%}
1
+ <a class="site-brand-inner" rel="author" href="{{ "/" | relative_url }}">
2
+ <img class="site-favicon" title="{{ site.title | escape }}" src="{{ site.favicon }}" onerror="this.style.display='none'">
6
3
  {{ site.title | escape }}
7
4
  </a>
data/_sass/yat/_base.scss CHANGED
@@ -226,15 +226,6 @@ table {
226
226
  }
227
227
  }
228
228
 
229
- /**
230
- * Vertical center
231
- */
232
- %vertical-center {
233
- position: absolute;
234
- top: 50%;
235
- transform: translateY(-50%);
236
- }
237
-
238
229
  /**
239
230
  * Flex layout
240
231
  */
@@ -256,3 +247,33 @@ table {
256
247
  transform: scale(0.9999); /* <-- fix the sticky x overflow issue */
257
248
  top: $top;
258
249
  }
250
+
251
+ /**
252
+ * Vertical center
253
+ */
254
+ @mixin vertical-center($position) {
255
+ position: $position;
256
+ top: 50%;
257
+ transform: translateY(-50%);
258
+ }
259
+
260
+ /**
261
+ * Horizontal center
262
+ */
263
+ @mixin horizontal-center($position) {
264
+ position: $position;
265
+ left: 50%;
266
+ transform: translateX(-50%);
267
+ }
268
+
269
+ /**
270
+ * Center background image
271
+ */
272
+ @mixin center-image {
273
+ height: 100%;
274
+ max-width: 1000%;
275
+ background-size: cover;
276
+ background-position: center center;
277
+ overflow: hidden;
278
+ }
279
+
@@ -16,36 +16,30 @@
16
16
  }
17
17
 
18
18
  .site-brand {
19
- @extend %vertical-center;
20
-
21
- float: left;
22
- height: 100%;
23
- max-height: 100%;
19
+ @include vertical-center(absolute);
24
20
  margin-right: 50px;
25
21
 
26
- .site-favicon {
27
- margin-right: 10px;
28
- height: 65%;
29
- max-height: 65%;
30
- border-radius: 65%;
31
- box-shadow: 0 0 2px #080808d1;
32
- transition: 0.2s;
33
-
34
- &:hover {
35
- box-shadow: 0 0 5px #080808d1;
36
- }
37
- }
38
-
39
- .site-title {
22
+ .site-brand-inner {
40
23
  @include relative-font-size(1.125);
41
24
  font-weight: $base-font-weight;
42
- line-height: $header-height;
43
- text-shadow: 0 0 3px #080808d1;
25
+ filter: drop-shadow(0 0 2px #08080880);
26
+ text-shadow: 0 0 2px #080808d0;
44
27
  letter-spacing: -1px;
28
+ transition: drop-shadow 0.2s;
45
29
 
46
30
  &, &:visited {
47
31
  color: $header-text-color;
48
32
  }
33
+
34
+ &:hover {
35
+ filter: drop-shadow(0 0 3px #080808a0);
36
+ }
37
+
38
+ .site-favicon {
39
+ display: inline-block;
40
+ height: $header-height / 1.5;
41
+ margin-right: 5px;
42
+ }
49
43
  }
50
44
  }
51
45
 
@@ -157,7 +151,7 @@
157
151
  */
158
152
  .page-content {
159
153
  @extend %flex-1; /* <-- Keep footer on the bottom */
160
- padding: $spacing-unit 0;
154
+ padding: $spacing-unit * 1.5 0;
161
155
  }
162
156
 
163
157
  .page-heading {
@@ -280,19 +274,12 @@
280
274
 
281
275
  .page-banner-img {
282
276
  position: absolute;
277
+ width: 100%;
283
278
  height: 100%;
284
279
  overflow: hidden;
285
280
 
286
281
  & > *:first-child {
287
- position: relative;
288
- top: 50%;
289
- left: 50%;
290
- transform: translate(-50%, -50%);
291
- height: 100%;
292
- max-width: 1000%;
293
- background-size: cover;
294
- background-position: center center;
295
- overflow: hidden;
282
+ @include center-image;
296
283
  }
297
284
  }
298
285
 
@@ -301,9 +288,8 @@
301
288
  }
302
289
 
303
290
  .page-banner-inner {
304
- @extend %vertical-center;
291
+ @include vertical-center(relative);
305
292
 
306
- position: relative;
307
293
  color: $banner-text-color;
308
294
  padding: 10px 5px;
309
295
  text-shadow: 1px 1px 2px #333;
data/_sass/yat.scss CHANGED
@@ -31,7 +31,7 @@ $footer-height: $header-height * 1.05 !default;
31
31
  $footer-text-color: rgba(lighten(invert($theme-color), 30%), 50%) !default;
32
32
  $footer-background-color: darken($theme-color, 5%) !default;
33
33
 
34
- $banner-height: 350px !default;
34
+ $banner-height: 380px !default;
35
35
  $banner-text-color: lighten($white-color, 0%) !default;
36
36
  $banner-background: darken(#333, 5%) !default;
37
37
 
data/assets/main.scss CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  // Default theme colors
6
6
  $theme-colors: (
7
- spacegrey: #222222,
7
+ spacegrey: #353535,
8
8
  inkpurple: #543581,
9
9
  aquablue: #00aaa0,
10
10
  azureblue: #2863b1,
@@ -19,7 +19,7 @@ $theme-color: map-get($theme-colors, "spacegrey");
19
19
  @if map-has-key($theme-colors, $theme-name) {
20
20
  $theme-color: map-get($theme-colors, $theme-name);
21
21
  } @else if str-index($theme-name, "#") == 1 {
22
- $theme-color: {{ site.theme_color | default: '#222' }};
22
+ $theme-color: {{ site.theme_color | default: '#353535' }};
23
23
  }
24
24
 
25
25
  @import "yat";
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-yat
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - jeffreytse
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-14 00:00:00.000000000 Z
11
+ date: 2019-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -80,6 +80,20 @@ dependencies:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '2.1'
83
+ - !ruby/object:Gem::Dependency
84
+ name: jekyll-sitemap
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '1.3'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '1.3'
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: jekyll-paginate
85
99
  requirement: !ruby/object:Gem::Requirement
@@ -156,7 +170,8 @@ files:
156
170
  homepage: https://github.com/jeffreytse/jekyll-theme-yat
157
171
  licenses:
158
172
  - MIT
159
- metadata: {}
173
+ metadata:
174
+ plugin_type: theme
160
175
  post_install_message:
161
176
  rdoc_options: []
162
177
  require_paths: