@mel000000/weweb-dynamic-metadata 1.0.16 → 1.0.17
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/package.json
CHANGED
|
@@ -196,17 +196,10 @@ export async function processFiles() {
|
|
|
196
196
|
await fs.ensureDir(contentDir);
|
|
197
197
|
|
|
198
198
|
await fs.writeFile(
|
|
199
|
-
path.join(
|
|
200
|
-
generateReferenceHtml(id, metadata.title, relativeTemplatePath)
|
|
199
|
+
path.join(contentRootDir, 'index.html'),
|
|
200
|
+
generateReferenceHtml(id, metadata.title, relativeTemplatePath, routeName),
|
|
201
201
|
);
|
|
202
202
|
|
|
203
|
-
// Create a small metadata.js reference
|
|
204
|
-
const contentMetadataJsPath = path.join(contentRootDir, 'metadata.js');
|
|
205
|
-
const metadataReference = `// Reference to central metadata file
|
|
206
|
-
// This file points to the main metadata.js
|
|
207
|
-
// The actual metadata is loaded from /article/metadata.js`;
|
|
208
|
-
|
|
209
|
-
await fs.writeFile(contentMetadataJsPath, metadataReference, 'utf-8');
|
|
210
203
|
|
|
211
204
|
referencesCreated++;
|
|
212
205
|
} catch (error) {
|