Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
ea2fd6d
Merge pull request #17 from bitlogic/dev
yolit-bitlogic Sep 1, 2021
717dac1
Merge pull request #21 from bitlogic/dev
julsh21 Sep 13, 2021
e2cbf96
Merge pull request #23 from bitlogic/dev
julsh21 Sep 17, 2021
7b623d4
Update gatsby-config.js
benjacanas Sep 27, 2021
3291183
Merge pull request #26 from bitlogic/dev
marino-martin Nov 12, 2021
d68a51d
Merge pull request #29 from bitlogic/dev
julsh21 Jan 12, 2022
5d36442
Merge pull request #37 from bitlogic/dev
marino-martin Jan 17, 2022
c2a9729
Merge pull request #39 from bitlogic/dev
benjacanas Jan 17, 2022
270ae3f
Merge pull request #43 from bitlogic/dev
yolit-bitlogic Jan 17, 2022
8111de0
Merge pull request #45 from bitlogic/dev
julsh21 Jan 17, 2022
254d0a4
Merge pull request #55 from bitlogic/dev
marino-martin Jan 21, 2022
f162b3f
Merge pull request #60 from bitlogic/dev
yolit-bitlogic Jan 28, 2022
75dd56f
Merge pull request #62 from bitlogic/dev
yolit-bitlogic Jan 28, 2022
2460f21
Merge pull request #64 from bitlogic/dev
yolit-bitlogic Jan 28, 2022
2c58e1e
Merge pull request #66 from bitlogic/dev
drina-bitlogic Jan 31, 2022
5d5e149
Merge pull request #103 from bitlogic/dev
marino-martin Mar 22, 2022
9f98294
Merge pull request #105 from bitlogic/dev
marino-martin Mar 22, 2022
e6111b9
Merge pull request #106 from bitlogic/dev
marino-martin Mar 22, 2022
2a61452
Merge pull request #109 from bitlogic/dev
marino-martin Mar 23, 2022
7fdf4ee
Merge pull request #113 from bitlogic/dev
marino-martin Mar 25, 2022
c8a2f12
Merge pull request #114 from bitlogic/dev
marino-martin Mar 25, 2022
786d7a8
Merge pull request #121 from bitlogic/dev
marino-martin Mar 30, 2022
48e4a3d
Merge pull request #127 from bitlogic/dev
marino-martin Mar 31, 2022
43d2368
Merge pull request #139 from bitlogic/dev
marino-martin Apr 11, 2022
e8267e3
Merge pull request #145 from bitlogic/dev
marino-martin Apr 11, 2022
d136660
Merge pull request #157 from bitlogic/dev
marino-martin Apr 13, 2022
8d985a1
Merge pull request #159 from bitlogic/dev
marino-martin Apr 13, 2022
47a69c7
Merge pull request #169 from bitlogic/dev
marino-martin Apr 20, 2022
10f0a16
Merge pull request #172 from bitlogic/dev
marino-martin Apr 20, 2022
44fa812
Merge pull request #183 from bitlogic/dev
marino-martin Apr 21, 2022
3f0e3ba
Merge pull request #190 from bitlogic/dev
marino-martin Apr 22, 2022
497c20a
Merge pull request #193 from bitlogic/dev
marino-martin Apr 22, 2022
7e1f362
Merge pull request #195 from bitlogic/dev
marino-martin Apr 26, 2022
4dbad07
Merge pull request #197 from bitlogic/dev
marino-martin Apr 26, 2022
4092fad
Merge pull request #199 from bitlogic/preprod
marino-martin Apr 28, 2022
3118b24
Merge pull request #205 from bitlogic/dev
marino-martin May 6, 2022
37c7e8d
Merge pull request #209 from bitlogic/dev
marino-martin May 12, 2022
9a8d337
Merge pull request #211 from bitlogic/dev
marino-martin May 12, 2022
8ef50ba
Merge pull request #213 from bitlogic/dev
marino-martin May 17, 2022
d567252
Merge pull request #216 from bitlogic/dev
marino-martin May 20, 2022
e9f5b55
Merge pull request #219 from bitlogic/dev
marino-martin May 26, 2022
5ee20a2
Merge pull request #222 from bitlogic/dev
marino-martin Jul 6, 2022
2b86f6d
Merge pull request #224 from bitlogic/dev
marino-martin Jul 11, 2022
e630a5d
Merge pull request #228 from bitlogic/dev
marino-martin Jul 25, 2022
a338da9
Merge pull request #230 from bitlogic/dev
marino-martin Jul 29, 2022
b758053
Merge pull request #232 from bitlogic/dev
marino-martin Aug 31, 2022
0e3f00f
Merge pull request #234 from bitlogic/dev
marino-martin Sep 5, 2022
29fcaee
Merge pull request #236 from bitlogic/dev
marino-martin Sep 5, 2022
6bc6252
Merge pull request #238 from bitlogic/dev
marino-martin Jul 3, 2023
ee30ff2
Merge pull request #239 from bitlogic/dev
marino-martin Jul 3, 2023
82a984b
Merge pull request #240 from bitlogic/dev
drina-bitlogic Jul 4, 2023
0ea7fbb
Merge pull request #241 from bitlogic/dev
marino-martin Aug 18, 2023
3a3a55e
Merge pull request #243 from bitlogic/dev
marino-martin Apr 10, 2024
07836a3
instantiate project dependencies
GonzalezMaxi May 15, 2024
d37cf84
SBIT-299: Refactor URL creation for landing pages and introduce new hook
GonzalezMaxi May 15, 2024
64fc8bb
SBIT-299: Updated components for correct redirection to landing pages
GonzalezMaxi May 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = {
options: {
// You can add multiple tracking ids and a pageview event will be fired for all of them.
trackingIds: [
"G-BKGQR6SJWV", // Google Analytics / G
"G-F6VPYEJ1X0", // Google Analytics / G
],
// This object is used for configuration specific to this plugin
pluginConfig: {
Expand Down
29 changes: 25 additions & 4 deletions gatsby-node.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const path = require("path")
const path = require("path");
const FilterWarningsPlugin = require("webpack-filter-warnings-plugin");

exports.onCreateWebpackConfig = ({ actions }) => {
Expand Down Expand Up @@ -32,7 +32,7 @@ exports.createSchemaCustomization = ({ actions }) => {
homeSchema.value +
iconSchema.value +
landingSchema.value +
layoutSchema.value +
layoutSchema.value +
professionalsSchema.value +
generalSchema.value
createTypes(typeDefs)
Expand Down Expand Up @@ -71,6 +71,9 @@ exports.createPages = async ({ graphql, actions }) => {
allStrapiLandingPage {
nodes {
slug
parent_page {
slug
}
}
}
}
Expand All @@ -80,10 +83,28 @@ exports.createPages = async ({ graphql, actions }) => {
reporter.panicOnBuild("Error creando paginas de landing")
}

LandingQueryData.allStrapiLandingPage.nodes.forEach(node => {
const landings = LandingQueryData.allStrapiLandingPage.nodes;

function getUrl(node) {
if (!node) return ""

if (node.parent_page) {
const parentPage = landings.find((landing) =>
landing.slug === node.parent_page.slug
)
const parentUrl = getUrl(parentPage)
return `${parentUrl}/${node.slug}`
}

return `/${node.slug}`
}

landings.forEach(node => {
const LandingPage = path.resolve("./src/templates/LandingPage.js")
const url = getUrl(node)

createPage({
path: "/" + node.slug,
path: url,
component: LandingPage,
context: { slug: node.slug },
})
Expand Down
Loading