@moonwave99/goffre 0.1.4 → 0.1.5
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 +2 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -111,6 +111,7 @@ var DEFAULT_VIEWS_PATH = path.join(process.cwd(), "src", "views");
|
|
|
111
111
|
var DEFAULT_BUILD_PATH = path.join(process.cwd(), "dist");
|
|
112
112
|
var MAX_SLUG_LOG_LENGTH = 40;
|
|
113
113
|
var DEFAULT_BLOCK_SEPARATOR = "<!-- block -->";
|
|
114
|
+
var thisYear = (/* @__PURE__ */ new Date()).getFullYear();
|
|
114
115
|
function log(...args) {
|
|
115
116
|
console.log.apply(
|
|
116
117
|
null,
|
|
@@ -190,6 +191,7 @@ function renderPage({
|
|
|
190
191
|
{
|
|
191
192
|
...page,
|
|
192
193
|
sitemapLink,
|
|
194
|
+
thisYear,
|
|
193
195
|
layout: typeof page.layout === "undefined" ? "main" : page.layout,
|
|
194
196
|
content: page.content ? marked2.parse(page.content) : null,
|
|
195
197
|
blocks: getPageBlocks(
|