@mindful-web/marko-web 1.88.1 → 1.89.3
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 +5 -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 +1 -0
- package/components/page/layouts/website-section.marko.js +2 -2
- package/components/page/metadata/components/common.marko +5 -1
- package/components/page/metadata/components/common.marko.js +9 -3
- package/components/page/metadata/content.marko +13 -1
- package/components/page/metadata/content.marko.js +9 -3
- 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 +2 -1
- package/components/page/metadata/website-section.marko.js +2 -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.3/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.3/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.3/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.3/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.3/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.3/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.3/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.3/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.3/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.3/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.3/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.3/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 } = 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 />
|
|
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.3/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 } = input;
|
|
18
18
|
|
|
19
19
|
const { document } = out.global;
|
|
20
20
|
|
|
@@ -27,7 +27,8 @@ 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
|
|
31
32
|
}, out, __component, "2");
|
|
32
33
|
|
|
33
34
|
marko_dynamicTag(out, input.head, null, null, null, null, __component, "3");
|
|
@@ -55,7 +56,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
55
56
|
});
|
|
56
57
|
|
|
57
58
|
marko_template.meta = {
|
|
58
|
-
id: "/@mindful-web/marko-web$1.
|
|
59
|
+
id: "/@mindful-web/marko-web$1.89.3/components/page/layouts/default.marko",
|
|
59
60
|
tags: [
|
|
60
61
|
"../metadata/default.marko"
|
|
61
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.3/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.3/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.3/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.3/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.3/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.3/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.3/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.3/components/page/layouts/website-section.marko",
|
|
75
75
|
tags: [
|
|
76
76
|
"../metadata/website-section.marko",
|
|
77
77
|
"../../rss/website-section.marko"
|
|
@@ -10,16 +10,20 @@ $ const {
|
|
|
10
10
|
} = input;
|
|
11
11
|
$ const fallbackImage = config.fallbackImage();
|
|
12
12
|
$ const image = imageSrc || fallbackImage;
|
|
13
|
+
$ const robotsDirectives = config.robotsDirectives();
|
|
13
14
|
|
|
14
15
|
<!-- Standard Fields -->
|
|
15
16
|
<marko-web-page-title value=title />
|
|
16
17
|
<marko-web-page-description value=description />
|
|
17
18
|
<marko-web-page-rel-canonical path=canonicalPath url=canonicalUrl />
|
|
18
19
|
|
|
19
|
-
<!--
|
|
20
|
+
<!-- Robots Directives -->
|
|
20
21
|
<if(noIndex)>
|
|
21
22
|
<meta name="robots" content="noindex">
|
|
22
23
|
</if>
|
|
24
|
+
<else-if(robotsDirectives)>
|
|
25
|
+
<meta name="robots" content=robotsDirectives>
|
|
26
|
+
</else-if>
|
|
23
27
|
|
|
24
28
|
<!-- Name/Title (OpenGrah, and Schema.org respectively) -->
|
|
25
29
|
<if(title)>
|
|
@@ -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.3/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"),
|
|
@@ -33,6 +33,8 @@ function render(input, out, __component, component, state) {
|
|
|
33
33
|
|
|
34
34
|
const image = imageSrc || fallbackImage;
|
|
35
35
|
|
|
36
|
+
const robotsDirectives = config.robotsDirectives();
|
|
37
|
+
|
|
36
38
|
marko_web_page_title_tag({
|
|
37
39
|
concatWith: "|",
|
|
38
40
|
value: title
|
|
@@ -49,6 +51,10 @@ function render(input, out, __component, component, state) {
|
|
|
49
51
|
|
|
50
52
|
if (noIndex) {
|
|
51
53
|
out.w("<meta name=\"robots\" content=\"noindex\">");
|
|
54
|
+
} else if (robotsDirectives) {
|
|
55
|
+
out.w("<meta name=\"robots\"" +
|
|
56
|
+
marko_attr("content", robotsDirectives) +
|
|
57
|
+
">");
|
|
52
58
|
}
|
|
53
59
|
|
|
54
60
|
if (title) {
|
|
@@ -79,7 +85,7 @@ function render(input, out, __component, component, state) {
|
|
|
79
85
|
marko_attr("content", href) +
|
|
80
86
|
">");
|
|
81
87
|
}
|
|
82
|
-
}, out, __component, "
|
|
88
|
+
}, out, __component, "9");
|
|
83
89
|
|
|
84
90
|
out.w("<meta property=\"og:site_name\"" +
|
|
85
91
|
marko_attr("content", config.website("name")) +
|
|
@@ -107,7 +113,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
107
113
|
}, marko_component);
|
|
108
114
|
|
|
109
115
|
marko_template.meta = {
|
|
110
|
-
id: "/@mindful-web/marko-web$1.
|
|
116
|
+
id: "/@mindful-web/marko-web$1.89.3/components/page/metadata/components/common.marko",
|
|
111
117
|
component: "./common.marko",
|
|
112
118
|
tags: [
|
|
113
119
|
"../../title.marko",
|
|
@@ -101,7 +101,19 @@ $ 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"),
|
|
@@ -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.3/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,
|
|
@@ -225,7 +231,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
225
231
|
}, marko_component);
|
|
226
232
|
|
|
227
233
|
marko_template.meta = {
|
|
228
|
-
id: "/@mindful-web/marko-web$1.
|
|
234
|
+
id: "/@mindful-web/marko-web$1.89.3/components/page/metadata/content.marko",
|
|
229
235
|
component: "./content.marko",
|
|
230
236
|
tags: [
|
|
231
237
|
"./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.3/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.3/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.3/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.3/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.3/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.3/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.3/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.3/components/page/metadata/magazine-publication.marko",
|
|
74
74
|
component: "./magazine-publication.marko",
|
|
75
75
|
tags: [
|
|
76
76
|
"./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.3/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"),
|
|
@@ -83,7 +83,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
83
83
|
}, marko_component);
|
|
84
84
|
|
|
85
85
|
marko_template.meta = {
|
|
86
|
-
id: "/@mindful-web/marko-web$1.
|
|
86
|
+
id: "/@mindful-web/marko-web$1.89.3/components/page/metadata/website-section.marko",
|
|
87
87
|
component: "./website-section.marko",
|
|
88
88
|
tags: [
|
|
89
89
|
"./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.3/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.3/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.3/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.3/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.3/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.3/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.3/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.3/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.3/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.3/components/rss/website-section.marko"
|
|
46
46
|
};
|
package/config/core.js
CHANGED
|
@@ -25,6 +25,15 @@ class CoreConfig extends AbstractConfig {
|
|
|
25
25
|
return this.get('images.fallback');
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
+
/**
|
|
29
|
+
* Robots directives emitted on indexable pages. Notably `max-image-preview:large`, which
|
|
30
|
+
* opts out of Google's default `standard` (small) preview size. Set to a falsey value to
|
|
31
|
+
* omit the tag entirely.
|
|
32
|
+
*/
|
|
33
|
+
robotsDirectives() {
|
|
34
|
+
return this.get('seo.robotsDirectives', 'max-image-preview:large, max-snippet:-1, max-video-preview:-1');
|
|
35
|
+
}
|
|
36
|
+
|
|
28
37
|
loadMoreMountPoint() {
|
|
29
38
|
return this.get('loadMore.mountPoint', '/__load-more');
|
|
30
39
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mindful-web/marko-web",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.89.3",
|
|
4
4
|
"description": "Core Marko+Express components for Mindful Web websites",
|
|
5
5
|
"author": "Jacob Bare <jacob@parameter1.com>",
|
|
6
6
|
"main": "index.js",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"publishConfig": {
|
|
63
63
|
"access": "public"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "a49b1df4f2e71ac7e17d4399d4919f3a6c10b1b5"
|
|
66
66
|
}
|