nikomatsakis-babysteps-theme 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 217563c5af7ab92484d4563ffdf498fc892f6652cff975d91be6a3258bd3d711
4
+ data.tar.gz: 72e7e1596d3da57778fe2a26cebd1e88f4f3aa0d7d8ac92d687dce7e397102a4
5
+ SHA512:
6
+ metadata.gz: 354ac8ef5bbe8d55662b43ae4809cf32ed644cd98fd2d049b53816f9073323bdaeb82f7de156ddccbb46570da1918a096e99c20945f23a5c42ee8739cf1c666b
7
+ data.tar.gz: bdd6d48bfeb61a5c672c89002589b2c2691ed2124a88dadf08ad0454772b1480d0e52f637f9d4f944c25111725101acdd350281f6f9033765eb11a35d827b385
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2021 Niko Matsakis
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,56 @@
1
+ # nikomatsakis-babysteps-theme
2
+
3
+ A theme for nikomatsakis's babystep blog. Not meant for general use.
4
+
5
+ ## Standard docs
6
+
7
+ Welcome to your new Jekyll theme! In this directory, you'll find the files you need to be able to package up your theme into a gem. Put your layouts in `_layouts`, your includes in `_includes`, your sass files in `_sass` and any other assets in `assets`.
8
+
9
+ To experiment with this code, add some sample content and run `bundle exec jekyll serve` – this directory is setup just like a Jekyll site!
10
+
11
+ TODO: Delete this and the text above, and describe your gem
12
+
13
+
14
+ ## Installation
15
+
16
+ Add this line to your Jekyll site's `Gemfile`:
17
+
18
+ ```ruby
19
+ gem "nikomatsakis-babysteps-theme"
20
+ ```
21
+
22
+ And add this line to your Jekyll site's `_config.yml`:
23
+
24
+ ```yaml
25
+ theme: nikomatsakis-babysteps-theme
26
+ ```
27
+
28
+ And then execute:
29
+
30
+ $ bundle
31
+
32
+ Or install it yourself as:
33
+
34
+ $ gem install nikomatsakis-babysteps-theme
35
+
36
+ ## Usage
37
+
38
+ TODO: Write usage instructions here. Describe your available layouts, includes, sass and/or assets.
39
+
40
+ ## Contributing
41
+
42
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/hello. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
43
+
44
+ ## Development
45
+
46
+ To set up your environment to develop this theme, run `bundle install`.
47
+
48
+ Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
49
+
50
+ When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
51
+ To add a custom directory to your theme-gem, please edit the regexp in `nikomatsakis-babysteps-theme.gemspec` accordingly.
52
+
53
+ ## License
54
+
55
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
56
+
@@ -0,0 +1,59 @@
1
+ <!--- CHANGE SIDE NAV PHOTO AND OVERLAY TEXT HERE -->
2
+ <div class="nav_image_container">
3
+ <a href="/"><img class="nav_image" src="/assets/daphne.png"></a>
4
+ <a class="nav_image_overlay" href="/" style="font-family: Zilla Slab; font-weight: 400; font-size: 72px; line-height: 72px">Baby <br>Steps</a>
5
+ </div>
6
+
7
+ <h3>This blog is where I post up various half-baked ideas that I have.</h3>
8
+
9
+ <!---COLLAPSIBLE SIDE NAV LINKS -->
10
+
11
+ <nav>
12
+ <button type="button" class="collapsible">Categories</button>
13
+ <div class="content">
14
+ <ul style="list-style-type:none;">
15
+ {% for categories in site.categories %}
16
+ <li><a style="font-family: DM Mono, monospace" href="/categories/{{categories[0]}}">{{ categories[0] }}</a></li>
17
+ {% endfor %}
18
+ </ul>
19
+ </div>
20
+ <h4><a href="/about" class="listing_title">About</a><h4>
21
+ <br>
22
+
23
+ <!---SOCIAL PROFILE LINKS -->
24
+
25
+ <div class="footer-col footer-col-2">
26
+ <ul class="social-media-list" style="list-style-type:none; padding-left:0;">
27
+ {% if site.github_username %}
28
+ <li>
29
+ {% include icon-github.html username=site.github_username %}
30
+ </li>
31
+ {% endif %}
32
+
33
+ {% if site.twitter_username %}
34
+ <li>
35
+ {% include icon-twitter.html username=site.twitter_username %}
36
+ </li>
37
+ {% endif %}
38
+ </ul>
39
+ </div>
40
+ </nav>
41
+
42
+ <!---COLLAPSIBLE CATEGORY MENU SCRIPT -->
43
+
44
+ <script>
45
+ var coll = document.getElementsByClassName("collapsible");
46
+ var i;
47
+
48
+ for (i = 0; i < coll.length; i++) {
49
+ coll[i].addEventListener("click", function() {
50
+ this.classList.toggle("active");
51
+ var content = this.nextElementSibling;
52
+ if (content.style.display === "block") {
53
+ content.style.display = "none";
54
+ } else {
55
+ content.style.display = "block";
56
+ }
57
+ });
58
+ }
59
+ </script>
@@ -0,0 +1,28 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <section class="small-intro">
5
+ <div class="container">
6
+ <h2>
7
+ {{ page.title }}
8
+ </h2>
9
+ </div>
10
+ </section>
11
+ <section class="blog">
12
+ <div class="container">
13
+ {% for post in site.posts %} {% if post.categories contains page.category %}
14
+
15
+ <div class="post_section">
16
+ <p class="listing_date">{{ post.date | date_to_long_string }}</p>
17
+ <a href="{{ post.url }}"><h3 class="listing_title">{{ post.title }}</h3></a>
18
+ <p>{{post.excerpt}}</p>
19
+ <div class="tag_row">
20
+ {% for category in post.categories %}
21
+ <a href="/categories/{{ category }}"><span class="pill_tag">{{ category }}</span></a>
22
+ {% endfor %}
23
+ </div>
24
+ <br>
25
+ <hr>
26
+ </div>
27
+ {% endif %} {% endfor %}
28
+ </div>
@@ -0,0 +1,23 @@
1
+ ---
2
+ ---
3
+
4
+ <!doctype html>
5
+ <html>
6
+ <head>
7
+ <title>Baby Steps</title>
8
+ <meta name="viewport" content="width=device-width, initial-scale=1">
9
+ <link rel="stylesheet" href="/assets/css/app.css">
10
+ </head>
11
+
12
+ <body>
13
+ <div class="flex_wrapper">
14
+ <div class="sidenav">
15
+ {% include sidenav.html %}
16
+ </div>
17
+ <section class="content_body">
18
+ {{ content }}
19
+ </section>
20
+
21
+ </div>
22
+ </body>
23
+ </html>
@@ -0,0 +1,5 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {{ content }}
@@ -0,0 +1,15 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <h2>{{ page.title }}</h2>
6
+ <p class="post_date">{{page.date | date_to_long_string }} </p>
7
+ <br>
8
+ <div class="tag_row">
9
+ {% for category in page.categories %}
10
+ <a href="/categories/{{ category }}"><span class="pill_tag">{{ category }}</span></a>
11
+ {% endfor %}
12
+ </div>
13
+ <br><br>
14
+
15
+ {{ content }}
@@ -0,0 +1,292 @@
1
+ ---
2
+ ---
3
+ @import url("https://fonts.googleapis.com/css?family=Zilla+Slab:400,700");
4
+ @import url("https://fonts.googleapis.com/css?family=DM-Sans:400,700,800");
5
+ @import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@300&display=swap");
6
+
7
+ $background: #ffffff;
8
+ $black: #000000;
9
+ $red: #ff3500;
10
+ $typography: DM-Sans;
11
+
12
+ body {
13
+ background-color: $background;
14
+ color: $black;
15
+ font-family: $typography, Helvetica;
16
+ font-weight: 400;
17
+ font-size: 16pt;
18
+ line-height: 1.5;
19
+ }
20
+
21
+ h1 {
22
+ font-size: 80px;
23
+ font-weight: bold;
24
+ }
25
+
26
+ h2 {
27
+ font-size: 40px;
28
+ font-weight: 700;
29
+ font-family: 'DM Mono', monospace;
30
+ }
31
+
32
+ h3 {
33
+ font-size: 36px;
34
+ font-weight: 300;
35
+ }
36
+
37
+ h4 {
38
+ font-size: 24px;
39
+ font-weight: 700;
40
+ }
41
+
42
+ a {
43
+ color: #4B7BD6;
44
+ font-weight: 500;
45
+ text-decoration: none;
46
+ }
47
+
48
+ a:hover {
49
+ text-decoration: underline;
50
+ }
51
+
52
+ /* Formatting for 2-column */
53
+
54
+ .flex_wrapper {
55
+ display: flex;
56
+ flex-direction: row;
57
+ }
58
+
59
+ .sidenav {
60
+ position: sticky;
61
+ height: 100%;
62
+ left: 0;
63
+ top: 0;
64
+ z-index: 1000;
65
+ padding: 3%;
66
+ width: 27vw;
67
+ border-right: 3px solid #000000;
68
+ }
69
+
70
+
71
+ .content_body {
72
+ position: relative;
73
+ padding: 3% 10% 3% 3%;
74
+ justify-content: center;
75
+ width: 73%;
76
+ }
77
+
78
+ .content_body img {
79
+ max-width: 75%;
80
+ }
81
+
82
+ /* Styling for side nav */
83
+
84
+ header {
85
+ display: flex;
86
+ flex-direction: column;
87
+ }
88
+
89
+ .nav_image_container {
90
+ position: relative;
91
+ margin-bottom: 8px;
92
+ }
93
+
94
+ .nav_image {
95
+ position: relative;
96
+ border-radius: 10px;
97
+ top: 0;
98
+ left: 0;
99
+ height: auto;
100
+ width: 100%;
101
+ box-shadow: -20px -20px 0 0 #4B7BD6;
102
+ margin: 20px;
103
+ vertical-align: middle;
104
+ text-align: center;
105
+ }
106
+
107
+ /* Styling for text on top of side nav photo */
108
+
109
+ .nav_image_overlay {
110
+ font-size: 2.8rem;
111
+ color: white;
112
+ font-weight: 700;
113
+ position: absolute;
114
+ top: 10%;
115
+ left: 15%;
116
+ }
117
+
118
+
119
+ /* Styling for sidenvav social media links */
120
+
121
+ .social-media-list a{
122
+ font-weight: 400;
123
+ color: #4f4f4f;
124
+ }
125
+
126
+ /* Styling for collapsible "Categories" list */
127
+
128
+ .collapsible {
129
+ cursor: pointer;
130
+ font-size: 24px;
131
+ font-weight: 700;
132
+ border: none;
133
+ text-align: left;
134
+ outline: none;
135
+ color: $black;
136
+ font-family: 'DM Mono', monospace;
137
+ margin-top: 0;
138
+ }
139
+
140
+ /* removes background from default button styling for "Categories" button */
141
+ button {
142
+ background-color: white;
143
+ padding: 0;
144
+ }
145
+
146
+ .content {
147
+ padding: 0 18px;
148
+ display: none;
149
+ overflow: hidden;
150
+ }
151
+
152
+ .collapsible:after {
153
+ content: '\002B'; /* Unicode character for "plus" sign (+) */
154
+ font-size: 24px;
155
+ font-family: 'DM Mono', monospace;
156
+ color: $black;
157
+ float: right;
158
+ margin-left: 5px;
159
+ }
160
+
161
+ .active:after {
162
+ content: "\002D"; /* Unicode character for "minus" sign (-) */
163
+ }
164
+
165
+ /* Styling for post listings */
166
+
167
+ .listing_title {
168
+ color: $black;
169
+ font-family: 'DM Mono', monospace;
170
+ margin-top: 0;
171
+ font-weight: 800;
172
+ }
173
+
174
+ .listing_date {
175
+ font-family: 'DM Mono', monospace;
176
+ color: #4f4f4f;
177
+ font-weight: 400;
178
+ margin-bottom: 0;
179
+ }
180
+
181
+ .post_section {
182
+ display: block;
183
+ padding-top: 24px;
184
+ padding-bottom: 24px;
185
+ }
186
+
187
+ /* Styling for category tags */
188
+
189
+ .tag_row {
190
+ display: flex;
191
+ flex-direction: row;
192
+ }
193
+
194
+ .pill_tag {
195
+ pointer-events: none;
196
+ background-color: #4B7BD6;
197
+ border: none;
198
+ color: #ffffff;
199
+ padding: 10px 10px;
200
+ font-family: 'DM Mono', monospace;
201
+ text-align: center;
202
+ text-decoration: none;
203
+ display: inline;
204
+ margin-right: 13px;
205
+ margin-left: -1px;
206
+ border-radius: 100px;
207
+ }
208
+
209
+ .pill_tag a{
210
+ color: #ffffff;
211
+ }
212
+
213
+ /* Styling for post pages */
214
+
215
+ .post_date {
216
+ color: #4B7BD6;
217
+ font-family: 'DM Mono', monospace;
218
+ font-size: 18pt;
219
+ font-weight: 700;
220
+ margin-bottom: 0;
221
+ }
222
+
223
+
224
+ /* behavior for smaller screens */
225
+
226
+ @media screen and (max-width: 1000px) {
227
+ .flex_wrapper {
228
+ flex-direction: column;
229
+ }
230
+ .sidenav {
231
+ width: 90vw;
232
+ position: relative;
233
+ border-right: none;
234
+ border-bottom: 3px solid #000000;
235
+ }
236
+ .content_body {
237
+ width: 90vw;
238
+ margin-left: 0;
239
+ padding: 24px;
240
+ }
241
+
242
+ .nav_image {
243
+ width: 50%;
244
+ box-shadow: -20px -20px 0 0 #4B7BD6;
245
+ margin: 20px;
246
+ vertical-align: middle;
247
+ text-align: left;
248
+ }
249
+
250
+ .nav_image_overlay {
251
+ font-size: 1.5rem;
252
+ color: white;
253
+ font-weight: 700;
254
+ position: absolute;
255
+ top: 10%;
256
+ left: 6%;
257
+ }
258
+
259
+ .nav_image_container {
260
+ position: relative;
261
+ margin-bottom: 24px;
262
+ }
263
+ }
264
+
265
+ @media screen and (max-width: 400px) {
266
+ .nav_image {
267
+ width: 80%;
268
+ box-shadow: -20px -20px 0 0 #4B7BD6;
269
+ margin: 20px;
270
+ vertical-align: middle;
271
+ text-align: left;
272
+ }
273
+
274
+ .nav_image_overlay {
275
+ font-size: 0.3rem;
276
+ color: white;
277
+ font-weight: 700;
278
+ position: absolute;
279
+ top: 10%;
280
+ left: 12%;
281
+ }
282
+ }
283
+
284
+
285
+ /* Styling for pagination links */
286
+
287
+ .pagination {
288
+ font-family: 'DM Mono', monospace;
289
+ margin-top: 64px;
290
+ font-weight: 400;
291
+ font-size: 14pt;
292
+ }
data/assets/daphne.png ADDED
Binary file
metadata ADDED
@@ -0,0 +1,66 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: nikomatsakis-babysteps-theme
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Niko Matsakis
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2021-08-28 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: jekyll
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '4.1'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '4.1'
27
+ description:
28
+ email:
29
+ - niko@alum.mit.edu
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - LICENSE.txt
35
+ - README.md
36
+ - _includes/sidenav.html
37
+ - _layouts/category_index.html
38
+ - _layouts/default.html
39
+ - _layouts/page.html
40
+ - _layouts/post.html
41
+ - assets/css/app.scss
42
+ - assets/daphne.png
43
+ homepage: https://github.com/nikomatsakis/nikomatsakis-babysteps-theme
44
+ licenses:
45
+ - MIT
46
+ metadata: {}
47
+ post_install_message:
48
+ rdoc_options: []
49
+ require_paths:
50
+ - lib
51
+ required_ruby_version: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ required_rubygems_version: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
61
+ requirements: []
62
+ rubygems_version: 3.1.2
63
+ signing_key:
64
+ specification_version: 4
65
+ summary: Theme for nikomatsakis's babysteps blog
66
+ test_files: []