File tree 3 files changed +43
-10
lines changed
3 files changed +43
-10
lines changed Original file line number Diff line number Diff line change 1
- " Adams " :
1
+ " adams " :
2
2
- firstname : ["Edwin", "E.", "E. P.", "Edwin Plimpton"]
3
3
url : https://en.wikipedia.org/wiki/Edwin_Plimpton_Adams
4
4
5
- " Podolsky " :
5
+ " podolsky " :
6
6
- firstname : ["Boris", "B.", "B. Y.", "Boris Yakovlevich"]
7
7
url : https://en.wikipedia.org/wiki/Boris_Podolsky
8
8
9
- " Rosen " :
9
+ " rosen " :
10
10
- firstname : ["Nathan", "N."]
11
11
url : https://en.wikipedia.org/wiki/Nathan_Rosen
12
12
13
- " Bach " :
13
+ " bach " :
14
14
- firstname : ["Johann Sebastian", "J. S."]
15
15
url : https://en.wikipedia.org/wiki/Johann_Sebastian_Bach
16
16
17
17
- firstname : ["Carl Philipp Emanuel", "C. P. E."]
18
18
url : https://en.wikipedia.org/wiki/Carl_Philipp_Emanuel_Bach
19
19
20
- " Przibram " :
20
+ " przibram " :
21
21
- firstname : ["Karl"]
22
22
url : https://link.springer.com/article/10.1007/s00016-019-00242-z
23
23
24
- " Schrödinger " :
24
+ " schrodinger " :
25
25
- firstname : ["Erwin"]
26
26
url : https://en.wikipedia.org/wiki/Erwin_Schr%C3%B6dinger
27
27
28
- " Lorentz " :
28
+ " lorentz " :
29
29
- firstname : ["Hendrik Antoon"]
30
30
url : https://en.wikipedia.org/wiki/Hendrik_Lorentz
31
31
32
- " Planck " :
32
+ " planck " :
33
33
- firstname : ["Max"]
34
34
url : https://en.wikipedia.org/wiki/Max_Planck
Original file line number Diff line number Diff line change 52
52
{%- endif -%}
53
53
{%- endif -%}
54
54
{%- assign coauthor_url = nil -%}
55
- {%- if site.data.coauthors[author_last_name] -%}
56
- {%- for coauthor in site.data.coauthors[author_last_name] -%}
55
+ {%- assign clean_last_name = author_last_name | downcase | remove_accents -%}
56
+ {%- if site.data.coauthors[clean_last_name] -%}
57
+ {%- for coauthor in site.data.coauthors[clean_last_name] -%}
57
58
{%- if coauthor.firstname contains author.first -%}
58
59
{%- assign coauthor_url = coauthor.url -%}
59
60
{%- break -%}
Original file line number Diff line number Diff line change
1
+ # based on https://distresssignal.org/busting-css-cache-with-jekyll-md5-hash
2
+ # https://gist.github.com/BryanSchuetz/2ee8c115096d7dd98f294362f6a667db
3
+ module Jekyll
4
+ module CleanString
5
+ class RemoveAccents
6
+ require 'i18n'
7
+ I18n . config . available_locales = :en
8
+
9
+ attr_accessor :string
10
+
11
+ def initialize ( string :)
12
+ self . string = string
13
+ end
14
+
15
+ def digest!
16
+ remove_accents
17
+ end
18
+
19
+ private
20
+
21
+ def remove_accents
22
+ I18n . transliterate ( string )
23
+ end
24
+ end
25
+
26
+ def remove_accents ( string )
27
+ RemoveAccents . new ( string : string ) . digest!
28
+ end
29
+ end
30
+ end
31
+
32
+ Liquid ::Template . register_filter ( Jekyll ::CleanString )
You can’t perform that action at this time.
0 commit comments