Skip to content

Commit 5035772

Browse files
fix: reenable wordpress vigo
1 parent d3e0ae3 commit 5035772

213 files changed

Lines changed: 295 additions & 272 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

public/vigotech-generated.json

Lines changed: 32 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"members": {
1616
"agilevigo": {
1717
"name": "Agile Vigo",
18-
"logo": "https://vigotech.org/images/agile_vigo.jpg",
18+
"logo": "https://vigotech.org/images/groups/agile_vigo.jpg",
1919
"links": {
2020
"twitter": "https://twitter.com/agilevigo",
2121
"meetup": "https://www.meetup.com/es-ES/agile-vigo/",
@@ -39,7 +39,7 @@
3939
},
4040
"aindustriosa": {
4141
"name": "A Industriosa",
42-
"logo": "https://vigotech.org/images/aindustriosa.png",
42+
"logo": "https://vigotech.org/images/groups/aindustriosa.png",
4343
"links": {
4444
"web": "https://aindustriosa.org/",
4545
"twitter": "https://twitter.com/aindustriosa",
@@ -1223,7 +1223,7 @@
12231223
},
12241224
"blockchaingal": {
12251225
"name": "Blockchain.gal Vigo",
1226-
"logo": "https://vigotech.org/images/blockchaingal.png",
1226+
"logo": "https://vigotech.org/images/groups/blockchaingal.png",
12271227
"links": {
12281228
"web": "https://blockchain.gal/",
12291229
"twitter": "https://twitter.com/blockchain_gal",
@@ -1239,9 +1239,23 @@
12391239
"videoList": [],
12401240
"eventList": []
12411241
},
1242+
"cloudnativegalicia": {
1243+
"name": "Cloud Native Galicia",
1244+
"logo": "https://cloudnativegalicia.es/wp-content/uploads/2024/08/cncfgalicia4.jpg",
1245+
"links": {
1246+
"web": "https://cloudnativegalicia.es/",
1247+
"twitter": "https://x.com/cloudnativegal",
1248+
"linkedin": "https://www.linkedin.com/company/104357067",
1249+
"cncf": "https://community.cncf.io/cloud-native-galicia/"
1250+
},
1251+
"inactive": true,
1252+
"nextEvent": null,
1253+
"videoList": [],
1254+
"eventList": []
1255+
},
12421256
"craftersvigo": {
12431257
"name": "Crafters Vigo",
1244-
"logo": "https://vigotech.org/images/craftersVigo.png",
1258+
"logo": "https://vigotech.org/images/groups/craftersVigo.png",
12451259
"links": {
12461260
"twitter": "https://twitter.com/CraftersVigo",
12471261
"meetup": "https://www.meetup.com/craftersvigo/"
@@ -1261,10 +1275,9 @@
12611275
},
12621276
"galpon": {
12631277
"name": "GALPon",
1264-
"logo": "https://vigotech.org/images/galpon.png",
1278+
"logo": "https://vigotech.org/images/groups/galpon.png",
12651279
"links": {
1266-
"web": "https://www.galpon.org",
1267-
"maillist": "https://www.galpon.org/content/listas-correo-galpon"
1280+
"web": "https://www.galpon.org"
12681281
},
12691282
"events": {
12701283
"type": "json",
@@ -1276,7 +1289,7 @@
12761289
},
12771290
"galstech": {
12781291
"name": "GalsTech",
1279-
"logo": "https://vigotech.org/images/galstech.png",
1292+
"logo": "https://vigotech.org/images/groups/galstech.png",
12801293
"links": {
12811294
"meetup": "https://www.meetup.com/GalsTech/",
12821295
"twitter": "https://twitter.com/galstech_?lang=es"
@@ -1292,7 +1305,7 @@
12921305
},
12931306
"gdgvigo": {
12941307
"name": "GDG Vigo",
1295-
"logo": "https://vigotech.org/images/gdg_vigo.png",
1308+
"logo": "https://vigotech.org/images/groups/gdg_vigo.png",
12961309
"links": {
12971310
"twitter": "http://twitter.com/GDGVigo/",
12981311
"meetup": "https://www.meetup.com/es-ES/GDGVigo/?chapter_analytics_code=UA-73757047-1",
@@ -1387,19 +1400,17 @@
13871400
},
13881401
"joomlavigo": {
13891402
"name": "Grupo de Usuarios de Joomla de Vigo",
1390-
"logo": "https://vigotech.org/images/joomla_vigo.png",
1403+
"logo": "https://vigotech.org/images/groups/joomla_vigo.png",
13911404
"links": {
1392-
"web": "https://www.joomlavigo.es/",
1393-
"twitter": "https://twitter.com/JoomlaVigo",
1394-
"facebook": "https://www.facebook.com/JoomlaVigo/"
1405+
"web": "https://www.joomlavigo.es/"
13951406
},
13961407
"nextEvent": null,
13971408
"videoList": [],
13981409
"eventList": []
13991410
},
14001411
"phpvigo": {
14011412
"name": "PHPVigo",
1402-
"logo": "https://vigotech.org/images/php_vigo.jpg",
1413+
"logo": "https://vigotech.org/images/groups/php_vigo.jpg",
14031414
"links": {
14041415
"web": "http://phpvigo.com/",
14051416
"meetup": "https://www.meetup.com/es-ES/PHPVigo/",
@@ -2588,7 +2599,7 @@
25882599
},
25892600
"pythonvigo": {
25902601
"name": "PythonVigo",
2591-
"logo": "https://vigotech.org/images/python_vigo.png",
2602+
"logo": "https://vigotech.org/images/groups/python_vigo.png",
25922603
"links": {
25932604
"web": "https://www.python-vigo.es/",
25942605
"twitter": "https://twitter.com/python_vigo",
@@ -3696,7 +3707,7 @@
36963707
},
36973708
"seogalicia": {
36983709
"name": "Seo Galicia",
3699-
"logo": "https://vigotech.org/images/seogalicia.png",
3710+
"logo": "https://vigotech.org/images/groups/seogalicia.png",
37003711
"links": {
37013712
"facebook": "https://www.facebook.com/SEOGaliciaMeetup",
37023713
"meetup": "https://www.meetup.com/es/SEO-Galicia/",
@@ -3713,7 +3724,7 @@
37133724
},
37143725
"sysadmingalicia": {
37153726
"name": "SysAdmin Galicia",
3716-
"logo": "https://vigotech.org/images/sysadmin_galicia.jpg",
3727+
"logo": "https://vigotech.org/images/groups/sysadmin_galicia.jpg",
37173728
"links": {
37183729
"meetup": "https://www.meetup.com/es-ES/Sysadmin-Galicia/",
37193730
"twitter": "https://twitter.com/sysadmingalicia/"
@@ -3735,7 +3746,7 @@
37353746
},
37363747
"uxgalicia": {
37373748
"name": "UX Galicia",
3738-
"logo": "https://vigotech.org/images/ux_gal.jpg",
3749+
"logo": "https://vigotech.org/images/groups/ux_gal.jpg",
37393750
"links": {
37403751
"web": "http://www.uxgalicia.com/",
37413752
"meetup": "https://www.meetup.com/es-ES/Experiencia-de-Usuario-Meetup/",
@@ -3752,7 +3763,7 @@
37523763
},
37533764
"vigoadg": {
37543765
"name": "Vigo Android Developer Group",
3755-
"logo": "https://vigotech.org/images/vigoadg.jpg",
3766+
"logo": "https://vigotech.org/images/groups/vigoadg.jpg",
37563767
"links": {
37573768
"twitter": "https://twitter.com/VigoADG",
37583769
"meetup": "https://www.meetup.com/Vigo-Android-Developer-Group/"
@@ -3768,7 +3779,7 @@
37683779
},
37693780
"vigojug": {
37703781
"name": "VigoJUG",
3771-
"logo": "https://vigotech.org/images/vigojug.jpg",
3782+
"logo": "https://vigotech.org/images/groups/vigojug.jpg",
37723783
"links": {
37733784
"web": "http://www.vigojug.org/",
37743785
"github": "https://github.com/vigojug/",
@@ -4692,25 +4703,9 @@
46924703
],
46934704
"eventList": []
46944705
},
4695-
"wppontevedra": {
4696-
"name": "WordpressPontevedra",
4697-
"logo": "https://vigotech.org/images/wordpress-pontevedra.png",
4698-
"links": {
4699-
"meetup": "https://www.meetup.com/es-ES/Pontevedra-WordPress-Meetup/",
4700-
"twitter": "https://twitter.com/wppontevedra"
4701-
},
4702-
"events": {
4703-
"type": "meetup",
4704-
"meetupid": "Pontevedra-WordPress-Meetup"
4705-
},
4706-
"inactive": true,
4707-
"nextEvent": null,
4708-
"videoList": [],
4709-
"eventList": []
4710-
},
47114706
"vigowordpress": {
47124707
"name": "VigoWordpress",
4713-
"logo": "https://vigotech.org/images/vigowordpress.png",
4708+
"logo": "https://vigotech.org/images/groups/vigowordpress.png",
47144709
"links": {
47154710
"mail": "wpmeetupvigo@gmail.com",
47164711
"meetup": "https://www.meetup.com/es-ES/Vigo-WordPress-Meetup/",
@@ -4727,7 +4722,6 @@
47274722
"channel_id": "UCuipENHgKAhr1VgK59156Tw"
47284723
}
47294724
],
4730-
"inactive": true,
47314725
"nextEvent": {
47324726
"sourceId": "Vigo-WordPress-Meetup-314167142",
47334727
"title": "Marketing4eCommerce: Cómo crear unha comunidade masiva e internacional con WP",

public/vigotech.json

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"members": {
1616
"agilevigo": {
1717
"name": "Agile Vigo",
18-
"logo": "https://vigotech.org/images/agile_vigo.jpg",
18+
"logo": "https://vigotech.org/images/groups/agile_vigo.jpg",
1919
"links": {
2020
"twitter": "https://twitter.com/agilevigo",
2121
"meetup": "https://www.meetup.com/es-ES/agile-vigo/",
@@ -31,7 +31,7 @@
3131
},
3232
"aindustriosa": {
3333
"name": "A Industriosa",
34-
"logo": "https://vigotech.org/images/aindustriosa.png",
34+
"logo": "https://vigotech.org/images/groups/aindustriosa.png",
3535
"links": {
3636
"web": "https://aindustriosa.org/",
3737
"twitter": "https://twitter.com/aindustriosa",
@@ -51,7 +51,7 @@
5151
},
5252
"blockchaingal": {
5353
"name": "Blockchain.gal Vigo",
54-
"logo": "https://vigotech.org/images/blockchaingal.png",
54+
"logo": "https://vigotech.org/images/groups/blockchaingal.png",
5555
"links": {
5656
"web": "https://blockchain.gal/",
5757
"twitter": "https://twitter.com/blockchain_gal",
@@ -72,11 +72,12 @@
7272
"twitter": "https://x.com/cloudnativegal",
7373
"linkedin": "https://www.linkedin.com/company/104357067",
7474
"cncf": "https://community.cncf.io/cloud-native-galicia/"
75-
}
75+
},
76+
"inactive": true
7677
},
7778
"craftersvigo": {
7879
"name": "Crafters Vigo",
79-
"logo": "https://vigotech.org/images/craftersVigo.png",
80+
"logo": "https://vigotech.org/images/groups/craftersVigo.png",
8081
"links": {
8182
"twitter": "https://twitter.com/CraftersVigo",
8283
"meetup": "https://www.meetup.com/craftersvigo/"
@@ -88,7 +89,7 @@
8889
},
8990
"galpon": {
9091
"name": "GALPon",
91-
"logo": "https://vigotech.org/images/galpon.png",
92+
"logo": "https://vigotech.org/images/groups/galpon.png",
9293
"links": {
9394
"web": "https://www.galpon.org"
9495
},
@@ -99,7 +100,7 @@
99100
},
100101
"galstech": {
101102
"name": "GalsTech",
102-
"logo": "https://vigotech.org/images/galstech.png",
103+
"logo": "https://vigotech.org/images/groups/galstech.png",
103104
"links": {
104105
"meetup": "https://www.meetup.com/GalsTech/",
105106
"twitter": "https://twitter.com/galstech_?lang=es"
@@ -112,7 +113,7 @@
112113
},
113114
"gdgvigo": {
114115
"name": "GDG Vigo",
115-
"logo": "https://vigotech.org/images/gdg_vigo.png",
116+
"logo": "https://vigotech.org/images/groups/gdg_vigo.png",
116117
"links": {
117118
"twitter": "http://twitter.com/GDGVigo/",
118119
"meetup": "https://www.meetup.com/es-ES/GDGVigo/?chapter_analytics_code=UA-73757047-1",
@@ -134,14 +135,14 @@
134135
},
135136
"joomlavigo": {
136137
"name": "Grupo de Usuarios de Joomla de Vigo",
137-
"logo": "https://vigotech.org/images/joomla_vigo.png",
138+
"logo": "https://vigotech.org/images/groups/joomla_vigo.png",
138139
"links": {
139140
"web": "https://www.joomlavigo.es/"
140141
}
141142
},
142143
"phpvigo": {
143144
"name": "PHPVigo",
144-
"logo": "https://vigotech.org/images/php_vigo.jpg",
145+
"logo": "https://vigotech.org/images/groups/php_vigo.jpg",
145146
"links": {
146147
"web": "http://phpvigo.com/",
147148
"meetup": "https://www.meetup.com/es-ES/PHPVigo/",
@@ -169,7 +170,7 @@
169170
},
170171
"pythonvigo": {
171172
"name": "PythonVigo",
172-
"logo": "https://vigotech.org/images/python_vigo.png",
173+
"logo": "https://vigotech.org/images/groups/python_vigo.png",
173174
"links": {
174175
"web": "https://www.python-vigo.es/",
175176
"twitter": "https://twitter.com/python_vigo",
@@ -189,7 +190,7 @@
189190
},
190191
"seogalicia": {
191192
"name": "Seo Galicia",
192-
"logo": "https://vigotech.org/images/seogalicia.png",
193+
"logo": "https://vigotech.org/images/groups/seogalicia.png",
193194
"links": {
194195
"facebook": "https://www.facebook.com/SEOGaliciaMeetup",
195196
"meetup": "https://www.meetup.com/es/SEO-Galicia/",
@@ -203,7 +204,7 @@
203204
},
204205
"sysadmingalicia": {
205206
"name": "SysAdmin Galicia",
206-
"logo": "https://vigotech.org/images/sysadmin_galicia.jpg",
207+
"logo": "https://vigotech.org/images/groups/sysadmin_galicia.jpg",
207208
"links": {
208209
"meetup": "https://www.meetup.com/es-ES/Sysadmin-Galicia/",
209210
"twitter": "https://twitter.com/sysadmingalicia/"
@@ -222,7 +223,7 @@
222223
},
223224
"uxgalicia": {
224225
"name": "UX Galicia",
225-
"logo": "https://vigotech.org/images/ux_gal.jpg",
226+
"logo": "https://vigotech.org/images/groups/ux_gal.jpg",
226227
"links": {
227228
"web": "http://www.uxgalicia.com/",
228229
"meetup": "https://www.meetup.com/es-ES/Experiencia-de-Usuario-Meetup/",
@@ -236,7 +237,7 @@
236237
},
237238
"vigoadg": {
238239
"name": "Vigo Android Developer Group",
239-
"logo": "https://vigotech.org/images/vigoadg.jpg",
240+
"logo": "https://vigotech.org/images/groups/vigoadg.jpg",
240241
"links": {
241242
"twitter": "https://twitter.com/VigoADG",
242243
"meetup": "https://www.meetup.com/Vigo-Android-Developer-Group/"
@@ -249,7 +250,7 @@
249250
},
250251
"vigojug": {
251252
"name": "VigoJUG",
252-
"logo": "https://vigotech.org/images/vigojug.jpg",
253+
"logo": "https://vigotech.org/images/groups/vigojug.jpg",
253254
"links": {
254255
"web": "http://www.vigojug.org/",
255256
"github": "https://github.com/vigojug/",
@@ -278,7 +279,7 @@
278279
},
279280
"vigowordpress": {
280281
"name": "VigoWordpress",
281-
"logo": "https://vigotech.org/images/vigowordpress.png",
282+
"logo": "https://vigotech.org/images/groups/vigowordpress.png",
282283
"links": {
283284
"mail": "wpmeetupvigo@gmail.com",
284285
"meetup": "https://www.meetup.com/es-ES/Vigo-WordPress-Meetup/",

scripts/generate-vigotech-json.mjs

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,28 @@ const slugify = (value) =>
106106
.replace(/[^a-z0-9]+/g, '-')
107107
.replace(/(^-|-$)/g, '')
108108

109+
const toLocalGroupLogo = (logo) => {
110+
if (!logo) {
111+
return null
112+
}
113+
114+
if (logo.startsWith('/images/groups/')) {
115+
return logo
116+
}
117+
118+
const fromGroupsUrl = logo.match(/\/images\/groups\/([^/?#]+)$/i)?.[1]
119+
if (fromGroupsUrl) {
120+
return `/images/groups/${fromGroupsUrl}`
121+
}
122+
123+
const fromUrl = logo.match(/\/images\/([^/?#]+)$/i)?.[1]
124+
if (fromUrl) {
125+
return `/images/groups/${fromUrl}`
126+
}
127+
128+
return logo
129+
}
130+
109131
const ensureDirectory = async (directoryPath) => {
110132
await mkdir(directoryPath, { recursive: true })
111133
}
@@ -179,7 +201,8 @@ const buildFrontmatterDocument = (data) => `---\n${formatFrontmatterValue(data)}
179201
const getGroupName = (groupId, member) =>
180202
typeof member?.name === 'string' && member.name.trim() ? member.name : groupId
181203

182-
const getGroupLogo = (member) => (typeof member?.logo === 'string' ? member.logo : null)
204+
const getGroupLogo = (member) =>
205+
typeof member?.logo === 'string' ? toLocalGroupLogo(member.logo) : null
183206

184207
const toContentSlug = (value, fallback) => {
185208
const slug = slugify(value)

0 commit comments

Comments
 (0)