clean
This commit is contained in:
parent
3dd877ff73
commit
dd66069a7f
|
@ -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;
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue