@quintype/framework 7.6.0-ttl.0 → 7.6.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.
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [7.6.1](https://github.com/quintype/quintype-node-framework/compare/v7.6.0...v7.6.1) (2022-06-30)
|
|
6
|
+
|
|
7
|
+
## [7.6.0](https://github.com/quintype/quintype-node-framework/compare/v7.4.0...v7.6.0) (2022-06-28)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* **api-client:** Implement wildcard_to_api_host ⚡ ([#308](https://github.com/quintype/quintype-node-framework/issues/308)) ([9c585f4](https://github.com/quintype/quintype-node-framework/commit/9c585f49fece1cba7271a47465633ca9c40034ff))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* **amp:** Incorrect localised content displayed across publishers ([#304](https://github.com/quintype/quintype-node-framework/issues/304)) ([c47d929](https://github.com/quintype/quintype-node-framework/commit/c47d9294c022100a95ba5ca1d755dd4731b6b580))
|
|
18
|
+
|
|
5
19
|
## [7.5.0](https://github.com/quintype/quintype-node-framework/compare/v7.4.1...v7.5.0) (2022-06-27)
|
|
6
20
|
|
|
7
21
|
|
package/package.json
CHANGED
|
@@ -2,6 +2,7 @@ const urlLib = require("url");
|
|
|
2
2
|
const ejs = require("ejs");
|
|
3
3
|
const fs = require("fs");
|
|
4
4
|
const path = require("path");
|
|
5
|
+
const set = require("lodash/set");
|
|
5
6
|
|
|
6
7
|
const staticPageTemplateStr = fs.readFileSync(path.join(__dirname, "../views/static-page.ejs"), { encoding: "utf-8" });
|
|
7
8
|
const staticPageTemplate = ejs.compile(staticPageTemplateStr);
|
|
@@ -29,7 +30,9 @@ function writeStaticPageResponse(res, url, page, result, { config, renderLayout,
|
|
|
29
30
|
});
|
|
30
31
|
|
|
31
32
|
const seoInstance = typeof seo === "function" ? seo(config) : seo;
|
|
32
|
-
|
|
33
|
+
|
|
34
|
+
const seoTags =
|
|
35
|
+
seoInstance && seoInstance.getMetaTags(config, page.type, set(result, ["data", "page"], page), { url });
|
|
33
36
|
|
|
34
37
|
res.status(page["status-code"] || 200);
|
|
35
38
|
|