Skip to content

Commit 11a36b4

Browse files
committed
Merge remote-tracking branch 'origin/upstream'
# Conflicts: # .github/workflows/broken-links.yml # CUSTOMIZE.md # INSTALL.md # LICENSE # README.md # _config.yml # _pages/about.md # _pages/blog.md # _pages/dropdown.md # _posts/2018-12-22-distill.md
2 parents fb69367 + 6625f23 commit 11a36b4

27 files changed

+572
-208
lines changed
File renamed without changes.

.github/workflows/deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
- main
88
paths:
99
- "assets/**"
10+
- "_sass/**"
1011
- "**.bib"
1112
- "**.html"
1213
- "**.js"
@@ -34,6 +35,7 @@ on:
3435
- main
3536
paths:
3637
- "assets/**"
38+
- "_sass/**"
3739
- "**.bib"
3840
- "**.html"
3941
- "**.js"

Gemfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ gem 'jekyll'
44

55
# Core plugins that directly affect site building
66
group :jekyll_plugins do
7-
gem 'jekyll-archives'
7+
gem 'jekyll-archives-v2'
88
gem 'jekyll-email-protect'
99
gem 'jekyll-feed'
1010
gem 'jekyll-get-json'
@@ -32,7 +32,7 @@ group :other_plugins do
3232
gem 'httparty'
3333
gem 'observer' # used by jekyll-scholar
3434
gem 'ostruct' # used by jekyll-twitter-plugin
35-
gem 'terser' # used by jekyll-terser
35+
# gem 'terser' # used by jekyll-terser
3636
# gem 'unicode_utils' -- should be already installed by jekyll
3737
# gem 'webrick' -- should be already installed by jekyll
3838
end

Gemfile.lock

Lines changed: 50 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
GIT
22
remote: https://github.com/RobertoJBeltran/jekyll-terser.git
3-
revision: 2f737004fe4732b92021c84e4de71e6a8585ff01
3+
revision: 1085bf66d692799af09fe39f8162a1e6e42a3cc4
44
specs:
5-
jekyll-terser (0.2.2)
5+
jekyll-terser (0.2.3)
66
jekyll (>= 0.10.0)
77
terser (>= 1.0.0)
88

@@ -30,8 +30,13 @@ GEM
3030
latex-decode (~> 0.0)
3131
racc (~> 1.7)
3232
bigdecimal (3.1.9)
33-
citeproc (1.0.10)
33+
citeproc (1.1.0)
34+
date
35+
forwardable
36+
json
3437
namae (~> 1.0)
38+
observer (< 1.0)
39+
open-uri (< 1.0)
3540
citeproc-ruby (1.1.14)
3641
citeproc (~> 1.0, >= 1.0.9)
3742
csl (~> 1.6)
@@ -51,6 +56,7 @@ GEM
5156
addressable
5257
cssminify2 (2.0.1)
5358
csv (3.3.2)
59+
date (3.4.1)
5460
deep_merge (1.2.2)
5561
drb (2.2.1)
5662
em-websocket (0.5.3)
@@ -70,6 +76,7 @@ GEM
7076
ffi (1.17.1-x86_64-darwin)
7177
ffi (1.17.1-x86_64-linux-gnu)
7278
ffi (1.17.1-x86_64-linux-musl)
79+
forwardable (1.3.3)
7380
forwardable-extended (2.6.0)
7481
gemoji (4.1.0)
7582
google-protobuf (4.29.3)
@@ -96,25 +103,29 @@ GEM
96103
csv
97104
mini_mime (>= 1.0.0)
98105
multi_xml (>= 0.5.2)
99-
i18n (1.14.6)
106+
i18n (1.14.7)
100107
concurrent-ruby (~> 1.0)
101-
jekyll (4.3.4)
108+
jekyll (4.4.1)
102109
addressable (~> 2.4)
110+
base64 (~> 0.2)
103111
colorator (~> 1.0)
112+
csv (~> 3.0)
104113
em-websocket (~> 0.5)
105114
i18n (~> 1.0)
106115
jekyll-sass-converter (>= 2.0, < 4.0)
107116
jekyll-watch (~> 2.0)
117+
json (~> 2.6)
108118
kramdown (~> 2.3, >= 2.3.1)
109119
kramdown-parser-gfm (~> 1.0)
110120
liquid (~> 4.0)
111-
mercenary (>= 0.3.6, < 0.5)
121+
mercenary (~> 0.3, >= 0.3.6)
112122
pathutil (~> 0.9)
113123
rouge (>= 3.0, < 5.0)
114124
safe_yaml (~> 1.0)
115125
terminal-table (>= 1.8, < 4.0)
116126
webrick (~> 1.7)
117-
jekyll-archives (2.3.0)
127+
jekyll-archives-v2 (0.0.6)
128+
activesupport
118129
jekyll (>= 3.6, < 5.0)
119130
jekyll-email-protect (1.1.0)
120131
jekyll-feed (0.17.0)
@@ -136,8 +147,8 @@ GEM
136147
jekyll-paginate-v2 (3.0.0)
137148
jekyll (>= 3.0, < 5.0)
138149
jekyll-regex-replace (1.1.0)
139-
jekyll-sass-converter (3.0.0)
140-
sass-embedded (~> 1.54)
150+
jekyll-sass-converter (3.1.0)
151+
sass-embedded (~> 1.75)
141152
jekyll-scholar (7.1.3)
142153
bibtex-ruby (~> 6.0)
143154
citeproc-ruby (~> 1.0)
@@ -157,7 +168,7 @@ GEM
157168
gemoji (>= 3, < 5)
158169
html-pipeline (~> 2.2)
159170
jekyll (>= 3.0, < 5.0)
160-
json (2.9.1)
171+
json (2.10.1)
161172
json-minify (0.0.3)
162173
json (> 0)
163174
kramdown (2.5.1)
@@ -169,7 +180,7 @@ GEM
169180
listen (3.9.0)
170181
rb-fsevent (~> 0.10, >= 0.10.3)
171182
rb-inotify (~> 0.9, >= 0.9.10)
172-
logger (1.6.5)
183+
logger (1.6.6)
173184
loofah (2.24.0)
174185
crass (~> 1.0.2)
175186
nokogiri (>= 1.12.0)
@@ -181,23 +192,27 @@ GEM
181192
bigdecimal (~> 3.1)
182193
namae (1.2.0)
183194
racc (~> 1.7)
184-
nokogiri (1.18.1-aarch64-linux-gnu)
195+
nokogiri (1.18.3-aarch64-linux-gnu)
185196
racc (~> 1.4)
186-
nokogiri (1.18.1-aarch64-linux-musl)
197+
nokogiri (1.18.3-aarch64-linux-musl)
187198
racc (~> 1.4)
188-
nokogiri (1.18.1-arm-linux-gnu)
199+
nokogiri (1.18.3-arm-linux-gnu)
189200
racc (~> 1.4)
190-
nokogiri (1.18.1-arm-linux-musl)
201+
nokogiri (1.18.3-arm-linux-musl)
191202
racc (~> 1.4)
192-
nokogiri (1.18.1-arm64-darwin)
203+
nokogiri (1.18.3-arm64-darwin)
193204
racc (~> 1.4)
194-
nokogiri (1.18.1-x86_64-darwin)
205+
nokogiri (1.18.3-x86_64-darwin)
195206
racc (~> 1.4)
196-
nokogiri (1.18.1-x86_64-linux-gnu)
207+
nokogiri (1.18.3-x86_64-linux-gnu)
197208
racc (~> 1.4)
198-
nokogiri (1.18.1-x86_64-linux-musl)
209+
nokogiri (1.18.3-x86_64-linux-musl)
199210
racc (~> 1.4)
200211
observer (0.1.2)
212+
open-uri (0.5.0)
213+
stringio
214+
time
215+
uri
201216
ostruct (0.6.1)
202217
pathutil (0.16.2)
203218
forwardable-extended (~> 2.6)
@@ -207,37 +222,40 @@ GEM
207222
rb-fsevent (0.11.2)
208223
rb-inotify (0.11.1)
209224
ffi (~> 1.0)
210-
rexml (3.4.0)
225+
rexml (3.4.1)
211226
rouge (4.5.1)
212227
safe_yaml (1.0.5)
213-
sass-embedded (1.83.4-aarch64-linux-gnu)
228+
sass-embedded (1.85.1-aarch64-linux-gnu)
214229
google-protobuf (~> 4.29)
215-
sass-embedded (1.83.4-aarch64-linux-musl)
230+
sass-embedded (1.85.1-aarch64-linux-musl)
216231
google-protobuf (~> 4.29)
217-
sass-embedded (1.83.4-arm-linux-gnueabihf)
232+
sass-embedded (1.85.1-arm-linux-gnueabihf)
218233
google-protobuf (~> 4.29)
219-
sass-embedded (1.83.4-arm-linux-musleabihf)
234+
sass-embedded (1.85.1-arm-linux-musleabihf)
220235
google-protobuf (~> 4.29)
221-
sass-embedded (1.83.4-arm64-darwin)
236+
sass-embedded (1.85.1-arm64-darwin)
222237
google-protobuf (~> 4.29)
223-
sass-embedded (1.83.4-x86_64-darwin)
238+
sass-embedded (1.85.1-x86_64-darwin)
224239
google-protobuf (~> 4.29)
225-
sass-embedded (1.83.4-x86_64-linux-gnu)
240+
sass-embedded (1.85.1-x86_64-linux-gnu)
226241
google-protobuf (~> 4.29)
227-
sass-embedded (1.83.4-x86_64-linux-musl)
242+
sass-embedded (1.85.1-x86_64-linux-musl)
228243
google-protobuf (~> 4.29)
229244
sax-machine (1.3.2)
230245
securerandom (0.4.1)
246+
stringio (3.1.5)
231247
terminal-table (3.0.2)
232248
unicode-display_width (>= 1.1.1, < 3)
233-
terser (1.2.4)
249+
terser (1.2.5)
234250
execjs (>= 0.3.0, < 3)
251+
time (0.4.1)
252+
date
235253
tzinfo (2.0.6)
236254
concurrent-ruby (~> 1.0)
237255
uglifier (4.2.1)
238256
execjs (>= 0.3.0, < 3)
239257
unicode-display_width (2.6.0)
240-
uri (1.0.2)
258+
uri (1.0.3)
241259
webrick (1.9.1)
242260

243261
PLATFORMS
@@ -260,7 +278,7 @@ DEPENDENCIES
260278
feedjira
261279
httparty
262280
jekyll
263-
jekyll-archives
281+
jekyll-archives-v2
264282
jekyll-email-protect
265283
jekyll-feed
266284
jekyll-get-json
@@ -279,7 +297,6 @@ DEPENDENCIES
279297
jemoji
280298
observer
281299
ostruct
282-
terser
283300

284301
BUNDLED WITH
285-
2.6.2
302+
2.6.5

_config.yml

Lines changed: 11 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -138,24 +138,14 @@ newsletter:
138138
# -----------------------------------------------------------------------------
139139

140140
collections:
141+
books:
142+
output: true
141143
news:
142144
defaults:
143145
layout: post
144146
output: true
145-
permalink: /:collection/:title/
146147
projects:
147148
output: true
148-
permalink: /:collection/:title/
149-
150-
announcements:
151-
enabled: false
152-
scrollable: true # adds a vertical scroll bar if there are more than 3 news items
153-
limit: 5 # leave blank to include all the news in the `_news` folder
154-
155-
latest_posts:
156-
enabled: false
157-
scrollable: true # adds a vertical scroll bar if there are more than 3 new posts items
158-
limit: 3 # leave blank to include all the blog posts
159149

160150
# -----------------------------------------------------------------------------
161151
# Jekyll settings
@@ -202,7 +192,7 @@ keep_files:
202192

203193
# Plug-ins
204194
plugins:
205-
- jekyll-archives
195+
- jekyll-archives-v2
206196
- jekyll-email-protect
207197
- jekyll-feed
208198
- jekyll-get-json
@@ -251,15 +241,14 @@ terser:
251241
# -----------------------------------------------------------------------------
252242

253243
jekyll-archives:
254-
enabled: [year, tags, categories] # enables year, tag and category archives (remove if you need to disable one of them).
255-
layouts:
256-
year: archive-year
257-
tag: archive-tag
258-
category: archive-category
259-
permalinks:
260-
year: "/blog/:year/"
261-
tag: "/blog/tag/:name/"
262-
category: "/blog/category/:name/"
244+
posts:
245+
enabled: [year, tags, categories] # enables year, tag and category archives (remove if you need to disable one of them).
246+
permalinks:
247+
year: "/blog/:year/"
248+
tags: "/blog/:type/:name/"
249+
categories: "/blog/:type/:name/"
250+
books:
251+
enabled: [year, tags, categories] # enables year, tag and category archives (remove if you need to disable one of them).
263252

264253
display_tags: ["formatting", "images", "links", "math", "code", "blockquotes"] # these tags will be displayed on the front page of your blog
265254
display_categories: ["external-services"] # these categories will be displayed on the front page of your blog

_includes/distill_scripts.liquid

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,3 @@
278278
<script src="{{ '/assets/js/search-data.js' | relative_url }}"></script>
279279
<script src="{{ '/assets/js/shortcut-key.js' | relative_url | bust_file_cache }}"></script>
280280
{% endif %}
281-
282-
{% if site.newsletter.enabled %}
283-
<script defer src="{{ '/assets/js/newsletter.js' | relative_url | bust_file_cache }}"></script>
284-
{% endif %}

_includes/latest_posts.liquid

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<div class="news">
2-
{% if site.latest_posts != blank %}
2+
{% if page.latest_posts != blank %}
33
{% assign latest_posts_size = site.posts | size %}
44
<div
55
class="table-responsive"
6-
{% if site.latest_posts.scrollable and latest_posts_size > 3 %}
6+
{% if page.latest_posts.scrollable and latest_posts_size > 3 %}
77
style="max-height: 60vw"
88
{% endif %}
99
>
1010
<table class="table table-sm table-borderless">
1111
{% assign latest_posts = site.posts %}
12-
{% if site.latest_posts.limit %}
13-
{% assign latest_posts_limit = site.latest_posts.limit %}
12+
{% if page.latest_posts.limit %}
13+
{% assign latest_posts_limit = page.latest_posts.limit %}
1414
{% else %}
1515
{% assign latest_posts_limit = latest_posts_size %}
1616
{% endif %}

_includes/news.liquid

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
{% assign news_size = site.news | size %}
44
<div
55
class="table-responsive"
6-
{% if include.limit and site.announcements.scrollable and news_size > 3 %}
6+
{% if include.limit and page.announcements.scrollable and news_size > 3 %}
77
style="max-height: 60vw"
88
{% endif %}
99
>
1010
<table class="table table-sm table-borderless">
1111
{% assign news = site.news | reverse %}
12-
{% if include.limit and site.announcements.limit %}
13-
{% assign news_limit = site.announcements.limit %}
12+
{% if include.limit and page.announcements.limit %}
13+
{% assign news_limit = page.announcements.limit %}
1414
{% else %}
1515
{% assign news_limit = news_size %}
1616
{% endif %}

_includes/related_posts.liquid

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,16 @@
1313
{% endunless %}
1414

1515
<li class="my-2">
16-
<a class="text-pink-700 underline font-semibold hover:text-pink-800" href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a>
16+
{% if post.redirect == blank %}
17+
<a class="text-pink-700 underline font-semibold hover:text-pink-800" href="{{ post.url | relative_url }}">{{ post.title }}</a>
18+
{% elsif post.redirect contains '://' %}
19+
<a class="text-pink-700 underline font-semibold hover:text-pink-800" href="{{ post.redirect }}" target="_blank">{{ post.title }}</a>
20+
<svg width="1rem" height="1rem" viewBox="0 0 30 30" xmlns="http://www.w3.org/2000/svg">
21+
<path d="M17 13.5v6H5v-12h6m3-3h6v6m0-6-9 9" class="icon_svg-stroke" stroke="#999" stroke-width="1.5" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"></path>
22+
</svg>
23+
{% else %}
24+
<a class="text-pink-700 underline font-semibold hover:text-pink-800" href="{{ post.redirect | relative_url }}">{{ post.title }}</a>
25+
{% endif %}
1726
</li>
1827
{% endfor %}
1928
{% if site.newsletter.enabled and site.footer_fixed %}

0 commit comments

Comments
 (0)