@kaathewise/ssg 0.8.0 → 0.8.1

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.
Files changed (2) hide show
  1. package/dist/render.js +2 -2
  2. package/package.json +1 -1
package/dist/render.js CHANGED
@@ -53,8 +53,8 @@ export async function renderAll(modulePath, pagesDir) {
53
53
  function substituteParams(inputPath, params) {
54
54
  let path = inputPath;
55
55
  for (const [key, value] of Object.entries(params)) {
56
- const single = `:${key}`;
57
- const multiple = `*${key}`;
56
+ const single = `[${key}]`;
57
+ const multiple = `[...${key}]`;
58
58
  if (typeof value === "string") {
59
59
  path = path.replace(single, value);
60
60
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kaathewise/ssg",
3
3
  "description": "JSX static site generator",
4
- "version": "0.8.0",
4
+ "version": "0.8.1",
5
5
  "license": "MPL-2.0",
6
6
  "author": "Andrej Kolčin",
7
7
  "type": "module",