This commit is contained in:
Talon Poole 2021-02-04 01:40:56 +00:00
parent 3dd877ff73
commit dd66069a7f

View file

@ -45,9 +45,7 @@ function head(file, title, options) {
}${
!options.canonical
? ""
: `<link rel="canonical" href="gemini://${
options.canonical
}/${file.replace(TOKENS_EXT, ".gmi")}">`
: `<link rel="canonical" href="${ options.canonical }}">`
}
<title>${title}</title>
</head>
@ -105,8 +103,3 @@ function line(
if (quote) return `<blockquote>${escape(quote)}</blockquote>`;
return `<p><br></p>`;
}
function omit(key, obj) {
const { [key]: omitted, ...rest } = obj;
return rest;
}