Changed presentation of description
This commit is contained in:
parent
43b9cb70f0
commit
d247ef0c79
1 changed files with 4 additions and 4 deletions
|
|
@ -7,15 +7,15 @@ const formatExperience = (experience: ExperienceType) => {
|
|||
const workPeriod = `${formatDate(experience.startDate)} - ${
|
||||
experience.endDate ? formatDate(experience.endDate) : "present"
|
||||
}`;
|
||||
|
||||
const company = experience.url
|
||||
? `<a target="_blank" href="${experience.url}">${experience.name}</a>`
|
||||
: experience.name;
|
||||
const description = experience.description.split("\n").join("</p><p>");
|
||||
|
||||
return `<strong>${company}</strong>, <em>${experience.city}</em><br/>
|
||||
return `<header><strong>${company}</strong>, <em>${experience.city}</em><br/>
|
||||
<strong>${experience.jobTitle}</strong><br/>
|
||||
${workPeriod}
|
||||
<p>${experience.description}</p>`;
|
||||
<time>${workPeriod}</time></header>
|
||||
<p>${description}</p>`;
|
||||
};
|
||||
|
||||
const formatDate = (date: Date, locale: string | string[] = "en-GB"): string => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue