@moonwave99/goffre 0.1.2 → 0.1.3
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.js +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -157,6 +157,7 @@ function renderPage({
|
|
|
157
157
|
buildPath,
|
|
158
158
|
maxSlugLogLength,
|
|
159
159
|
blockSeparator,
|
|
160
|
+
sitemapLink,
|
|
160
161
|
...page
|
|
161
162
|
}) {
|
|
162
163
|
return new Promise((resolve, reject) => {
|
|
@@ -179,6 +180,7 @@ function renderPage({
|
|
|
179
180
|
template,
|
|
180
181
|
{
|
|
181
182
|
...page,
|
|
183
|
+
sitemapLink,
|
|
182
184
|
layout: typeof page.layout === "undefined" ? "main" : page.layout,
|
|
183
185
|
content: page.content ? marked2.parse(page.content) : null,
|
|
184
186
|
blocks: getPageBlocks(
|
|
@@ -322,6 +324,7 @@ async function render({
|
|
|
322
324
|
buildPath,
|
|
323
325
|
app,
|
|
324
326
|
templates,
|
|
327
|
+
sitemapLink: sitemap.generate ? `${domain}/sitemap.xml` : "",
|
|
325
328
|
blockSeparator,
|
|
326
329
|
maxSlugLogLength: Math.min(
|
|
327
330
|
Math.max.call(null, ...pages.map((x2) => x2.slug.length)),
|