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