blob: 9853c320dbac8e2ccf810844d1a1ed527dee611e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
{
latex,
data,
lib,
...
}: let
languages = data.languages;
sortByProficiency = lib.sort (lang1: lang2: let
prof1 = lang1.proficiency;
prof2 = lang2.proficiency;
in
(prof2 == "basic")
|| (prof1 == "native")
|| (prof2 == "intermediate" && prof1 == "fluent"));
in {
title = "Languages";
priority = 20;
extraHeader = ''
\usepackage{emoji}
\setemojifont{NotoColorEmoji.ttf}[Path=./fonts/]
'';
content = with latex;
for (sortByProficiency languages) (lang:
with lang;
moderncv.cvline "${name} \\emoji{${icon.shortcode}}" proficiency);
}
|