Skip to content

Commit

Permalink
integrate into pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
HannesGitH committed Apr 11, 2024
1 parent c8ebb76 commit 84704a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions pdf/compiler/parse-cv-entries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,19 @@ const parseCVEntry = (entry: ExperienceEntry | EducationEntry | ProjectEntry) =>
}

if((entry as ExperienceEntry).pdfFileUrl) {
let fileUrl = (entry as ExperienceEntry).pdfFileUrl;
place = `{${place} \\href{${fileUrl}}{\\color{gray} cert \\ExternalLink }\\hfill}`;
let fileUrl = base_href+(entry as ExperienceEntry).pdfFileUrl;
place = `{${place} \\tiny (\\href{${fileUrl}}{\\color{gray} review \\ExternalLink})}`;
}
if((entry as EducationEntry).degreePdfFileUrl || (entry as EducationEntry).thesisPdfFileUrl) {
let { degreePdfFileUrl, thesisPdfFileUrl } = entry as EducationEntry;
if (degreePdfFileUrl && thesisPdfFileUrl) {
place = `{${place} \\href{${degreePdfFileUrl}}{\\color{gray} degree \\ExternalLink }\\hfill \\href{${thesisPdfFileUrl}}{\\color{gray} thesis \\ExternalLink }}`;
place = `{${place} \\tiny (\\href{${base_href}${degreePdfFileUrl}}{\\color{gray} certificate \\ExternalLink }, \\href{${base_href}${thesisPdfFileUrl}}{\\color{gray} thesis \\ExternalLink })}`;
}
else if (degreePdfFileUrl) {
place = `{${place} \\href{${degreePdfFileUrl}}{\\color{gray} degree \\ExternalLink }\\hfill}`;
place = `{${place} \\tiny (\\href{${base_href}${degreePdfFileUrl}}{\\color{gray} certificate \\ExternalLink }})}`;
}
else if (thesisPdfFileUrl) {
place = `{${place} \\href{${thesisPdfFileUrl}}{\\color{gray} thesis \\ExternalLink }\\hfill}`;
place = `{${place} \\tiny (\\href{${base_href}${thesisPdfFileUrl}}{\\color{gray} thesis \\ExternalLink }})}`;
}
}

Expand Down
2 changes: 1 addition & 1 deletion pdf/result

0 comments on commit 84704a6

Please sign in to comment.