Add minor changes

This commit is contained in:
Schmelczer András 2020-01-02 15:37:34 +01:00
parent 7f18e75647
commit 41d4665e49
14 changed files with 37 additions and 29 deletions

View file

@ -28,12 +28,7 @@ export const generate = (
`
: ""
}
${
link
? `
<a href="${link}" target="_blank">${link}</a>`
: ""
}
${link ? PageContent.parseTypedContent(link) : ""}
</div>
</section>
`;

View file

@ -14,7 +14,7 @@ export class PageTimeline extends PageElement {
const elements = timeline.map(
e => new PageTimelineElement(e, showMore, showLess)
);
root.append(...elements.map(e => e.getElement()));
elements.map(e => e.getElement()).forEach(e => root.appendChild(e));
super(elements);
this.setElement(root);
}