@rr0/cms 0.3.23 → 0.3.25

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.
@@ -27,7 +27,7 @@ export async function getTimeFiles() {
27
27
  describe("Build", () => {
28
28
  console.time("ssg");
29
29
  const args = {
30
- contents: ["test/people/a/Aristote/*.html"],
30
+ contents: ["test/**/*.html"],
31
31
  force: "true"
32
32
  };
33
33
  const cliContents = args.contents;
@@ -54,7 +54,7 @@ export class PeopleHtmlRenderer {
54
54
  titles.push(occupationMsg(gender));
55
55
  }
56
56
  }
57
- const text = content || people.lastAndFirstName;
57
+ const text = content || people.lastAndFirstName || people.title;
58
58
  const doc = context.file.document;
59
59
  const link = doc.createElement("a");
60
60
  link.innerHTML = text;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@rr0/cms",
3
3
  "type": "module",
4
4
  "author": "Jérôme Beau <rr0@rr0.org> (https://rr0.org)",
5
- "version": "0.3.23",
5
+ "version": "0.3.25",
6
6
  "description": "RR0 Content Management System (CMS)",
7
7
  "exports": "./dist/index.js",
8
8
  "types": "./dist/index.d.ts",
@@ -23,14 +23,14 @@
23
23
  "preview": "vite preview --host",
24
24
  "build": "rm -Rf dist && tsc --project tsconfig.prod.json",
25
25
  "prepublishOnly": "npm run build",
26
- "test": "testscript",
26
+ "test": "testscripnpt",
27
27
  "test-one": "rm -Rf out && tsx src/CMSGenerator.test.ts",
28
28
  "test-ci": "rm -Rf out && testscript"
29
29
  },
30
30
  "dependencies": {
31
31
  "@javarome/fileutil": "^0.3.7",
32
32
  "@rr0/common": "^1.1.3",
33
- "@rr0/data": "^0.3.25",
33
+ "@rr0/data": "^0.3.26",
34
34
  "@rr0/lang": "^0.1.12",
35
35
  "@rr0/place": "^0.5.3",
36
36
  "@rr0/time": "^0.11.0",