@gudhub/ssg-web-components-library 1.0.104 → 1.0.105
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
|
@@ -26,8 +26,6 @@ class BreadcrumbsComponent extends GHComponent {
|
|
|
26
26
|
|
|
27
27
|
this.items === null ? console.error(`Didn't find current route in config, current URL: ${currentUrl}`) : null;
|
|
28
28
|
|
|
29
|
-
console.log("this.items:", this.items);
|
|
30
|
-
|
|
31
29
|
if (this.items) {
|
|
32
30
|
super.render(html);
|
|
33
31
|
}
|
|
@@ -102,13 +102,13 @@ class MetaTag extends GHComponent {
|
|
|
102
102
|
let titleValue = item.fields.find(findedField => findedField.field_id == titleId).field_value;
|
|
103
103
|
let descriptionValue = item.fields.find(findedField => findedField.field_id == descriptionId).field_value;
|
|
104
104
|
let slugValue = item.fields.find(findedField => findedField.field_id == slugId).field_value;
|
|
105
|
-
let imageValue = (!slugValue.includes('/blog/') && !slugValue.includes('/service-areas/')) ? item.fields.find(findedField => findedField.field_id == imageUrl).field_value : false;
|
|
105
|
+
let imageValue = (!slugValue.includes('/blog/') && !slugValue.includes('/service-areas/') && !slugValue.includes('/courses/')) ? item.fields.find(findedField => findedField.field_id == imageUrl).field_value : false;
|
|
106
106
|
|
|
107
107
|
// value = isNaN(value) ? value : await this.getContent(`https://gudhub.com/userdata/${window.getConfig().chapters[chapter].app_id}/${value}.html`);
|
|
108
108
|
titleValue = isNaN(titleValue) ? titleValue : await this.getContent(`https://app.gudhub.com/userdata/${window.getConfig().chapters[chapter].app_id}/${titleValue}.html`);
|
|
109
109
|
descriptionValue = isNaN(descriptionValue) ? descriptionValue : await this.getContent(`https://app.gudhub.com/userdata/${window.getConfig().chapters[chapter].app_id}/${descriptionValue}.html`);
|
|
110
110
|
slugValue = isNaN(slugValue) ? slugValue : await this.getContent(`https://app.gudhub.com/userdata/${window.getConfig().chapters[chapter].app_id}/${slugValue}.html`);
|
|
111
|
-
imageValue = (!slugValue.includes('/blog/') && !slugValue.includes('/service-areas/')) ? isNaN(imageValue) ? imageValue : await this.getContent(`https://app.gudhub.com/userdata/${window.getConfig() .chapters[chapter].app_id}/${imageValue}.html`) : false;
|
|
111
|
+
imageValue = (!slugValue.includes('/blog/') && !slugValue.includes('/service-areas/') && !slugValue.includes('/courses/')) ? isNaN(imageValue) ? imageValue : await this.getContent(`https://app.gudhub.com/userdata/${window.getConfig() .chapters[chapter].app_id}/${imageValue}.html`) : false;
|
|
112
112
|
|
|
113
113
|
//TITLE
|
|
114
114
|
if ( !document.querySelector('title') ) {
|
|
@@ -140,7 +140,7 @@ class MetaTag extends GHComponent {
|
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
|
|
143
|
-
if ((!slugValue.includes('/blog/') && !slugValue.includes('/service-areas/'))) {
|
|
143
|
+
if ((!slugValue.includes('/blog/') && !slugValue.includes('/service-areas/') && !slugValue.includes('/courses/'))) {
|
|
144
144
|
if ( !document.querySelector('[name="twitter:image"]') ) {
|
|
145
145
|
const twitterMetaSiteImage = document.createElement('meta');
|
|
146
146
|
twitterMetaSiteImage.setAttribute('name', 'twitter:image');
|