Skip to content

Commit b786554

Browse files
committed
Merge remote-tracking branch 'origin/upstream'
# Conflicts: # CONTRIBUTING.md # CUSTOMIZE.md # FAQ.md # INSTALL.md # README.md # _config.yml # _data/citations.yml
2 parents d37e094 + b4d1f41 commit b786554

File tree

5 files changed

+72
-61
lines changed

5 files changed

+72
-61
lines changed

Gemfile.lock

Lines changed: 57 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -22,31 +22,31 @@ GEM
2222
securerandom (>= 0.3)
2323
tzinfo (~> 2.0, >= 2.0.5)
2424
uri (>= 0.13.1)
25-
addressable (2.8.7)
26-
public_suffix (>= 2.0.2, < 7.0)
25+
addressable (2.8.8)
26+
public_suffix (>= 2.0.2, < 8.0)
2727
base64 (0.3.0)
2828
bibtex-ruby (6.2.0)
2929
latex-decode (~> 0.0)
3030
logger (~> 1.7)
3131
racc (~> 1.7)
32-
bigdecimal (3.3.1)
32+
bigdecimal (4.0.1)
3333
citeproc (1.1.0)
3434
date
3535
forwardable
3636
json
3737
namae (~> 1.0)
3838
observer (< 1.0)
3939
open-uri (< 1.0)
40-
citeproc-ruby (2.1.4)
40+
citeproc-ruby (2.1.8)
4141
citeproc (~> 1.0, >= 1.0.9)
4242
csl (~> 2.0)
4343
observer (< 1.0)
4444
classifier-reborn (2.3.0)
4545
fast-stemmer (~> 1.0)
4646
matrix (~> 0.4)
4747
colorator (1.1.0)
48-
concurrent-ruby (1.3.5)
49-
connection_pool (2.5.4)
48+
concurrent-ruby (1.3.6)
49+
connection_pool (3.0.2)
5050
crass (1.0.6)
5151
csl (2.2.1)
5252
forwardable (~> 1.3)
@@ -62,7 +62,7 @@ GEM
6262
addressable
6363
cssminify2 (2.1.0)
6464
csv (3.3.5)
65-
date (3.5.0)
65+
date (3.5.1)
6666
deep_merge (1.2.2)
6767
drb (2.2.3)
6868
em-websocket (0.5.3)
@@ -75,48 +75,48 @@ GEM
7575
logger (>= 1.0, < 2)
7676
loofah (>= 2.3.1, < 3)
7777
sax-machine (>= 1.0, < 2)
78-
ffi (1.17.2-aarch64-linux-gnu)
79-
ffi (1.17.2-aarch64-linux-musl)
80-
ffi (1.17.2-arm-linux-gnu)
81-
ffi (1.17.2-arm-linux-musl)
82-
ffi (1.17.2-arm64-darwin)
83-
ffi (1.17.2-x86_64-darwin)
84-
ffi (1.17.2-x86_64-linux-gnu)
85-
ffi (1.17.2-x86_64-linux-musl)
86-
forwardable (1.3.3)
78+
ffi (1.17.3-aarch64-linux-gnu)
79+
ffi (1.17.3-aarch64-linux-musl)
80+
ffi (1.17.3-arm-linux-gnu)
81+
ffi (1.17.3-arm-linux-musl)
82+
ffi (1.17.3-arm64-darwin)
83+
ffi (1.17.3-x86_64-darwin)
84+
ffi (1.17.3-x86_64-linux-gnu)
85+
ffi (1.17.3-x86_64-linux-musl)
86+
forwardable (1.4.0)
8787
forwardable-extended (2.6.0)
8888
gemoji (4.1.0)
89-
google-protobuf (4.33.1)
89+
google-protobuf (4.33.2)
9090
bigdecimal
9191
rake (>= 13)
92-
google-protobuf (4.33.1-aarch64-linux-gnu)
92+
google-protobuf (4.33.2-aarch64-linux-gnu)
9393
bigdecimal
9494
rake (>= 13)
95-
google-protobuf (4.33.1-aarch64-linux-musl)
95+
google-protobuf (4.33.2-aarch64-linux-musl)
9696
bigdecimal
9797
rake (>= 13)
98-
google-protobuf (4.33.1-arm64-darwin)
98+
google-protobuf (4.33.2-arm64-darwin)
9999
bigdecimal
100100
rake (>= 13)
101-
google-protobuf (4.33.1-x86_64-darwin)
101+
google-protobuf (4.33.2-x86_64-darwin)
102102
bigdecimal
103103
rake (>= 13)
104-
google-protobuf (4.33.1-x86_64-linux-gnu)
104+
google-protobuf (4.33.2-x86_64-linux-gnu)
105105
bigdecimal
106106
rake (>= 13)
107-
google-protobuf (4.33.1-x86_64-linux-musl)
107+
google-protobuf (4.33.2-x86_64-linux-musl)
108108
bigdecimal
109109
rake (>= 13)
110110
html-pipeline (2.14.3)
111111
activesupport (>= 2)
112112
nokogiri (>= 1.4)
113113
htmlcompressor (0.4.0)
114-
http_parser.rb (0.8.0)
115-
httparty (0.23.2)
114+
http_parser.rb (0.8.1)
115+
httparty (0.24.0)
116116
csv
117117
mini_mime (>= 1.0.0)
118118
multi_xml (>= 0.5.2)
119-
i18n (1.14.7)
119+
i18n (1.14.8)
120120
concurrent-ruby (~> 1.0)
121121
jekyll (4.4.1)
122122
addressable (~> 2.4)
@@ -162,9 +162,9 @@ GEM
162162
jekyll-regex-replace (1.1.0)
163163
jekyll-sass-converter (3.1.0)
164164
sass-embedded (~> 1.75)
165-
jekyll-scholar (7.2.2)
165+
jekyll-scholar (7.2.3)
166166
bibtex-ruby (~> 6.0)
167-
citeproc-ruby (>= 2.1.3)
167+
citeproc-ruby (>= 2.1.6)
168168
csl-styles (~> 2.0)
169169
jekyll (~> 4.0)
170170
jekyll-sitemap (1.4.0)
@@ -181,7 +181,7 @@ GEM
181181
gemoji (>= 3, < 5)
182182
html-pipeline (~> 2.2)
183183
jekyll (>= 3.0, < 5.0)
184-
json (2.16.0)
184+
json (2.18.0)
185185
json-minify (0.0.3)
186186
json (> 0)
187187
kramdown (2.5.1)
@@ -194,32 +194,33 @@ GEM
194194
rb-fsevent (~> 0.10, >= 0.10.3)
195195
rb-inotify (~> 0.9, >= 0.9.10)
196196
logger (1.7.0)
197-
loofah (2.24.1)
197+
loofah (2.25.0)
198198
crass (~> 1.0.2)
199199
nokogiri (>= 1.12.0)
200200
matrix (0.4.3)
201201
mercenary (0.4.0)
202202
mini_mime (1.1.5)
203-
minitest (5.26.2)
204-
multi_xml (0.7.2)
205-
bigdecimal (~> 3.1)
203+
minitest (6.0.1)
204+
prism (~> 1.5)
205+
multi_xml (0.8.0)
206+
bigdecimal (>= 3.1, < 5)
206207
namae (1.2.0)
207208
racc (~> 1.7)
208-
nokogiri (1.18.10-aarch64-linux-gnu)
209+
nokogiri (1.19.0-aarch64-linux-gnu)
209210
racc (~> 1.4)
210-
nokogiri (1.18.10-aarch64-linux-musl)
211+
nokogiri (1.19.0-aarch64-linux-musl)
211212
racc (~> 1.4)
212-
nokogiri (1.18.10-arm-linux-gnu)
213+
nokogiri (1.19.0-arm-linux-gnu)
213214
racc (~> 1.4)
214-
nokogiri (1.18.10-arm-linux-musl)
215+
nokogiri (1.19.0-arm-linux-musl)
215216
racc (~> 1.4)
216-
nokogiri (1.18.10-arm64-darwin)
217+
nokogiri (1.19.0-arm64-darwin)
217218
racc (~> 1.4)
218-
nokogiri (1.18.10-x86_64-darwin)
219+
nokogiri (1.19.0-x86_64-darwin)
219220
racc (~> 1.4)
220-
nokogiri (1.18.10-x86_64-linux-gnu)
221+
nokogiri (1.19.0-x86_64-linux-gnu)
221222
racc (~> 1.4)
222-
nokogiri (1.18.10-x86_64-linux-musl)
223+
nokogiri (1.19.0-x86_64-linux-musl)
223224
racc (~> 1.4)
224225
observer (0.1.2)
225226
open-uri (0.5.0)
@@ -229,47 +230,48 @@ GEM
229230
ostruct (0.6.3)
230231
pathutil (0.16.2)
231232
forwardable-extended (~> 2.6)
232-
public_suffix (6.0.2)
233+
prism (1.7.0)
234+
public_suffix (7.0.0)
233235
racc (1.8.1)
234236
rake (13.3.1)
235237
rb-fsevent (0.11.2)
236238
rb-inotify (0.11.1)
237239
ffi (~> 1.0)
238240
rexml (3.4.4)
239-
rouge (4.6.1)
241+
rouge (4.7.0)
240242
safe_yaml (1.0.5)
241-
sass-embedded (1.94.2-aarch64-linux-gnu)
243+
sass-embedded (1.97.1-aarch64-linux-gnu)
242244
google-protobuf (~> 4.31)
243-
sass-embedded (1.94.2-aarch64-linux-musl)
245+
sass-embedded (1.97.1-aarch64-linux-musl)
244246
google-protobuf (~> 4.31)
245-
sass-embedded (1.94.2-arm-linux-gnueabihf)
247+
sass-embedded (1.97.1-arm-linux-gnueabihf)
246248
google-protobuf (~> 4.31)
247-
sass-embedded (1.94.2-arm-linux-musleabihf)
249+
sass-embedded (1.97.1-arm-linux-musleabihf)
248250
google-protobuf (~> 4.31)
249-
sass-embedded (1.94.2-arm64-darwin)
251+
sass-embedded (1.97.1-arm64-darwin)
250252
google-protobuf (~> 4.31)
251-
sass-embedded (1.94.2-x86_64-darwin)
253+
sass-embedded (1.97.1-x86_64-darwin)
252254
google-protobuf (~> 4.31)
253-
sass-embedded (1.94.2-x86_64-linux-gnu)
255+
sass-embedded (1.97.1-x86_64-linux-gnu)
254256
google-protobuf (~> 4.31)
255-
sass-embedded (1.94.2-x86_64-linux-musl)
257+
sass-embedded (1.97.1-x86_64-linux-musl)
256258
google-protobuf (~> 4.31)
257259
sax-machine (1.3.2)
258260
securerandom (0.4.1)
259261
set (1.1.2)
260262
singleton (0.3.0)
261-
stringio (3.1.8)
263+
stringio (3.2.0)
262264
terminal-table (3.0.2)
263265
unicode-display_width (>= 1.1.1, < 3)
264266
terser (1.2.6)
265267
execjs (>= 0.3.0, < 3)
266-
time (0.4.1)
268+
time (0.4.2)
267269
date
268270
tzinfo (2.0.6)
269271
concurrent-ruby (~> 1.0)
270272
unicode-display_width (2.6.0)
271273
uri (1.1.1)
272-
webrick (1.9.1)
274+
webrick (1.9.2)
273275

274276
PLATFORMS
275277
aarch64-linux
@@ -312,4 +314,4 @@ DEPENDENCIES
312314
ostruct
313315

314316
BUNDLED WITH
315-
2.7.2
317+
4.0.3

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ imagemagick:
362362
- ".tiff"
363363
- ".gif"
364364
output_formats:
365-
webp: "-quality 85"
365+
webp: "-auto-orient -quality 85"
366366

367367
# Lazy loading images
368368
# If you enable lazy loading, all images will add the loading="lazy" attribute.

_plugins/external-posts.rb

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ def process_entries(site, src, entries)
4242
content: e.content,
4343
summary: e.summary,
4444
published: e.published
45-
})
45+
}, src)
4646
end
4747
end
4848

49-
def create_document(site, source_name, url, content)
49+
def create_document(site, source_name, url, content, src = {})
5050
# check if title is composed only of whitespace or foreign characters
5151
if content[:title].gsub(/[^\w]/, '').strip.empty?
5252
# use the source name and last url segment as fallback
@@ -67,6 +67,15 @@ def create_document(site, source_name, url, content)
6767
doc.data['description'] = content[:summary]
6868
doc.data['date'] = content[:published]
6969
doc.data['redirect'] = url
70+
71+
# Apply default categories and tags from source configuration
72+
if src['categories'] && src['categories'].is_a?(Array) && !src['categories'].empty?
73+
doc.data['categories'] = src['categories']
74+
end
75+
if src['tags'] && src['tags'].is_a?(Array) && !src['tags'].empty?
76+
doc.data['tags'] = src['tags']
77+
end
78+
7079
doc.content = content[:content]
7180
site.collections['posts'].docs << doc
7281
end
@@ -76,7 +85,7 @@ def fetch_from_urls(site, src)
7685
puts "...fetching #{post['url']}"
7786
content = fetch_content_from_url(post['url'])
7887
content[:published] = parse_published_date(post['published_date'])
79-
create_document(site, src['name'], post['url'], content)
88+
create_document(site, src['name'], post['url'], content, src)
8089
end
8190
end
8291

_sass/_layout.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ body {
1919

2020
body.fixed-top-nav {
2121
// Add some padding for the nav-bar.
22-
padding-top: 56px;
22+
padding-top: 57px;
2323
}
2424

2525
body.sticky-bottom-footer {

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# this file uses prebuilt image in dockerhub
22
services:
33
jekyll:
4-
image: amirpourmand/al-folio:v0.14.7
4+
image: amirpourmand/al-folio:v0.15.0
55
build: .
66
# uncomment these if you are having this issue with the build:
77
# /usr/local/bundle/gems/jekyll-4.3.4/lib/jekyll/site.rb:509:in `initialize': Permission denied @ rb_sysopen - /srv/jekyll/.jekyll-cache/.gitignore (Errno::EACCES)

0 commit comments

Comments
 (0)