${content
- .map(element => {
- if (PageContent.isTyped(element)) {
- if (element.type === "a") {
- return `
${element.text} `;
- }
- if (element.type === "video") {
- return `
`;
- }
- throw new Error("Unhandled type.");
- }
- return `
${element}
`;
- })
+ .map(element =>
+ PageContent.isTyped(element)
+ ? PageContent.parseTypedContent(element)
+ : `
${element}
`
+ )
.join("\n")}
`)
diff --git a/src/page/footer/footer.html.ts b/src/page/footer/footer.html.ts
index c06bf50..2e8a768 100644
--- a/src/page/footer/footer.html.ts
+++ b/src/page/footer/footer.html.ts
@@ -1,9 +1,9 @@
import { Footer } from "../../model/portfolio";
-import { html, url } from "../../model/misc";
+import { html } from "../../model/misc";
+import emailIcon from "../../static/icons/at.svg";
+import cvIcon from "../../static/icons/cv.svg";
import "./footer.scss";
-import cvIcon from "../../static/icons/cv.svg";
-import emailIcon from "../../static/icons/at.svg";
export const generate = ({
title,
@@ -11,9 +11,7 @@ export const generate = ({
cv,
cvName,
lastEditName,
- lastEdit,
- githubLinkName,
- githubLink
+ lastEdit
}: Footer): html => `