jekyll-wren 0.4

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.
Files changed (65) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.md +9 -0
  3. data/README.md +177 -0
  4. data/_includes/custom-foot.html +4 -0
  5. data/_includes/custom-head.html +13 -0
  6. data/_includes/custom-meta.html +5 -0
  7. data/_includes/footer.html +23 -0
  8. data/_includes/head.html +21 -0
  9. data/_includes/meta.html +82 -0
  10. data/_includes/navigation.html +70 -0
  11. data/_includes/reading-time.html +41 -0
  12. data/_includes/social-list.html +46 -0
  13. data/_includes/video-player.html +66 -0
  14. data/_layouts/author-list.html +73 -0
  15. data/_layouts/default.html +16 -0
  16. data/_layouts/error.html +9 -0
  17. data/_layouts/page.html +14 -0
  18. data/_layouts/post-list.html +67 -0
  19. data/_layouts/post.html +16 -0
  20. data/_layouts/tag-list.html +54 -0
  21. data/_sass/wren/content.scss +345 -0
  22. data/_sass/wren/initialize.scss +118 -0
  23. data/_sass/wren/layout.scss +295 -0
  24. data/assets/apple-touch-icon.png +0 -0
  25. data/assets/flav.svg +4 -0
  26. data/assets/nav-icons/about.svg +3 -0
  27. data/assets/nav-icons/blog.svg +3 -0
  28. data/assets/nav-icons/comments.svg +3 -0
  29. data/assets/nav-icons/default.svg +3 -0
  30. data/assets/nav-icons/home.svg +4 -0
  31. data/assets/nav-icons/rss.svg +3 -0
  32. data/assets/nav-icons/top.svg +3 -0
  33. data/assets/nav-icons/work.svg +5 -0
  34. data/assets/social-icons/Blogger.svg +3 -0
  35. data/assets/social-icons/DEV.svg +3 -0
  36. data/assets/social-icons/Default.svg +3 -0
  37. data/assets/social-icons/Dribbble.svg +3 -0
  38. data/assets/social-icons/Facebook.svg +3 -0
  39. data/assets/social-icons/Flickr.svg +3 -0
  40. data/assets/social-icons/Ghost.svg +3 -0
  41. data/assets/social-icons/GitHub.svg +3 -0
  42. data/assets/social-icons/GitLab.svg +3 -0
  43. data/assets/social-icons/Instagram.svg +5 -0
  44. data/assets/social-icons/Keybase.svg +6 -0
  45. data/assets/social-icons/LinkedIn.svg +3 -0
  46. data/assets/social-icons/Mastodon.svg +3 -0
  47. data/assets/social-icons/Medium.svg +5 -0
  48. data/assets/social-icons/Micro.blog.svg +3 -0
  49. data/assets/social-icons/Pinterest.svg +3 -0
  50. data/assets/social-icons/Reddit.svg +3 -0
  51. data/assets/social-icons/StackOverflow.svg +3 -0
  52. data/assets/social-icons/Telegram.svg +3 -0
  53. data/assets/social-icons/Tumblr.svg +3 -0
  54. data/assets/social-icons/Twitter.svg +3 -0
  55. data/assets/social-icons/Wordpress.svg +4 -0
  56. data/assets/social-icons/YouTube.svg +3 -0
  57. data/assets/style.scss +14 -0
  58. data/errors/400.md +9 -0
  59. data/errors/403.md +9 -0
  60. data/errors/404.md +9 -0
  61. data/errors/418.md +12 -0
  62. data/errors/500.md +9 -0
  63. data/images/profile-hq.jpg +0 -0
  64. data/images/profile.jpg +0 -0
  65. metadata +183 -0
@@ -0,0 +1,118 @@
1
+ @charset "utf-8";
2
+
3
+ // This file is the hub from which the rest of the SASS is
4
+ // controlled. It defines all of the variables used in the
5
+ // other files (and which can be redefined by the users in
6
+ // `style.scss`), defines mixin shortcuts, and imports the
7
+ // other SASS files in the theme.
8
+
9
+
10
+ // Default Variables
11
+ // =================
12
+
13
+ // General content font related default values
14
+ $base-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Segoe UI Symbol", "Segoe UI Emoji", "Apple Color Emoji", Helvetica, Roboto, Arial, sans-serif !default;
15
+ $base-font-size: 16px !default;
16
+ $base-font-weight: 400 !default;
17
+ $small-font-size: $base-font-size * 0.875 !default;
18
+ $base-line-height: 1.5 !default;
19
+ // Extra font tweaks for headers
20
+ $base-header-weight: 600 !default;
21
+ $base-h1-alignment: center;
22
+
23
+ // Spacing related default values
24
+ $spacing-unit: 30px !default;
25
+ $table-text-align: left !default;
26
+ $content-width: 800px !default;
27
+ $nav-bar-height: 48px !default; // BUG SVGs themselves don't resize
28
+
29
+ // Border radius for page content, code blocks, and tables
30
+ $base-border-radius: 12px !default ;
31
+
32
+ // Theme color default variables
33
+ $brand-color: #828282 !default;
34
+ $brand-color-light: lighten($brand-color, 40%) !default;
35
+ $brand-color-dark: darken($brand-color, 25%) !default;
36
+ $text-color: #3d3d3d !default;
37
+ $background-color: #9b9da3 !default;
38
+ $page-color: #fdfdfd !default;
39
+ $nav-color: $page-color !default;
40
+ $border-color: $brand-color-light !default;
41
+
42
+ // Shadows for elements and icons
43
+ $base-shadow: 0 0.25em 0.25em rgba(0, 0, 0, 0.1) !default;
44
+ $base-drop-shadow: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2)) !default;
45
+
46
+ // Colors for link formatting
47
+ $link-base-color: #2a7ae2 !default;
48
+ $link-visited-color: darken($link-base-color, 15%) !default;
49
+ $link-hover-color: $text-color !default;
50
+
51
+ // Colors for table formatting
52
+ $table-text-color: lighten($text-color, 18%) !default;
53
+ $table-zebra-color: lighten($brand-color, 46%) !default;
54
+ $table-header-bg-color: lighten($brand-color, 43%) !default;
55
+ $table-header-border: lighten($brand-color, 37%) !default;
56
+ $table-border-color: $border-color !default;
57
+
58
+ // Fonts and colors for code blocks and syntax highlighting
59
+ $code-font-family: "Menlo", "Inconsolata", "Consolas", "Roboto Mono", "Ubuntu Mono", "Liberation Mono", "Courier New", monospace;
60
+ $code-background-color: #eeeeff !default; // background color for blocks and inline code
61
+ // Variables relating to snippets which change font color
62
+ $syntax-comment-color: #998 !default; // comments in all their forms
63
+ $syntax-string-color: #d14 !default; // literal strings, exc. regex & symbols
64
+ $syntax-number-color: #099 !default; // all the numbers
65
+ $syntax-variable-color: #008080 !default; // variables, constants, etc
66
+ $syntax-error-color: #a61717 !default; // various errors and exceptions
67
+ $syntax-function-color: #900 !default; // functions (prev. included exceptions)
68
+ // Variables relating to snippets which change background and font colors
69
+ $syntax-ins-del-color: #000 !default; // font for insertions and deletions
70
+ $syntax-ins-background: #afa !default; // background color for insertions
71
+ $syntax-del-background: #faa !default; // background color for deletions
72
+ $syntax-err-background: #e3d2d2 !default; // background for errors
73
+ // Variables which are only used once for fairly niche snippets
74
+ $syntax-builtin-color: #0086B3 !default; // builtins
75
+ $syntax-entity-color: #800080 !default; // entities
76
+ $syntax-tag-color: #000080 !default; // tags
77
+ $syntax-symbol-color: #990073 !default; // string.symbols
78
+ $syntax-regex-color: #009926 !default; // string.regex
79
+ $syntax-whitespace-color: #bbb !default; // text.whitespace
80
+ $syntax-output-color: #888 !default; // generic output
81
+ $syntax-subhead-color: #aaa !default; // subheadings
82
+ // Variables which are used for two distinct snippets
83
+ $syntax-class-color: #458 !default; // classes and keywords
84
+ $syntax-prompt-color: #555 !default; // prompt and namespace
85
+
86
+ // Size at which to switch to large screen interface
87
+ $large-width: 800px !default;
88
+
89
+
90
+ // SASS Mixins
91
+ // ===========
92
+
93
+ @mixin media-query($device) {
94
+ // Use @content SASS only if displaying a screen
95
+ // with a width of at least $device pixels.
96
+ @media screen and (min-width: $device) {
97
+ @content;
98
+ }
99
+ }
100
+
101
+ @mixin if-large {
102
+ // Query Wren uses to switch to the large screen interface
103
+ @include media-query($large-width) { @content; }
104
+ }
105
+
106
+ @mixin relative-font-size($ratio) {
107
+ // Scale the font by $ratio
108
+ font-size: #{$ratio}rem;
109
+ }
110
+
111
+
112
+ // SASS Imports
113
+ // ============
114
+
115
+ @import
116
+ "wren/content", // Styling for the base html content
117
+ "wren/layout" // Sets the layout of the website
118
+ ;
@@ -0,0 +1,295 @@
1
+ // The layout file, as the name suggests, controls the structure of the
2
+ // website pages themselves. It starts with the header which is used as
3
+ // a container for the navigation tools, then the footer, and finally
4
+ // the main content itself working inwards and downwards through its
5
+ // components: .page-content to paginator controls.
6
+
7
+
8
+ // Header
9
+ // ======
10
+
11
+ .site-header {
12
+ // Most the styles that were here were for .site-nav
13
+ display: inline-block;
14
+ }
15
+
16
+ .site-nav {
17
+ // Horizontal navigation bar on small screens
18
+ position: fixed; // don't want navigation icons moving
19
+ width: 100%;
20
+ height: $nav-bar-height;
21
+ border-bottom: 1px solid $border-color;
22
+ background-color: $nav-color;
23
+ display: block;
24
+ box-shadow: $base-shadow;
25
+ @extend %clearfix;
26
+
27
+ // Buttons on the nav bar
28
+ .page-link {
29
+ svg {
30
+ padding: $nav-bar-height/4;
31
+ width: $nav-bar-height/2;
32
+ height: $nav-bar-height/2;
33
+ fill: $brand-color-dark;
34
+ filter: $base-drop-shadow;
35
+ }
36
+ margin: auto;
37
+ display: inline-block;
38
+ text-decoration: none;
39
+ width: $nav-bar-height;
40
+ height: $nav-bar-height;
41
+ }
42
+ // make it obvious which button is inspected
43
+ .page-link:hover, .page-link:active {
44
+ svg { fill: lighten($brand-color-dark, 5%) }
45
+ background-color: darken($nav-color, 10%);
46
+ border-bottom: 1px solid darken($border-color, 10%);
47
+ }
48
+
49
+ // Vertical nav buttons on large screen
50
+ @include if-large {
51
+ background-color: transparent;
52
+ border-bottom: 0;
53
+ margin-left: $spacing-unit;
54
+ width: $nav-bar-height;
55
+ box-shadow: none;
56
+ align-items: right;
57
+ float: right;
58
+ margin-top: 30px;
59
+
60
+ .page-link {
61
+ display: block;
62
+ margin-left: auto;
63
+ }
64
+
65
+ .page-link:hover, .page-link:active {
66
+ svg { fill: lighten($brand-color-dark, 10%) }
67
+ background-color: transparent;
68
+ border-bottom: 0;
69
+ }
70
+ }
71
+ }
72
+
73
+
74
+ // Site footer
75
+ // ===========
76
+
77
+ .site-footer {
78
+ padding: 2*$spacing-unit $spacing-unit $spacing-unit;
79
+ @include relative-font-size(0.6);
80
+ color: $text-color;
81
+ text-align: center;
82
+ margin-top: auto;
83
+
84
+ a {
85
+ // Means there's no distinction for footer links
86
+ color: $link-visited-color;
87
+ }
88
+ }
89
+
90
+ .social-list {
91
+ display: table;
92
+ margin: $spacing-unit/2 auto 0 auto;
93
+ a {
94
+ text-decoration: none;
95
+ padding: $spacing-unit / 4;
96
+
97
+ svg {
98
+ fill: $text-color;
99
+ filter: $base-drop-shadow;
100
+ width: 16px;
101
+ height: 16px;
102
+ }
103
+
104
+ svg:hover, svg:active {
105
+ fill: lighten($brand-color-dark, 10%)
106
+ }
107
+ }
108
+ }
109
+
110
+
111
+ // Page content
112
+ // ============
113
+
114
+ .page-content {
115
+ // set size
116
+ width: $content-width;
117
+ max-width: 70%;
118
+ display: inline-block; // NOTE Minima set this in default.html
119
+ // make it pretty
120
+ background-color: $page-color;
121
+ border-radius: $base-border-radius;
122
+ box-shadow: $base-shadow;
123
+ // external margins
124
+ margin: $spacing-unit+1.5*$nav-bar-height auto auto;
125
+ // internal padding
126
+ padding: $spacing-unit $spacing-unit 0 $spacing-unit;
127
+ // TODO find out what this does
128
+ @extend %clearfix;
129
+ // remove extra space for navigation bar if not on mobile
130
+ @include if-large {
131
+ margin-top: $spacing-unit;
132
+ }
133
+ }
134
+
135
+ .page-heading {
136
+ @include relative-font-size(2);
137
+ }
138
+
139
+ .post-meta {
140
+ font-size: $small-font-size;
141
+ color: $brand-color;
142
+
143
+ a {
144
+ color: $brand-color;
145
+ text-decoration: none;
146
+ }
147
+ a:hover, a:active {
148
+ text-decoration: underline dotted;
149
+ }
150
+
151
+ svg {
152
+ fill: $brand-color;
153
+ width: 16px;
154
+ height: 16px;
155
+ }
156
+ }
157
+
158
+ .post-link {
159
+ display: block;
160
+ @include relative-font-size(1.1);
161
+ }
162
+
163
+
164
+ // Post Lists
165
+ // =========
166
+
167
+ .post-list-page {
168
+ // post lists pages have a special header class
169
+ .post-list-header {
170
+ // they have slightly smaller font
171
+ @include relative-font-size(1.5);
172
+
173
+ // they need less space
174
+ margin-top: $spacing-unit * 1.5;
175
+ margin-bottom: $spacing-unit / 2;
176
+
177
+ // we wanted to hide their anchor links...
178
+ a {
179
+ color: $text-color;
180
+ text-decoration: none;
181
+ }
182
+ // ...unless they're being inspected
183
+ a:hover, a:active {
184
+ text-decoration: underline dotted;
185
+ }
186
+ }
187
+
188
+ .post-list {
189
+ margin-left: 0;
190
+ list-style: none;
191
+
192
+ > li {
193
+ margin-bottom: $spacing-unit;
194
+ }
195
+ }
196
+ }
197
+
198
+ .tag-cloud {
199
+ text-align: center;
200
+ margin-top: -$spacing-unit/2;
201
+ margin-bottom: $spacing-unit/2;
202
+ }
203
+
204
+
205
+ // Posts
206
+ // =====
207
+
208
+ .post-header {
209
+ margin-bottom: $spacing-unit;
210
+ }
211
+
212
+ .post-title,
213
+ .post-content h1 {
214
+ @include relative-font-size(2.625);
215
+ letter-spacing: -1px;
216
+ line-height: 1.15;
217
+
218
+ @media in-large {
219
+ @include relative-font-size(2.625);
220
+ }
221
+ }
222
+
223
+ .post-content {
224
+ margin-bottom: $spacing-unit;
225
+
226
+ h1, h2, h3 { margin-top: $spacing-unit * 2 }
227
+ h4, h5, h6 { margin-top: $spacing-unit }
228
+
229
+ h2 {
230
+ @include relative-font-size(1.75);
231
+
232
+ @media in-large {
233
+ @include relative-font-size(2);
234
+ }
235
+ }
236
+
237
+ h3 {
238
+ @include relative-font-size(1.375);
239
+
240
+ @media if-large {
241
+ @include relative-font-size(1.625);
242
+ }
243
+ }
244
+
245
+ h4 {
246
+ @include relative-font-size(1.25);
247
+ }
248
+
249
+ h5 {
250
+ @include relative-font-size(1.125);
251
+ }
252
+ h6 {
253
+ @include relative-font-size(1.0625);
254
+ }
255
+ }
256
+
257
+
258
+ // Error Pages
259
+ // ===========
260
+
261
+ .error {
262
+ text-align: center;
263
+
264
+ h1 {
265
+ margin: $spacing-unit/2 0;
266
+ font-size: 4em;
267
+ }
268
+ }
269
+
270
+
271
+ // Pagination navbar
272
+ // =================
273
+
274
+ .pagination {
275
+ margin: 1.5*$spacing-unit 0 $spacing-unit 0;
276
+ text-align: center;
277
+ font-size: $small-font-size;
278
+
279
+ // links, separators, and edges
280
+ a, div {
281
+ color: $brand-color;
282
+ display: inline;
283
+ padding: $spacing-unit / 4;
284
+
285
+ // edgers are lighter
286
+ &.pager-edge {
287
+ color: $brand-color-light;
288
+ }
289
+ }
290
+
291
+ // distinguish link with dotted underline on inspection
292
+ a:hover, a:active {
293
+ text-decoration: underline dotted;
294
+ }
295
+ }
Binary file
data/assets/flav.svg ADDED
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="16" height="16" version="1.1" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
3
+ <path d="m8 1-8 8h2v6h12v-6h2l-3-3v-4h-2v2z" color="#000000" fill="#9b9da3" stroke-width=".66667"/>
4
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg id="nav" width="24" height="24" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="m12 1c-6.0751 0-11 4.9249-11 11 0 6.0751 4.9249 11 11 11 6.0751 0 11-4.9249 11-11 0-6.0751-4.9249-11-11-11zm-0.0098 2h0.0098c4.9706 0 9 4.0294 9 9-4.14e-4 1.7929-0.53634 3.5449-1.5391 5.0312-0.54952-2.1115-1.3794-2.8592-2.9609-3.0312-1.5 1.4693-2.7592 1.9991-4.5 2-1.7415-2.37e-4 -3-0.49194-4.5-2-1.5808 0.17292-2.4118 0.92143-2.9609 3.0332-1.0031-1.4869-1.539-3.2396-1.5391-5.0332-2.9e-6 -4.9668 4.0235-8.9946 8.9902-9zm0.0098 2c-2.7614 0-5 2.2386-5 5 0 2.7614 2.2386 5 5 5 2.7614 0 5-2.2386 5-5 0-2.7614-2.2386-5-5-5z"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg id="nav" width="24" height="24" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="m4 2v2h-4v15.273c-1.4803e-16 0.75757 0.21875 1.4013 0.65625 1.9316s0.96875 0.79492 1.5938 0.79492h18.75c2 0 3-1 3-3v-17h-20zm2 2h16v15a1 1 0 0 1-1 1h-15v-16zm-4 2h2v13a1 1 0 0 1-1 1 1 1 0 0 1-1-1v-13zm7 0v2h10v-2h-10zm-1 4v2h12v-2h-12zm0 3v2h12v-2h-12zm0 3v2h12v-2h-12z"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg id="nav" width="24" height="24" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="m6 2c-2 0-4 2-4 4v10c0 2 2.2262 4 4 4h3.666l-0.66602 2c0 0.76861 0.44591 0.77704 1 0.5l5-2.5h3c2 0 4-2 4-4v-10c0-2-2-4-4-4h-12zm0 2h12c1 0 2 1 2 2v10c0 1-0.99653 2-2 2h-12c-1 0-2-1-2-2v-10c0-1 1-2 2-2zm2 3c-0.554 0-1 0.446-1 1s0.446 1 1 1h8c0.554 0 1-0.446 1-1s-0.446-1-1-1h-8zm0 3c-0.554 0-1 0.446-1 1s0.446 1 1 1h8c0.554 0 1-0.446 1-1s-0.446-1-1-1h-8zm0 3c-0.554 0-1 0.446-1 1s0.446 1 1 1h8c0.554 0 1-0.446 1-1s-0.446-1-1-1h-8z"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg id="nav" width="24" height="24" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="m3 0c-0.554 0-1 0.446-1 1v22c0 0.554 0.446 1 1 1h18c0.554 0 1-0.446 1-1v-16.418c0-0.582-0.37462-0.95665-0.56641-1.1484l-4.748-4.748c-0.22181-0.22181-0.68603-0.68555-1.1855-0.68555h-12.5zm1 2h9v5c0 1.1046 0.89543 2 2 2h5v13h-16v-20zm11 0 5 5h-5v-5zm-7 9a1 1 0 0 0-1 1 1 1 0 0 0 1 1h8a1 1 0 0 0 1-1 1 1 0 0 0-1-1h-8zm0 3a1 1 0 0 0-1 1 1 1 0 0 0 1 1h8a1 1 0 0 0 1-1 1 1 0 0 0-1-1h-8zm0 3a1 1 0 0 0-1 1 1 1 0 0 0 1 1h8a1 1 0 0 0 1-1 1 1 0 0 0-1-1h-8z"/>
3
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg id="nav" width="24" height="24" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="m12 7-8 8v6a1 1 0 0 0 1 1h5v-6h4v6h5a1 1 0 0 0 1-1v-6l-8-8z"/>
3
+ <path d="m12 2-11 11 1.3398 1.3398 9.6602-9.3398 9.5 9.5 1.5-1.5-3-3v-4c0-0.554-0.446-1-1-1h-1c-0.554 0-1 0.446-1 1v1z"/>
4
+ </svg>