ovellum 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +4 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -228,6 +228,9 @@ function validateUserConfig(input2) {
|
|
|
228
228
|
if (s.editUrlPattern !== void 0 && typeof s.editUrlPattern !== "string") {
|
|
229
229
|
throw new ConfigError("`site.editUrlPattern` must be a string URL template.");
|
|
230
230
|
}
|
|
231
|
+
if (s.headExtra !== void 0 && typeof s.headExtra !== "string") {
|
|
232
|
+
throw new ConfigError("`site.headExtra` must be a string of raw HTML.");
|
|
233
|
+
}
|
|
231
234
|
if (s.defaultTheme !== void 0 && !THEMES.includes(s.defaultTheme)) {
|
|
232
235
|
throw new ConfigError(`\`site.defaultTheme\` must be one of: ${THEMES.join(", ")}.`);
|
|
233
236
|
}
|
|
@@ -5395,6 +5398,7 @@ function renderShell(opts) {
|
|
|
5395
5398
|
${opts.site.baseUrl ? `<link rel="alternate" type="application/rss+xml" title="${escapeAttr2(opts.site.title)}" href="${escapeAttr2(join(opts.site.baseUrl, basePath + "/feed.xml"))}">` : ""}
|
|
5396
5399
|
<link rel="stylesheet" href="${escapeAttr2(assets)}assets/ovellum.css">
|
|
5397
5400
|
${searchHead}
|
|
5401
|
+
${opts.site.headExtra ?? ""}
|
|
5398
5402
|
<script>
|
|
5399
5403
|
(function () {
|
|
5400
5404
|
try {
|