diff --git a/build/manifestPlugin.ts b/build/manifestPlugin.ts index 358f360..100ef0b 100644 --- a/build/manifestPlugin.ts +++ b/build/manifestPlugin.ts @@ -91,10 +91,15 @@ export const manifest = (): Plugin => ({ // that's honestly not really clean but it does exactly what i need if (!repo.private) { - html = html.replace( - 'id="links">', - `>Repo •`, - ); + const repoLink = `https://github.com/pihkaal/${project}`; + if (html.includes('id="links')) { + html = html.replace( + 'id="links">', + `>Repo •`, + ); + } else { + html = html += `
\nGithub repo`; + } } html = html