@mindful-web/marko-web 1.88.1 → 1.89.4
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/components/bot-scores.marko.js +2 -2
- package/components/browser-component/script.marko.js +2 -2
- package/components/browser-component.marko.js +2 -2
- package/components/deferred-stylesheet.marko.js +2 -2
- package/components/document/components/body-wrapper.marko.js +2 -2
- package/components/document/components/error.marko.js +2 -2
- package/components/document/components/live-reload.marko.js +2 -2
- package/components/document/components/polyfill.marko.js +2 -2
- package/components/document/components/styles.marko.js +2 -2
- package/components/document/container.marko.js +2 -2
- package/components/document/index.marko.js +2 -2
- package/components/element/array.marko.js +2 -2
- package/components/element/audio.marko.js +2 -2
- package/components/element/block.marko.js +2 -2
- package/components/element/clear.marko.js +2 -2
- package/components/element/components/image.marko.js +2 -2
- package/components/element/components/text.marko.js +2 -2
- package/components/element/content/address1.marko.js +2 -2
- package/components/element/content/address2.marko.js +2 -2
- package/components/element/content/audio.marko.js +2 -2
- package/components/element/content/authors.marko.js +2 -2
- package/components/element/content/body.marko.js +2 -2
- package/components/element/content/byline.marko.js +2 -2
- package/components/element/content/city-state-zip.marko.js +2 -2
- package/components/element/content/contributors.marko.js +2 -2
- package/components/element/content/country.marko.js +2 -2
- package/components/element/content/embed-code.marko.js +2 -2
- package/components/element/content/end-date.marko.js +2 -2
- package/components/element/content/ends.marko.js +2 -2
- package/components/element/content/fax.marko.js +2 -2
- package/components/element/content/images.marko.js +2 -2
- package/components/element/content/mobile.marko.js +2 -2
- package/components/element/content/name.marko.js +2 -2
- package/components/element/content/phone.marko.js +2 -2
- package/components/element/content/photographers.marko.js +2 -2
- package/components/element/content/public-email.marko.js +2 -2
- package/components/element/content/published.marko.js +2 -2
- package/components/element/content/short-name.marko.js +2 -2
- package/components/element/content/sidebar-stubs.marko.js +2 -2
- package/components/element/content/sidebars.marko.js +2 -2
- package/components/element/content/source.marko.js +2 -2
- package/components/element/content/speakers.marko.js +2 -2
- package/components/element/content/sponsors.marko.js +2 -2
- package/components/element/content/start-date.marko.js +2 -2
- package/components/element/content/starts.marko.js +2 -2
- package/components/element/content/teaser.marko.js +2 -2
- package/components/element/content/title.marko.js +2 -2
- package/components/element/content/tollfree.marko.js +2 -2
- package/components/element/content/transcript.marko.js +2 -2
- package/components/element/content/website-deck.marko.js +2 -2
- package/components/element/content/website.marko.js +2 -2
- package/components/element/date.marko.js +2 -2
- package/components/element/image/caption.marko.js +2 -2
- package/components/element/image/credit.marko.js +2 -2
- package/components/element/image/display-name.marko.js +2 -2
- package/components/element/image/slider.marko.js +2 -2
- package/components/element/img.marko.js +2 -2
- package/components/element/index.marko.js +2 -2
- package/components/element/link.marko.js +2 -2
- package/components/element/magazine-issue/description.marko.js +2 -2
- package/components/element/magazine-issue/digital-edition-url.marko.js +2 -2
- package/components/element/magazine-issue/name.marko.js +2 -2
- package/components/element/magazine-issue/pdf-url.marko.js +2 -2
- package/components/element/magazine-publication/cancel-url.marko.js +2 -2
- package/components/element/magazine-publication/change-address-url.marko.js +2 -2
- package/components/element/magazine-publication/description.marko.js +2 -2
- package/components/element/magazine-publication/einquiry-url.marko.js +2 -2
- package/components/element/magazine-publication/name.marko.js +2 -2
- package/components/element/magazine-publication/renewal-url.marko.js +2 -2
- package/components/element/magazine-publication/reprints-url.marko.js +2 -2
- package/components/element/magazine-publication/subscribe-url.marko.js +2 -2
- package/components/element/obj-array.marko.js +2 -2
- package/components/element/obj-audio.marko.js +2 -2
- package/components/element/obj-date.marko.js +2 -2
- package/components/element/obj-nodes.marko.js +2 -2
- package/components/element/obj-text.marko.js +2 -2
- package/components/element/obj.marko.js +2 -2
- package/components/element/picture.marko.js +2 -2
- package/components/element/text.marko.js +2 -2
- package/components/element/website-section/description.marko.js +2 -2
- package/components/element/website-section/hierarchy.marko.js +2 -2
- package/components/element/website-section/name.marko.js +2 -2
- package/components/font/google.marko.js +2 -2
- package/components/font/link.marko.js +2 -2
- package/components/font/typekit.marko.js +2 -2
- package/components/load-more/index.marko.js +2 -2
- package/components/load-more/trigger.marko.js +2 -2
- package/components/node/body.marko.js +2 -2
- package/components/node/element.marko.js +2 -2
- package/components/node/footer.marko.js +2 -2
- package/components/node/header.marko.js +2 -2
- package/components/node/image-inner-wrapper.marko.js +2 -2
- package/components/node/image-wrapper.marko.js +2 -2
- package/components/node/image.marko.js +2 -2
- package/components/node/index.marko.js +2 -2
- package/components/node-list/body.marko.js +2 -2
- package/components/node-list/element.marko.js +2 -2
- package/components/node-list/footer.marko.js +2 -2
- package/components/node-list/header.marko.js +2 -2
- package/components/node-list/index.marko.js +2 -2
- package/components/node-list/node.marko.js +2 -2
- package/components/node-list/nodes.marko.js +2 -2
- package/components/page/container.marko.js +2 -2
- package/components/page/description.marko.js +2 -2
- package/components/page/image.marko.js +2 -2
- package/components/page/layouts/content.marko.js +2 -2
- package/components/page/layouts/default.marko +2 -2
- package/components/page/layouts/default.marko.js +6 -4
- package/components/page/layouts/dynamic-page.marko.js +2 -2
- package/components/page/layouts/magazine-issue.marko.js +2 -2
- package/components/page/layouts/magazine-publication.marko.js +2 -2
- package/components/page/layouts/marko.json +2 -0
- package/components/page/layouts/website-section.marko.js +2 -2
- package/components/page/metadata/components/common.marko +14 -3
- package/components/page/metadata/components/common.marko.js +9 -4
- package/components/page/metadata/content.marko +16 -2
- package/components/page/metadata/content.marko.js +12 -4
- package/components/page/metadata/default.marko.js +2 -2
- package/components/page/metadata/dynamic-page.marko.js +2 -2
- package/components/page/metadata/magazine-issue.marko.js +2 -2
- package/components/page/metadata/magazine-publication.marko.js +2 -2
- package/components/page/metadata/marko.json +9 -3
- package/components/page/metadata/website-section.marko +2 -0
- package/components/page/metadata/website-section.marko.js +4 -2
- package/components/page/rel-canonical.marko.js +2 -2
- package/components/page/title.marko.js +2 -2
- package/components/page/wrapper.marko.js +2 -2
- package/components/resolve/page.marko.js +2 -2
- package/components/rss/website-section.marko.js +2 -2
- package/config/core.js +9 -0
- package/package.json +2 -2
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web$1.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web$1.89.4/components/node-list/node.marko",
|
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
7
|
module_objectPath_module = require("@mindful-web/object-path"),
|
|
8
8
|
objectPath_module = module_objectPath_module.default || module_objectPath_module,
|
|
@@ -42,7 +42,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
42
42
|
});
|
|
43
43
|
|
|
44
44
|
marko_template.meta = {
|
|
45
|
-
id: "/@mindful-web/marko-web$1.
|
|
45
|
+
id: "/@mindful-web/marko-web$1.89.4/components/node-list/node.marko",
|
|
46
46
|
tags: [
|
|
47
47
|
"./element.marko"
|
|
48
48
|
]
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web$1.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web$1.89.4/components/node-list/nodes.marko",
|
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
7
|
module_objectPath_module = require("@mindful-web/object-path"),
|
|
8
8
|
objectPath_module = module_objectPath_module.default || module_objectPath_module,
|
|
@@ -118,7 +118,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
118
118
|
});
|
|
119
119
|
|
|
120
120
|
marko_template.meta = {
|
|
121
|
-
id: "/@mindful-web/marko-web$1.
|
|
121
|
+
id: "/@mindful-web/marko-web$1.89.4/components/node-list/nodes.marko",
|
|
122
122
|
tags: [
|
|
123
123
|
"./node.marko",
|
|
124
124
|
"./element.marko"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web$1.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web$1.89.4/components/page/container.marko",
|
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
7
|
module_objectPath_module = require("@mindful-web/object-path"),
|
|
8
8
|
objectPath_module = module_objectPath_module.default || module_objectPath_module,
|
|
@@ -42,5 +42,5 @@ marko_template._ = marko_renderer(render, {
|
|
|
42
42
|
});
|
|
43
43
|
|
|
44
44
|
marko_template.meta = {
|
|
45
|
-
id: "/@mindful-web/marko-web$1.
|
|
45
|
+
id: "/@mindful-web/marko-web$1.89.4/components/page/container.marko"
|
|
46
46
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web$1.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web$1.89.4/components/page/description.marko",
|
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
7
|
marko_attr = require("marko/dist/runtime/html/helpers/attr");
|
|
8
8
|
|
|
@@ -22,5 +22,5 @@ marko_template._ = marko_renderer(render, {
|
|
|
22
22
|
});
|
|
23
23
|
|
|
24
24
|
marko_template.meta = {
|
|
25
|
-
id: "/@mindful-web/marko-web$1.
|
|
25
|
+
id: "/@mindful-web/marko-web$1.89.4/components/page/description.marko"
|
|
26
26
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web$1.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web$1.89.4/components/page/image.marko",
|
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
7
|
module_image_module = require("@mindful-web/image"),
|
|
8
8
|
image_module = module_image_module.default || module_image_module,
|
|
@@ -111,7 +111,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
111
111
|
});
|
|
112
112
|
|
|
113
113
|
marko_template.meta = {
|
|
114
|
-
id: "/@mindful-web/marko-web$1.
|
|
114
|
+
id: "/@mindful-web/marko-web$1.89.4/components/page/image.marko",
|
|
115
115
|
tags: [
|
|
116
116
|
"../element/image/display-name.marko",
|
|
117
117
|
"../element/img.marko",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web$1.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web$1.89.4/components/page/layouts/content.marko",
|
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
7
|
marko_web_content_page_metadata_template = require("../metadata/content.marko"),
|
|
8
8
|
marko_loadTag = require("marko/dist/runtime/helpers/load-tag"),
|
|
@@ -57,7 +57,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
57
57
|
});
|
|
58
58
|
|
|
59
59
|
marko_template.meta = {
|
|
60
|
-
id: "/@mindful-web/marko-web$1.
|
|
60
|
+
id: "/@mindful-web/marko-web$1.89.4/components/page/layouts/content.marko",
|
|
61
61
|
tags: [
|
|
62
62
|
"../metadata/content.marko"
|
|
63
63
|
]
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
$ const type = input.type || "default";
|
|
2
|
-
$ const { title, description } = input;
|
|
2
|
+
$ const { title, description, noIndex, robots } = input;
|
|
3
3
|
$ const { document } = out.global;
|
|
4
4
|
|
|
5
5
|
<${document}
|
|
@@ -8,7 +8,7 @@ $ const { document } = out.global;
|
|
|
8
8
|
foot=input.foot
|
|
9
9
|
>
|
|
10
10
|
<@head>
|
|
11
|
-
<marko-web-default-page-metadata title=title description=description />
|
|
11
|
+
<marko-web-default-page-metadata title=title description=description no-index=noIndex robots=robots />
|
|
12
12
|
<${input.head} />
|
|
13
13
|
</@head>
|
|
14
14
|
<!-- Note: camelcased vars due to nest input of dynamic document. perhaps a marko bug -->
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web$1.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web$1.89.4/components/page/layouts/default.marko",
|
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
7
|
marko_web_default_page_metadata_template = require("../metadata/default.marko"),
|
|
8
8
|
marko_loadTag = require("marko/dist/runtime/helpers/load-tag"),
|
|
@@ -14,7 +14,7 @@ function render(input, out, __component, component, state) {
|
|
|
14
14
|
|
|
15
15
|
const type = input.type || "default";
|
|
16
16
|
|
|
17
|
-
const { title, description } = input;
|
|
17
|
+
const { title, description, noIndex, robots } = input;
|
|
18
18
|
|
|
19
19
|
const { document } = out.global;
|
|
20
20
|
|
|
@@ -27,7 +27,9 @@ function render(input, out, __component, component, state) {
|
|
|
27
27
|
renderBody: function(out) {
|
|
28
28
|
marko_web_default_page_metadata_tag({
|
|
29
29
|
title: title,
|
|
30
|
-
description: description
|
|
30
|
+
description: description,
|
|
31
|
+
noIndex: noIndex,
|
|
32
|
+
robots: robots
|
|
31
33
|
}, out, __component, "2");
|
|
32
34
|
|
|
33
35
|
marko_dynamicTag(out, input.head, null, null, null, null, __component, "3");
|
|
@@ -55,7 +57,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
55
57
|
});
|
|
56
58
|
|
|
57
59
|
marko_template.meta = {
|
|
58
|
-
id: "/@mindful-web/marko-web$1.
|
|
60
|
+
id: "/@mindful-web/marko-web$1.89.4/components/page/layouts/default.marko",
|
|
59
61
|
tags: [
|
|
60
62
|
"../metadata/default.marko"
|
|
61
63
|
]
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web$1.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web$1.89.4/components/page/layouts/dynamic-page.marko",
|
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
7
|
marko_web_dynamic_page_metadata_template = require("../metadata/dynamic-page.marko"),
|
|
8
8
|
marko_loadTag = require("marko/dist/runtime/helpers/load-tag"),
|
|
@@ -53,7 +53,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
53
53
|
});
|
|
54
54
|
|
|
55
55
|
marko_template.meta = {
|
|
56
|
-
id: "/@mindful-web/marko-web$1.
|
|
56
|
+
id: "/@mindful-web/marko-web$1.89.4/components/page/layouts/dynamic-page.marko",
|
|
57
57
|
tags: [
|
|
58
58
|
"../metadata/dynamic-page.marko"
|
|
59
59
|
]
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web$1.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web$1.89.4/components/page/layouts/magazine-issue.marko",
|
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
7
|
marko_web_magazine_issue_page_metadata_template = require("../metadata/magazine-issue.marko"),
|
|
8
8
|
marko_loadTag = require("marko/dist/runtime/helpers/load-tag"),
|
|
@@ -53,7 +53,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
53
53
|
});
|
|
54
54
|
|
|
55
55
|
marko_template.meta = {
|
|
56
|
-
id: "/@mindful-web/marko-web$1.
|
|
56
|
+
id: "/@mindful-web/marko-web$1.89.4/components/page/layouts/magazine-issue.marko",
|
|
57
57
|
tags: [
|
|
58
58
|
"../metadata/magazine-issue.marko"
|
|
59
59
|
]
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web$1.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web$1.89.4/components/page/layouts/magazine-publication.marko",
|
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
7
|
marko_web_magazine_publication_page_metadata_template = require("../metadata/magazine-publication.marko"),
|
|
8
8
|
marko_loadTag = require("marko/dist/runtime/helpers/load-tag"),
|
|
@@ -53,7 +53,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
53
53
|
});
|
|
54
54
|
|
|
55
55
|
marko_template.meta = {
|
|
56
|
-
id: "/@mindful-web/marko-web$1.
|
|
56
|
+
id: "/@mindful-web/marko-web$1.89.4/components/page/layouts/magazine-publication.marko",
|
|
57
57
|
tags: [
|
|
58
58
|
"../metadata/magazine-publication.marko"
|
|
59
59
|
]
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web$1.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web$1.89.4/components/page/layouts/website-section.marko",
|
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
7
|
module_objectPath_module = require("@mindful-web/object-path"),
|
|
8
8
|
objectPath_module = module_objectPath_module.default || module_objectPath_module,
|
|
@@ -71,7 +71,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
71
71
|
});
|
|
72
72
|
|
|
73
73
|
marko_template.meta = {
|
|
74
|
-
id: "/@mindful-web/marko-web$1.
|
|
74
|
+
id: "/@mindful-web/marko-web$1.89.4/components/page/layouts/website-section.marko",
|
|
75
75
|
tags: [
|
|
76
76
|
"../metadata/website-section.marko",
|
|
77
77
|
"../../rss/website-section.marko"
|
|
@@ -7,18 +7,29 @@ $ const {
|
|
|
7
7
|
imageDimensions,
|
|
8
8
|
description,
|
|
9
9
|
noIndex,
|
|
10
|
+
robots: robotsOverride,
|
|
10
11
|
} = input;
|
|
11
12
|
$ const fallbackImage = config.fallbackImage();
|
|
12
13
|
$ const image = imageSrc || fallbackImage;
|
|
13
14
|
|
|
15
|
+
<!--
|
|
16
|
+
Robots content, highest precedence first:
|
|
17
|
+
1. an explicit `robots` string from the caller (e.g. "noindex, nofollow")
|
|
18
|
+
2. "noindex" when the page is flagged as non-indexable
|
|
19
|
+
3. the site's indexable-page directives (max-image-preview:large, ...)
|
|
20
|
+
A falsey result omits the tag entirely. Exactly one tag is ever emitted, so
|
|
21
|
+
callers must pass `no-index`/`robots` here rather than writing their own.
|
|
22
|
+
-->
|
|
23
|
+
$ const robots = robotsOverride || (noIndex ? "noindex" : config.robotsDirectives());
|
|
24
|
+
|
|
14
25
|
<!-- Standard Fields -->
|
|
15
26
|
<marko-web-page-title value=title />
|
|
16
27
|
<marko-web-page-description value=description />
|
|
17
28
|
<marko-web-page-rel-canonical path=canonicalPath url=canonicalUrl />
|
|
18
29
|
|
|
19
|
-
<!--
|
|
20
|
-
<if(
|
|
21
|
-
<meta name="robots" content=
|
|
30
|
+
<!-- Robots Directives -->
|
|
31
|
+
<if(robots)>
|
|
32
|
+
<meta name="robots" content=robots>
|
|
22
33
|
</if>
|
|
23
34
|
|
|
24
35
|
<!-- Name/Title (OpenGrah, and Schema.org respectively) -->
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web$1.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web$1.89.4/components/page/metadata/components/common.marko",
|
|
6
6
|
marko_component = require("./common.marko"),
|
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
8
8
|
marko_web_page_title_template = require("../../title.marko"),
|
|
@@ -27,12 +27,15 @@ function render(input, out, __component, component, state) {
|
|
|
27
27
|
imageDimensions,
|
|
28
28
|
description,
|
|
29
29
|
noIndex,
|
|
30
|
+
robots: robotsOverride,
|
|
30
31
|
} = input;
|
|
31
32
|
|
|
32
33
|
const fallbackImage = config.fallbackImage();
|
|
33
34
|
|
|
34
35
|
const image = imageSrc || fallbackImage;
|
|
35
36
|
|
|
37
|
+
const robots = robotsOverride || (noIndex ? "noindex" : config.robotsDirectives());
|
|
38
|
+
|
|
36
39
|
marko_web_page_title_tag({
|
|
37
40
|
concatWith: "|",
|
|
38
41
|
value: title
|
|
@@ -47,8 +50,10 @@ function render(input, out, __component, component, state) {
|
|
|
47
50
|
url: canonicalUrl
|
|
48
51
|
}, out, __component, "2");
|
|
49
52
|
|
|
50
|
-
if (
|
|
51
|
-
out.w("<meta name=\"robots\"
|
|
53
|
+
if (robots) {
|
|
54
|
+
out.w("<meta name=\"robots\"" +
|
|
55
|
+
marko_attr("content", robots) +
|
|
56
|
+
">");
|
|
52
57
|
}
|
|
53
58
|
|
|
54
59
|
if (title) {
|
|
@@ -107,7 +112,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
107
112
|
}, marko_component);
|
|
108
113
|
|
|
109
114
|
marko_template.meta = {
|
|
110
|
-
id: "/@mindful-web/marko-web$1.
|
|
115
|
+
id: "/@mindful-web/marko-web$1.89.4/components/page/metadata/components/common.marko",
|
|
111
116
|
component: "./common.marko",
|
|
112
117
|
tags: [
|
|
113
118
|
"../../title.marko",
|
|
@@ -101,14 +101,28 @@ $ const contentGatingHandler = isFunction(globalContentGatingHandler) ? globalCo
|
|
|
101
101
|
|
|
102
102
|
<if(id)>
|
|
103
103
|
<marko-web-query|{ node }| name="content" params={ id, queryFragment }>
|
|
104
|
-
|
|
104
|
+
<!--
|
|
105
|
+
Read the imgix `w`/`h` back off the built src (see the metadata.image query above) so the
|
|
106
|
+
og:image dimensions always match the image actually served. Parse via URL, not
|
|
107
|
+
URLSearchParams directly: the latter treats the whole href as a query string and folds the
|
|
108
|
+
origin+path into the first param's name.
|
|
109
|
+
-->
|
|
110
|
+
$ const urlParams = (() => {
|
|
111
|
+
try {
|
|
112
|
+
return new URL(get(node, "metadata.image.src")).searchParams;
|
|
113
|
+
} catch (e) {
|
|
114
|
+
return new URLSearchParams();
|
|
115
|
+
}
|
|
116
|
+
})();
|
|
105
117
|
$ const metadata = {
|
|
106
118
|
type: node.type,
|
|
107
119
|
title: get(node, "metadata.title"),
|
|
108
120
|
description: get(node, "metadata.description"),
|
|
109
121
|
canonicalPath: get(node, "siteContext.path"),
|
|
110
122
|
canonicalUrl: get(node, "siteContext.canonicalUrl"),
|
|
111
|
-
|
|
123
|
+
// `no-index` forces non-indexable (e.g. print views); it never makes an excluded page indexable.
|
|
124
|
+
noIndex: Boolean(input.noIndex) || get(node, "siteContext.noIndex") || config.website("id") !== get(node, "primarySite.id"),
|
|
125
|
+
robots: input.robots,
|
|
112
126
|
imageSrc: get(node, "metadata.image.src"),
|
|
113
127
|
imageDimensions: {
|
|
114
128
|
height: urlParams.get('h'),
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web$1.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web$1.89.4/components/page/metadata/content.marko",
|
|
6
6
|
marko_component = require("./content.marko"),
|
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
8
8
|
module_gql = require("graphql-tag"),
|
|
@@ -144,7 +144,13 @@ ${processedFragment}
|
|
|
144
144
|
}
|
|
145
145
|
},
|
|
146
146
|
renderBody: function(out, { node }) {
|
|
147
|
-
const urlParams =
|
|
147
|
+
const urlParams = (() => {
|
|
148
|
+
try {
|
|
149
|
+
return new URL(get(node, "metadata.image.src")).searchParams;
|
|
150
|
+
} catch (e) {
|
|
151
|
+
return new URLSearchParams();
|
|
152
|
+
}
|
|
153
|
+
})();
|
|
148
154
|
|
|
149
155
|
const metadata = {
|
|
150
156
|
type: node.type,
|
|
@@ -152,7 +158,9 @@ ${processedFragment}
|
|
|
152
158
|
description: get(node, "metadata.description"),
|
|
153
159
|
canonicalPath: get(node, "siteContext.path"),
|
|
154
160
|
canonicalUrl: get(node, "siteContext.canonicalUrl"),
|
|
155
|
-
|
|
161
|
+
// `no-index` forces non-indexable (e.g. print views); it never makes an excluded page indexable.
|
|
162
|
+
noIndex: Boolean(input.noIndex) || get(node, "siteContext.noIndex") || config.website("id") !== get(node, "primarySite.id"),
|
|
163
|
+
robots: input.robots,
|
|
156
164
|
imageSrc: get(node, "metadata.image.src"),
|
|
157
165
|
imageDimensions: {
|
|
158
166
|
height: urlParams.get('h'),
|
|
@@ -225,7 +233,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
225
233
|
}, marko_component);
|
|
226
234
|
|
|
227
235
|
marko_template.meta = {
|
|
228
|
-
id: "/@mindful-web/marko-web$1.
|
|
236
|
+
id: "/@mindful-web/marko-web$1.89.4/components/page/metadata/content.marko",
|
|
229
237
|
component: "./content.marko",
|
|
230
238
|
tags: [
|
|
231
239
|
"./components/common.marko",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web$1.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web$1.89.4/components/page/metadata/default.marko",
|
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
7
|
common_template = require("./components/common.marko"),
|
|
8
8
|
marko_loadTag = require("marko/dist/runtime/helpers/load-tag"),
|
|
@@ -22,7 +22,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
22
22
|
});
|
|
23
23
|
|
|
24
24
|
marko_template.meta = {
|
|
25
|
-
id: "/@mindful-web/marko-web$1.
|
|
25
|
+
id: "/@mindful-web/marko-web$1.89.4/components/page/metadata/default.marko",
|
|
26
26
|
tags: [
|
|
27
27
|
"./components/common.marko"
|
|
28
28
|
]
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web$1.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web$1.89.4/components/page/metadata/dynamic-page.marko",
|
|
6
6
|
marko_component = require("./dynamic-page.marko"),
|
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
8
8
|
module_gql = require("graphql-tag"),
|
|
@@ -75,7 +75,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
75
75
|
}, marko_component);
|
|
76
76
|
|
|
77
77
|
marko_template.meta = {
|
|
78
|
-
id: "/@mindful-web/marko-web$1.
|
|
78
|
+
id: "/@mindful-web/marko-web$1.89.4/components/page/metadata/dynamic-page.marko",
|
|
79
79
|
component: "./dynamic-page.marko",
|
|
80
80
|
tags: [
|
|
81
81
|
"./components/common.marko",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web$1.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web$1.89.4/components/page/metadata/magazine-issue.marko",
|
|
6
6
|
marko_component = require("./magazine-issue.marko"),
|
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
8
8
|
module_gql = require("graphql-tag"),
|
|
@@ -74,7 +74,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
74
74
|
}, marko_component);
|
|
75
75
|
|
|
76
76
|
marko_template.meta = {
|
|
77
|
-
id: "/@mindful-web/marko-web$1.
|
|
77
|
+
id: "/@mindful-web/marko-web$1.89.4/components/page/metadata/magazine-issue.marko",
|
|
78
78
|
component: "./magazine-issue.marko",
|
|
79
79
|
tags: [
|
|
80
80
|
"./components/common.marko",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web$1.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web$1.89.4/components/page/metadata/magazine-publication.marko",
|
|
6
6
|
marko_component = require("./magazine-publication.marko"),
|
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
8
8
|
module_gql = require("graphql-tag"),
|
|
@@ -70,7 +70,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
70
70
|
}, marko_component);
|
|
71
71
|
|
|
72
72
|
marko_template.meta = {
|
|
73
|
-
id: "/@mindful-web/marko-web$1.
|
|
73
|
+
id: "/@mindful-web/marko-web$1.89.4/components/page/metadata/magazine-publication.marko",
|
|
74
74
|
component: "./magazine-publication.marko",
|
|
75
75
|
tags: [
|
|
76
76
|
"./components/common.marko",
|
|
@@ -5,17 +5,23 @@
|
|
|
5
5
|
"@description": "string",
|
|
6
6
|
"@canonical-path": "string",
|
|
7
7
|
"@canonical-url": "string",
|
|
8
|
-
"@image-src": "string"
|
|
8
|
+
"@image-src": "string",
|
|
9
|
+
"@no-index": "boolean",
|
|
10
|
+
"@robots": "string"
|
|
9
11
|
},
|
|
10
12
|
"<marko-web-content-page-metadata>": {
|
|
11
13
|
"template": "./content.marko",
|
|
12
14
|
"@id": "number",
|
|
13
15
|
"@structured-data-query-fragment": "string",
|
|
14
|
-
"@build-structured-data": "function"
|
|
16
|
+
"@build-structured-data": "function",
|
|
17
|
+
"@no-index": "boolean",
|
|
18
|
+
"@robots": "string"
|
|
15
19
|
},
|
|
16
20
|
"<marko-web-website-section-page-metadata>": {
|
|
17
21
|
"template": "./website-section.marko",
|
|
18
|
-
"@alias": "string"
|
|
22
|
+
"@alias": "string",
|
|
23
|
+
"@no-index": "boolean",
|
|
24
|
+
"@robots": "string"
|
|
19
25
|
},
|
|
20
26
|
"<marko-web-dynamic-page-metadata>": {
|
|
21
27
|
"template": "./dynamic-page.marko",
|
|
@@ -35,6 +35,8 @@ fragment WebsiteSectionPageMetadataFragment on WebsiteSection {
|
|
|
35
35
|
width: get(node, "logo.cropRectangle.width"),
|
|
36
36
|
height: get(node, "logo.cropRectangle.height")
|
|
37
37
|
},
|
|
38
|
+
noIndex: input.noIndex,
|
|
39
|
+
robots: input.robots,
|
|
38
40
|
};
|
|
39
41
|
<common ...metadata />
|
|
40
42
|
<meta property="og:type" content="website" />
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web$1.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web$1.89.4/components/page/metadata/website-section.marko",
|
|
6
6
|
marko_component = require("./website-section.marko"),
|
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
8
8
|
module_gql = require("graphql-tag"),
|
|
@@ -66,6 +66,8 @@ fragment WebsiteSectionPageMetadataFragment on WebsiteSection {
|
|
|
66
66
|
width: get(node, "logo.cropRectangle.width"),
|
|
67
67
|
height: get(node, "logo.cropRectangle.height")
|
|
68
68
|
},
|
|
69
|
+
noIndex: input.noIndex,
|
|
70
|
+
robots: input.robots,
|
|
69
71
|
};
|
|
70
72
|
|
|
71
73
|
common_tag(metadata, out, __component, "1");
|
|
@@ -83,7 +85,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
83
85
|
}, marko_component);
|
|
84
86
|
|
|
85
87
|
marko_template.meta = {
|
|
86
|
-
id: "/@mindful-web/marko-web$1.
|
|
88
|
+
id: "/@mindful-web/marko-web$1.89.4/components/page/metadata/website-section.marko",
|
|
87
89
|
component: "./website-section.marko",
|
|
88
90
|
tags: [
|
|
89
91
|
"./components/common.marko",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web$1.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web$1.89.4/components/page/rel-canonical.marko",
|
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
7
|
module_utils_module = require("@mindful-web/utils"),
|
|
8
8
|
utils_module = module_utils_module.default || module_utils_module,
|
|
@@ -38,5 +38,5 @@ marko_template._ = marko_renderer(render, {
|
|
|
38
38
|
});
|
|
39
39
|
|
|
40
40
|
marko_template.meta = {
|
|
41
|
-
id: "/@mindful-web/marko-web$1.
|
|
41
|
+
id: "/@mindful-web/marko-web$1.89.4/components/page/rel-canonical.marko"
|
|
42
42
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web$1.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web$1.89.4/components/page/title.marko",
|
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
7
|
module_utils_module = require("@mindful-web/utils"),
|
|
8
8
|
utils_module = module_utils_module.default || module_utils_module,
|
|
@@ -42,5 +42,5 @@ marko_template._ = marko_renderer(render, {
|
|
|
42
42
|
});
|
|
43
43
|
|
|
44
44
|
marko_template.meta = {
|
|
45
|
-
id: "/@mindful-web/marko-web$1.
|
|
45
|
+
id: "/@mindful-web/marko-web$1.89.4/components/page/title.marko"
|
|
46
46
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web$1.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web$1.89.4/components/page/wrapper.marko",
|
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
7
|
module_objectPath_module = require("@mindful-web/object-path"),
|
|
8
8
|
objectPath_module = module_objectPath_module.default || module_objectPath_module,
|
|
@@ -56,7 +56,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
56
56
|
});
|
|
57
57
|
|
|
58
58
|
marko_template.meta = {
|
|
59
|
-
id: "/@mindful-web/marko-web$1.
|
|
59
|
+
id: "/@mindful-web/marko-web$1.89.4/components/page/wrapper.marko",
|
|
60
60
|
tags: [
|
|
61
61
|
"../element/index.marko"
|
|
62
62
|
]
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web$1.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web$1.89.4/components/resolve/page.marko",
|
|
6
6
|
marko_component = require("./page.marko"),
|
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
8
8
|
module_utils_module = require("@mindful-web/utils"),
|
|
@@ -41,7 +41,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
41
41
|
}, marko_component);
|
|
42
42
|
|
|
43
43
|
marko_template.meta = {
|
|
44
|
-
id: "/@mindful-web/marko-web$1.
|
|
44
|
+
id: "/@mindful-web/marko-web$1.89.4/components/resolve/page.marko",
|
|
45
45
|
component: "./page.marko",
|
|
46
46
|
tags: [
|
|
47
47
|
"@mindful-web/marko-core/components/resolve.marko"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web$1.
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web$1.89.4/components/rss/website-section.marko",
|
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
7
|
module_url_module = require("url"),
|
|
8
8
|
url_module = module_url_module.default || module_url_module,
|
|
@@ -42,5 +42,5 @@ marko_template._ = marko_renderer(render, {
|
|
|
42
42
|
});
|
|
43
43
|
|
|
44
44
|
marko_template.meta = {
|
|
45
|
-
id: "/@mindful-web/marko-web$1.
|
|
45
|
+
id: "/@mindful-web/marko-web$1.89.4/components/rss/website-section.marko"
|
|
46
46
|
};
|