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.js
CHANGED
|
@@ -205,6 +205,9 @@ function validateUserConfig(input2) {
|
|
|
205
205
|
if (s.editUrlPattern !== void 0 && typeof s.editUrlPattern !== "string") {
|
|
206
206
|
throw new ConfigError("`site.editUrlPattern` must be a string URL template.");
|
|
207
207
|
}
|
|
208
|
+
if (s.headExtra !== void 0 && typeof s.headExtra !== "string") {
|
|
209
|
+
throw new ConfigError("`site.headExtra` must be a string of raw HTML.");
|
|
210
|
+
}
|
|
208
211
|
if (s.defaultTheme !== void 0 && !THEMES.includes(s.defaultTheme)) {
|
|
209
212
|
throw new ConfigError(`\`site.defaultTheme\` must be one of: ${THEMES.join(", ")}.`);
|
|
210
213
|
}
|
|
@@ -5371,6 +5374,7 @@ function renderShell(opts) {
|
|
|
5371
5374
|
${opts.site.baseUrl ? `<link rel="alternate" type="application/rss+xml" title="${escapeAttr2(opts.site.title)}" href="${escapeAttr2(join(opts.site.baseUrl, basePath + "/feed.xml"))}">` : ""}
|
|
5372
5375
|
<link rel="stylesheet" href="${escapeAttr2(assets)}assets/ovellum.css">
|
|
5373
5376
|
${searchHead}
|
|
5377
|
+
${opts.site.headExtra ?? ""}
|
|
5374
5378
|
<script>
|
|
5375
5379
|
(function () {
|
|
5376
5380
|
try {
|