Skip to content

Commit 2a7251a

Browse files
committed
add a bunch of new stuff
1 parent 3d60dec commit 2a7251a

26 files changed

+278
-40
lines changed

.DS_Store

6 KB
Binary file not shown.

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ _site
33
.jekyll-cache
44
.jekyll-metadata
55
vendor
6-
.bundle
6+
.bundle
7+
# for now
8+
_diary

.vscode/settings.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"files.associations": {
3+
"*.html": "liquid",
4+
"*.css": "liquid-css",
5+
"*.md": "markdown"
6+
}
7+
}

Gemfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
source 'https://rubygems.org'
2-
gem "github-pages", group: :jekyll_plugins
3-
gem "webrick"
2+
gem 'github-pages'
3+
4+
group :jekyll_plugins do
5+
# gem 'jekyll_picture_tag'
6+
end
7+
8+
gem 'webrick'

Gemfile.lock

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -206,14 +206,12 @@ GEM
206206
rb-fsevent (~> 0.10, >= 0.10.3)
207207
rb-inotify (~> 0.9, >= 0.9.10)
208208
mercenary (0.3.6)
209-
mini_portile2 (2.8.0)
210209
minima (2.5.1)
211210
jekyll (>= 3.5, < 5.0)
212211
jekyll-feed (~> 0.9)
213212
jekyll-seo-tag (~> 2.1)
214213
minitest (5.16.3)
215-
nokogiri (1.13.10)
216-
mini_portile2 (~> 2.8.0)
214+
nokogiri (1.13.10-x86_64-darwin)
217215
racc (~> 1.4)
218216
nokogiri (1.13.10-x86_64-linux)
219217
racc (~> 1.4)
@@ -257,12 +255,12 @@ GEM
257255
zeitwerk (2.6.6)
258256

259257
PLATFORMS
260-
ruby
258+
x86_64-darwin-21
261259
x86_64-linux
262260

263261
DEPENDENCIES
264262
github-pages
265263
webrick
266264

267265
BUNDLED WITH
268-
2.2.31
266+
2.4.8

_config.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,14 @@ description: >-
33
44
theme: null
55
url: "henrylang.net"
6+
future: true
7+
8+
maps_api: AIzaSyAbxcgPcT1lOkuA-3V9GGXBS4Qdx5Ymxiw
9+
10+
collections:
11+
pages:
12+
output: true
13+
permalink: /:title
14+
diary:
15+
output: true
16+
permalink: /:collection/:year-:month-:day/

_includes/date.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{% assign d = page.date | date: "%d" | plus:'0' %}{{ page.date | date: "%B" }} {% case d %}{% when 1 or 21 or 31 %}{{ d }}st{% when 2 or 22 %}{{ d }}nd{% when 3 or 23 %}{{ d }}rd{% else %}{{ d }}th{% endcase %}, {{ page.date | date: "%Y" }}

_includes/reading-time.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<span class="reading-time" title="Estimated read time">
2+
{% assign words = content | number_of_words %}
3+
{% if words < 360 %}
4+
1 minute
5+
{% else %}
6+
{{ words | divided_by: 180 }} minutes
7+
{% endif %}
8+
</span>

_layouts/default.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
rel="icon"
2121
media="(prefers-color-scheme: dark)"
2222
/>
23+
<title>{{page.title}}</title>
2324
</head>
2425
<body>
2526
{% include nav.html %}

_layouts/diary.html

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{% capture title %}
2+
{% include date.html %}: {{page.title}}
3+
{% endcapture %}
4+
5+
<!DOCTYPE html>
6+
<html lang="en">
7+
<head>
8+
<meta charset="UTF-8">
9+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
10+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
11+
<link rel="preload" as="font" href="/assets/fonts/iosevka-regular.woff2" type="font/woff2" crossorigin="anonymous">
12+
<link rel="preload" as="script" href="/assets/scripts/palette.js">
13+
<link rel="stylesheet" href="/assets/styles/styles.css">
14+
<link
15+
href="/assets/favicon-light.png"
16+
rel="icon"
17+
media="(prefers-color-scheme: light)"
18+
/>
19+
<link
20+
href="/assets/favicon-dark.png"
21+
rel="icon"
22+
media="(prefers-color-scheme: dark)"
23+
/>
24+
<title>{{title}}</title>
25+
</head>
26+
<body>
27+
{% include nav.html %}
28+
<script src="/assets/scripts/palette.js" defer></script>
29+
<!-- <figure class="absolute-bg preview__img" style="background-image: url('https://maps.googleapis.com/maps/api/staticmap?&size=600x600&scale=2&markers={{page.location | cgi_escape}}&key=AIzaSyAbxcgPcT1lOkuA-3V9GGXBS4Qdx5Ymxiw');"></figure> -->
30+
<div class="wrapper">
31+
<h1>{{title}}</h1>
32+
<p>Reading time: {% include reading-time.html %}</p>
33+
<div class="content">
34+
{{ content }}
35+
</div>
36+
{% include footer.html %}
37+
</div>
38+
</body>
39+
</html>

0 commit comments

Comments
 (0)