jekyll-theme-iamlynnmckay 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/{LICENSE.txt → LICENSE} +5 -5
  3. data/README.md +1 -8
  4. data/_config.yml +74 -78
  5. data/_includes/404-template.html +18 -0
  6. data/_includes/about-template.html +1 -0
  7. data/_includes/bib-template.html +1 -0
  8. data/_includes/blog-template.html +11 -0
  9. data/_includes/contact-template.html +3 -0
  10. data/_includes/css.html +2 -0
  11. data/_includes/default-template.html +17 -0
  12. data/_includes/disqus-comments.html +0 -2
  13. data/_includes/footer.html +27 -112
  14. data/_includes/google-analytics.html +10 -12
  15. data/_includes/head.html +9 -6
  16. data/_includes/header.html +25 -24
  17. data/_includes/home-template.html +23 -0
  18. data/_includes/js.html +1 -0
  19. data/_includes/list-of-homepage-links.html +8 -0
  20. data/_includes/page-template.html +8 -0
  21. data/_includes/post-categories.html +5 -0
  22. data/_includes/post-date.html +5 -0
  23. data/_includes/post-item-proxy.html +1 -0
  24. data/_includes/post-item.html +6 -0
  25. data/_includes/post-meta.html +12 -0
  26. data/_includes/post-tags.html +6 -0
  27. data/_includes/post-template.html +16 -0
  28. data/_includes/posts-by-category.html +1 -0
  29. data/_includes/posts-by-date-top-three.html +2 -0
  30. data/_includes/posts-by-date.html +1 -0
  31. data/_includes/posts-by-tag.html +1 -0
  32. data/_includes/posts-list-nested.html +14 -0
  33. data/_includes/posts-list.html +8 -0
  34. data/_includes/social.html +73 -0
  35. data/_layouts/404.html +5 -0
  36. data/_layouts/bib.html +1 -1
  37. data/_layouts/default.html +1 -15
  38. data/_layouts/home.html +1 -57
  39. data/_layouts/page.html +5 -0
  40. data/_layouts/post.html +1 -43
  41. data/_sass/_minima-custom.scss +699 -0
  42. data/_sass/iamlynnmckay.scss +282 -0
  43. data/assets/css/main.scss +4 -0
  44. data/assets/js/bouncing-ball-in-canvas-element.js +41 -0
  45. data/assets/js/main.js +13 -0
  46. data/assets/js/random-color-for-font-awesome-icons.js +5 -0
  47. metadata +52 -51
  48. data/_includes/scripts.html +0 -73
  49. data/_includes/tailwind.config.js +0 -12
  50. data/_layouts/about.html +0 -7
  51. data/_layouts/posts.html +0 -36
  52. data/_sass/syntax-highlighting.scss +0 -71
  53. data/assets/_files/.gitignore +0 -14
  54. data/assets/_files/_bibliography/references.bib +0 -13
  55. data/assets/_files/_config.yml +0 -78
  56. data/assets/_files/_includes/tailwind.config.js +0 -12
  57. data/assets/_files/about.html +0 -6
  58. data/assets/_files/index.html +0 -3
  59. data/assets/_files/package.json +0 -10
  60. data/assets/_files/postcss.config.js +0 -21
  61. data/assets/_files/posts.html +0 -4
  62. data/assets/_scripts/build.sh +0 -34
  63. data/assets/_scripts/run.sh +0 -7
  64. data/assets/images/logo.svg +0 -1
  65. data/assets/main.scss +0 -204
@@ -0,0 +1,282 @@
1
+ //$base-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
2
+ $base-font-family: monospace;
3
+ $base-font-size: 14px;
4
+ $base-font-weight: 400;
5
+ $small-font-size: $base-font-size * 0.875;
6
+ $base-line-height: 1.5;
7
+
8
+ $spacing-unit: 30px;
9
+
10
+ $text-color: rgb(255, 255, 255);
11
+ $background-color: #1d1d1d;
12
+ $brand-color: #f171ab;
13
+
14
+ $grey-color: #828282;
15
+ $grey-color-light: lighten($grey-color, 40%);
16
+ $grey-color-dark: darken($grey-color, 25%);
17
+
18
+ $border-color: $text-color;
19
+
20
+ $table-text-align: left;
21
+
22
+ $content-width: 800px;
23
+
24
+ $on-palm: 600px;
25
+ $on-laptop: 800px;
26
+
27
+ $code-background-color: lighten($background-color, 5%);
28
+
29
+ @import "minima-custom";
30
+
31
+ hr {
32
+ margin-bottom: 1em;
33
+ }
34
+
35
+ body > header > div > a {
36
+ color: $brand-color
37
+ }
38
+
39
+ .site-footer {
40
+ padding: $spacing-unit / 2;
41
+ }
42
+
43
+ .footer-col {
44
+ margin-bottom: - ($spacing-unit / 2);
45
+ }
46
+
47
+ .footer-col > ul {
48
+ list-style: none;
49
+ margin-left: 0;
50
+ }
51
+
52
+ .x-social-media-list li {
53
+ display: inline;
54
+ }
55
+
56
+ .x-social-media-list a {
57
+ color: $grey-color !important;
58
+ }
59
+
60
+ .x-social-media-list a:hover {
61
+ color: $grey-color-light !important;
62
+ }
63
+
64
+ .x-sitemap-link {
65
+ margin-left: 30px;
66
+ }
67
+
68
+ .x-post-meta > span {
69
+ font-size: $small-font-size;
70
+ color: $grey-color !important;
71
+ }
72
+
73
+ .x-post-meta a {
74
+ color: $grey-color !important;
75
+ }
76
+
77
+ .x-post-meta a:hover {
78
+ color: $grey-color-light !important;
79
+ }
80
+
81
+ .x-post-link > span {
82
+ display: block;
83
+ @include relative-font-size(1.5);
84
+ }
85
+
86
+ .x-post-list {
87
+ margin-left: 0;
88
+ list-style: none;
89
+
90
+ li {
91
+ margin-top: $spacing-unit / 2;
92
+ margin-bottom: $spacing-unit / 2;
93
+ }
94
+
95
+ }
96
+
97
+ .x-posts-by-date > li {
98
+ margin-left: 1em;
99
+ }
100
+ .x-page-list {
101
+ padding-bottom: 50px;
102
+ }
103
+
104
+ // custom
105
+
106
+ .x-coming-soon {
107
+ margin: 50px;
108
+ }
109
+
110
+ ul.list-style-none {
111
+ list-style: none; /* Remove bullets */
112
+ }
113
+
114
+ .margin-left-0 {
115
+ margin-left: 0;
116
+ }
117
+
118
+ .x-text-align-center {
119
+ text-align: center;
120
+ }
121
+
122
+ .x-font-size-4x-base {
123
+ font-size: 4 * $base-font-size;
124
+ }
125
+
126
+ .contact-template > form > input.input-text {
127
+ width: $content-width;
128
+ height: $content-width / 2;
129
+ background-color: $background-color;
130
+ }
131
+
132
+
133
+ .x-home-template-image {
134
+ background-image: url("/assets/pages/home/header-image.jpg"); /* The image used - important! */
135
+ background-size: cover;
136
+ position: relative; /* Needed to position the cutout text in the middle of the image */
137
+ height: 300px; /* Some height */
138
+ }
139
+
140
+ .x-home-template-description {
141
+ background-color: white;
142
+ color: black;
143
+ font-size: $base-font-size * 2; /* Responsive font size */
144
+ font-weight: bold;
145
+ margin: 0 auto; /* Center the text container */
146
+ padding: 10px;
147
+ width: 50%;
148
+ text-align: center; /* Center text */
149
+ position: absolute; /* Position text */
150
+ top: 50%; /* Position text in the middle */
151
+ left: 50%; /* Position text in the middle */
152
+ transform: translate(-50%, -50%); /* Position text in the middle */
153
+ mix-blend-mode: screen; /* This makes the cutout text possible */
154
+ }
155
+
156
+ .x-home-template-pages {
157
+ a {
158
+
159
+ font-size: $base-font-size * 1.5;
160
+ }
161
+ ul {
162
+ list-style: none;
163
+ margin-left: 50px;
164
+ margin-bottom: 50px;
165
+ }
166
+ ul:first-child {
167
+ margin-top: 50px;
168
+ margin-bottom: 0;
169
+ }
170
+ }
171
+
172
+ .x-home-template-posts {
173
+ margin: 50px;
174
+
175
+ }
176
+
177
+ .x-home-template-canvas > canvas {
178
+ padding-left: 0;
179
+ padding-right: 0;
180
+ margin-left: auto;
181
+ margin-right: auto;
182
+ margin-top: 50px;
183
+ margin-bottom: 50px;
184
+ display: block;
185
+ width: $content-width - ($content-width / 3);
186
+ height: $content-width / 8;
187
+ }
188
+
189
+ .x-nav-links > li {
190
+ display: inline;
191
+ }
192
+
193
+
194
+
195
+ .site-nav {
196
+ position: absolute;
197
+ top: 9px;
198
+ padding-top: 0;
199
+ right: $spacing-unit / 2;
200
+ background-color: $background-color;
201
+ text-align: right;
202
+ z-index: 2;
203
+ .nav-trigger {
204
+ display: none;
205
+ }
206
+
207
+ .menu-icon {
208
+ float: right;
209
+ width: 36px;
210
+ height: 26px;
211
+ line-height: 0;
212
+ padding-top: 10px;
213
+ text-align: center;
214
+ > svg path {
215
+ fill: $border-color;
216
+ }
217
+ }
218
+
219
+ label[for="nav-trigger"] {
220
+ display: block;
221
+ float: right;
222
+ width: 36px;
223
+ height: 36px;
224
+ z-index: 2;
225
+ cursor: pointer;
226
+ }
227
+
228
+ input ~ .trigger {
229
+ clear: both;
230
+ display: none;
231
+ }
232
+
233
+ input:checked ~ .trigger {
234
+ display: block;
235
+ padding-bottom: 5px;
236
+ }
237
+
238
+ .page-link {
239
+ color: $text-color;
240
+ line-height: $base-line-height;
241
+ display: block;
242
+ padding: 5px 10px;
243
+ // Gaps between nav items, but not on the last one
244
+ &:not(:last-child) {
245
+ margin-right: 0;
246
+ }
247
+ margin-left: 20px;
248
+ }
249
+
250
+ @media screen and (min-width: $on-palm) {
251
+ position: static;
252
+ float: right;
253
+ border: none;
254
+ background-color: inherit;
255
+ padding-top: 16px;
256
+
257
+ label[for="nav-trigger"] {
258
+ display: none;
259
+ }
260
+
261
+
262
+
263
+ .menu-icon {
264
+ display: none;
265
+ }
266
+
267
+ input ~ .trigger {
268
+ display: block;
269
+ }
270
+
271
+ .page-link {
272
+ display: inline;
273
+ padding: 0;
274
+
275
+ &:not(:last-child) {
276
+ margin-right: 20px;
277
+ }
278
+ margin-left: auto;
279
+ }
280
+ }
281
+ }
282
+
@@ -0,0 +1,4 @@
1
+ ---
2
+ ---
3
+
4
+ @import "iamlynnmckay"
@@ -0,0 +1,41 @@
1
+ (() => {
2
+ var canvas = document.getElementById('canvas');
3
+ var ctx = canvas.getContext('2d');
4
+ var raf;
5
+
6
+ var ball = {
7
+ x: 1,
8
+ y: 0,
9
+ vx: 3,
10
+ vy: 2,
11
+ radius: 5,
12
+ color: 'white',
13
+ draw: function () {
14
+ ctx.beginPath();
15
+ ctx.arc(this.x, this.y, this.radius, 0, Math.PI * 2, true);
16
+ ctx.closePath();
17
+ ctx.fillStyle = this.color;
18
+ ctx.fill();
19
+ }
20
+ };
21
+
22
+
23
+ function draw() {
24
+ ctx.clearRect(0, 0, canvas.width, canvas.height);
25
+ ball.draw();
26
+ ball.x += ball.vx;
27
+ ball.y += ball.vy;
28
+ if (ball.y + ball.vy > canvas.height || ball.y + ball.vy < 0) {
29
+ ball.color = randomColor();
30
+ ball.vy = -ball.vy;
31
+ }
32
+ if (ball.x + ball.vx > canvas.width || ball.x + ball.vx < 0) {
33
+ ball.color = randomColor();
34
+ ball.vx = -ball.vx;
35
+ }
36
+ raf = window.requestAnimationFrame(draw);
37
+ }
38
+
39
+ raf = window.requestAnimationFrame(draw);
40
+
41
+ })();
data/assets/js/main.js ADDED
@@ -0,0 +1,13 @@
1
+ function randomColor() {
2
+ return '#' + Math.floor(Math.random() * 16777215).toString(16);
3
+ }
4
+
5
+ function sleep(time) {
6
+ return new Promise((resolve) => setTimeout(resolve, time));
7
+ }
8
+
9
+ window.onload = () => {
10
+ (() => {
11
+ console.log("@iamlynnmckay");
12
+ })();
13
+ }
@@ -0,0 +1,5 @@
1
+ (() => {
2
+ document.querySelectorAll("i.fa, i.fas, i.fab").forEach((elem) => {
3
+ elem.style.color = randomColor();
4
+ });
5
+ })();
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-iamlynnmckay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lynn McKay
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-06 00:00:00.000000000 Z
11
+ date: 2022-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: jekyll
14
+ name: github-pages
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '4.2'
19
+ version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '4.2'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: jekyll-feed
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -38,20 +38,6 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0.9'
41
- - !ruby/object:Gem::Dependency
42
- name: jekyll-postcss
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: jekyll-seo-tag
57
43
  requirement: !ruby/object:Gem::Requirement
@@ -81,19 +67,19 @@ dependencies:
81
67
  - !ruby/object:Gem::Version
82
68
  version: '0'
83
69
  - !ruby/object:Gem::Dependency
84
- name: jekyll-scholar
70
+ name: webrick
85
71
  requirement: !ruby/object:Gem::Requirement
86
72
  requirements:
87
- - - ">="
73
+ - - "~>"
88
74
  - !ruby/object:Gem::Version
89
- version: '0'
75
+ version: '1.7'
90
76
  type: :runtime
91
77
  prerelease: false
92
78
  version_requirements: !ruby/object:Gem::Requirement
93
79
  requirements:
94
- - - ">="
80
+ - - "~>"
95
81
  - !ruby/object:Gem::Version
96
- version: '0'
82
+ version: '1.7'
97
83
  - !ruby/object:Gem::Dependency
98
84
  name: bundler
99
85
  requirement: !ruby/object:Gem::Requirement
@@ -108,48 +94,63 @@ dependencies:
108
94
  - - ">="
109
95
  - !ruby/object:Gem::Version
110
96
  version: '0'
111
- description:
97
+ description:
112
98
  email:
113
99
  - iamlynnmckay@gmail.com
114
100
  executables: []
115
101
  extensions: []
116
102
  extra_rdoc_files: []
117
103
  files:
118
- - LICENSE.txt
104
+ - LICENSE
119
105
  - README.md
120
106
  - _config.yml
107
+ - _includes/404-template.html
108
+ - _includes/about-template.html
109
+ - _includes/bib-template.html
110
+ - _includes/blog-template.html
111
+ - _includes/contact-template.html
112
+ - _includes/css.html
113
+ - _includes/default-template.html
121
114
  - _includes/disqus-comments.html
122
115
  - _includes/footer.html
123
116
  - _includes/google-analytics.html
124
117
  - _includes/head.html
125
118
  - _includes/header.html
126
- - _includes/scripts.html
127
- - _includes/tailwind.config.js
128
- - _layouts/about.html
119
+ - _includes/home-template.html
120
+ - _includes/js.html
121
+ - _includes/list-of-homepage-links.html
122
+ - _includes/page-template.html
123
+ - _includes/post-categories.html
124
+ - _includes/post-date.html
125
+ - _includes/post-item-proxy.html
126
+ - _includes/post-item.html
127
+ - _includes/post-meta.html
128
+ - _includes/post-tags.html
129
+ - _includes/post-template.html
130
+ - _includes/posts-by-category.html
131
+ - _includes/posts-by-date-top-three.html
132
+ - _includes/posts-by-date.html
133
+ - _includes/posts-by-tag.html
134
+ - _includes/posts-list-nested.html
135
+ - _includes/posts-list.html
136
+ - _includes/social.html
137
+ - _layouts/404.html
129
138
  - _layouts/bib.html
130
139
  - _layouts/default.html
131
140
  - _layouts/home.html
141
+ - _layouts/page.html
132
142
  - _layouts/post.html
133
- - _layouts/posts.html
134
- - _sass/syntax-highlighting.scss
135
- - assets/_files/.gitignore
136
- - assets/_files/_bibliography/references.bib
137
- - assets/_files/_config.yml
138
- - assets/_files/_includes/tailwind.config.js
139
- - assets/_files/about.html
140
- - assets/_files/index.html
141
- - assets/_files/package.json
142
- - assets/_files/postcss.config.js
143
- - assets/_files/posts.html
144
- - assets/_scripts/build.sh
145
- - assets/_scripts/run.sh
146
- - assets/images/logo.svg
147
- - assets/main.scss
143
+ - _sass/_minima-custom.scss
144
+ - _sass/iamlynnmckay.scss
145
+ - assets/css/main.scss
146
+ - assets/js/bouncing-ball-in-canvas-element.js
147
+ - assets/js/main.js
148
+ - assets/js/random-color-for-font-awesome-icons.js
148
149
  homepage: https://github.com/iamlynnmckay/jekyll-theme-iamlynnmckay
149
150
  licenses:
150
151
  - MIT
151
152
  metadata: {}
152
- post_install_message:
153
+ post_install_message:
153
154
  rdoc_options: []
154
155
  require_paths:
155
156
  - lib
@@ -164,8 +165,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
164
165
  - !ruby/object:Gem::Version
165
166
  version: '0'
166
167
  requirements: []
167
- rubygems_version: 3.0.3
168
- signing_key:
168
+ rubygems_version: 3.3.11
169
+ signing_key:
169
170
  specification_version: 4
170
- summary: Jekyll theme for iamlynmckay.com.
171
+ summary: "..."
171
172
  test_files: []
@@ -1,73 +0,0 @@
1
- <script>
2
- window.onload = () => {
3
-
4
- function randomColor() {
5
- return '#' + Math.floor(Math.random() * 16777215).toString(16);
6
- }
7
-
8
- function sleep(time) {
9
- return new Promise((resolve) => setTimeout(resolve, time));
10
- }
11
-
12
- (() => {
13
-
14
- document.querySelectorAll("i.fa, i.fas, i.fab").forEach((elem) => {
15
- //sleep(500).then(() => {
16
- // Do something after the sleep!
17
- elem.style.color = randomColor();
18
- //});
19
- });
20
- })();
21
-
22
- (() => {
23
- var canvas = document.getElementById('canvas');
24
- var ctx = canvas.getContext('2d');
25
- var raf;
26
-
27
- var ball = {
28
- x: 1,
29
- y: 0,
30
- vx: 3,
31
- vy: 2,
32
- radius: 5,
33
- color: 'white',
34
- draw: function () {
35
- ctx.beginPath();
36
- ctx.arc(this.x, this.y, this.radius, 0, Math.PI * 2, true);
37
- ctx.closePath();
38
- ctx.fillStyle = this.color;
39
- ctx.fill();
40
- }
41
- };
42
-
43
-
44
- function draw() {
45
- ctx.clearRect(0, 0, canvas.width, canvas.height);
46
- ball.draw();
47
- ball.x += ball.vx;
48
- ball.y += ball.vy;
49
- if (ball.y + ball.vy > canvas.height || ball.y + ball.vy < 0) {
50
- ball.color = randomColor();
51
- ball.vy = -ball.vy;
52
- }
53
- if (ball.x + ball.vx > canvas.width || ball.x + ball.vx < 0) {
54
- ball.color = randomColor();
55
- ball.vx = -ball.vx;
56
- }
57
- raf = window.requestAnimationFrame(draw);
58
- }
59
-
60
- raf = window.requestAnimationFrame(draw);
61
- /*
62
- canvas.addEventListener('mouseover', function(e) {
63
- raf = window.requestAnimationFrame(draw);
64
- });
65
-
66
- canvas.addEventListener('mouseout', function(e) {
67
- window.cancelAnimationFrame(raf);
68
- });
69
- */
70
- })();
71
-
72
- };
73
- </script>
@@ -1,12 +0,0 @@
1
- module.exports = {
2
- future: {
3
- // removeDeprecatedGapUtilities: true,
4
- // purgeLayersByDefault: true,
5
- },
6
- purge: [],
7
- theme: {
8
- extend: {},
9
- },
10
- variants: {},
11
- plugins: [],
12
- }
data/_layouts/about.html DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- layout: default
3
- ---
4
-
5
- <h1>About</h1>
6
-
7
- {{ content }}
data/_layouts/posts.html DELETED
@@ -1,36 +0,0 @@
1
- ---
2
- layout: default
3
- ---
4
-
5
- <h1>Posts</h1>
6
- <ul class="grid grid-cols-1">
7
- {% for category in site.categories %}
8
- <li class="x-fa">
9
- {% capture category_key %}{{ category | first }}{% endcapture %}
10
- <div id="{{ category_key }}">
11
- <i class="fa fa-angle-double-right"></i>
12
- <a class="text-category" href="#{{ category_key }}">{{ category_key }}</a>
13
- </div>
14
- <ul class="grid grid-cols-1">
15
- {% for post in site.categories[category_key] %}
16
- <li class="x-fa">
17
- <span class="text-title">
18
- <i class="fa fa-angle-right"></i>
19
- <a href="{{ post.url }}"> {{ post.title | escape }}</a>
20
- </span>
21
- <div class="grid grid-cols-2">
22
- <span class="text-tag">
23
- {% for tag in post.tags %}
24
- <a href="#">#{{ tag }}</a>
25
- {% endfor %}
26
- </span>
27
- <time class="text-right" datetime="{{ post.date | date_to_xmlschema }}">
28
- {{ post.date | date: "%b %-d, %Y" }}
29
- </time>
30
- </div>
31
- </li>
32
- {% endfor %}
33
- </ul>
34
- </li>
35
- {% endfor %}
36
- </ul>