@gudhub/ssg-web-components-library 1.0.102 → 1.0.103

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gudhub/ssg-web-components-library",
3
- "version": "1.0.102",
3
+ "version": "1.0.103",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -99,18 +99,16 @@ class MetaTag extends GHComponent {
99
99
  // fieldId = fieldId.field_id;
100
100
  // value = item.fields.find(findedField => findedField.field_id == fieldId).field_value;
101
101
 
102
-
103
102
  let titleValue = item.fields.find(findedField => findedField.field_id == titleId).field_value;
104
103
  let descriptionValue = item.fields.find(findedField => findedField.field_id == descriptionId).field_value;
105
104
  let slugValue = item.fields.find(findedField => findedField.field_id == slugId).field_value;
106
- let imageValue = !slugValue.includes('/blog/') ? item.fields.find(findedField => findedField.field_id == imageUrl).field_value : false;
105
+ let imageValue = (!slugValue.includes('/blog/') && !slugValue.includes('/service-areas/')) ? item.fields.find(findedField => findedField.field_id == imageUrl).field_value : false;
107
106
 
108
107
  // value = isNaN(value) ? value : await this.getContent(`https://gudhub.com/userdata/${window.getConfig().chapters[chapter].app_id}/${value}.html`);
109
108
  titleValue = isNaN(titleValue) ? titleValue : await this.getContent(`https://app.gudhub.com/userdata/${window.getConfig().chapters[chapter].app_id}/${titleValue}.html`);
110
109
  descriptionValue = isNaN(descriptionValue) ? descriptionValue : await this.getContent(`https://app.gudhub.com/userdata/${window.getConfig().chapters[chapter].app_id}/${descriptionValue}.html`);
111
110
  slugValue = isNaN(slugValue) ? slugValue : await this.getContent(`https://app.gudhub.com/userdata/${window.getConfig().chapters[chapter].app_id}/${slugValue}.html`);
112
- imageValue = !slugValue.includes('/blog/') ? isNaN(imageValue) ? imageValue : await this.getContent(`https://app.gudhub.com/userdata/${window.getConfig() .chapters[chapter].app_id}/${imageValue}.html`) : false;
113
-
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;
114
112
 
115
113
  //TITLE
116
114
  if ( !document.querySelector('title') ) {
@@ -142,7 +140,7 @@ class MetaTag extends GHComponent {
142
140
  }
143
141
 
144
142
 
145
- if (!slugValue.includes('/blog/')) {
143
+ if ((!slugValue.includes('/blog/') && !slugValue.includes('/service-areas/'))) {
146
144
  if ( !document.querySelector('[name="twitter:image"]') ) {
147
145
  const twitterMetaSiteImage = document.createElement('meta');
148
146
  twitterMetaSiteImage.setAttribute('name', 'twitter:image');