Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
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
5a3489c
Merge pull request #244 from bitlogic/SBIT-299
marino-martin May 17, 2024
d309025
SBIT-298: integrate gatsby-plugin-sitemap & gatsby-plugin-tobots-txt
GonzalezMaxi May 22, 2024
0abe740
SBIT-298: fix gatsby-plugin-sitemap dependencie
GonzalezMaxi May 23, 2024
de24b11
Merge pull request #245 from bitlogic/SBIT-298
marino-martin May 23, 2024
f661f7c
SBIT-297: Create CustomSection & remove deprecated components
GonzalezMaxi May 24, 2024
b712941
Merge pull request #246 from bitlogic/SBIT-297
marino-martin May 24, 2024
28fde60
SBIT-296: changes on navbar - menu added and styles changed
rociollanes May 24, 2024
d93ace0
SBIT-296: fixes
rociollanes May 27, 2024
04e44b0
Merge pull request #247 from bitlogic/SBIT-296
marino-martin May 27, 2024
c6160b5
SBIT-266: subscription url or landing management added
rociollanes May 29, 2024
e1538a9
SBIT-266: fixes
rociollanes May 29, 2024
1a53a66
SBIT-307: fix on responsiveness style
rociollanes May 29, 2024
8955705
fix on constants
rociollanes May 29, 2024
99f8224
Merge pull request #248 from bitlogic/SBIT-266
marino-martin May 29, 2024
0314731
Merge pull request #249 from bitlogic/SBIT-307-fixes
marino-martin May 29, 2024
ca67a8d
SBIT-255: modified footer structure
GonzalezMaxi May 30, 2024
feb806b
SBIT-255: create Sites component
GonzalezMaxi May 30, 2024
d73454b
SBIT-255: replace img tag with GatsbyImage
GonzalezMaxi May 30, 2024
e10e871
SBIT-255: remove comments styles & add key prop in Sites
GonzalezMaxi May 30, 2024
cf20a88
Merge pull request #250 from bitlogic/SBIT-255
marino-martin May 30, 2024
f6f01de
SBIT-302: light/dark theme components renderization problem fixed
rociollanes Jun 4, 2024
2a01312
Merge pull request #251 from bitlogic/SBIT-302
marino-martin Jun 4, 2024
551c029
SBIT-305: Create BannerRedirect
GonzalezMaxi Jun 5, 2024
b676557
SBIT-305: fix BannerRedirect
GonzalezMaxi Jun 6, 2024
2b91838
Merge pull request #252 from bitlogic/SBIT-305
marino-martin Jun 6, 2024
7560e3c
SBIT-311: pipedrive script added
rociollanes Jun 6, 2024
d599812
SBIT-311: pipedrive script added
rociollanes Jun 6, 2024
51c0271
Merge branch 'SBIT-311' of https://github.com/bitlogic/bitlogic.io in…
rociollanes Jun 6, 2024
6283ab4
Merge pull request #253 from bitlogic/SBIT-311
marino-martin Jun 6, 2024
ca2bff4
SBIT-316: footer's subscription component's redirection issues fixed
rociollanes Jun 7, 2024
dc768c5
fix theme style
Jun 7, 2024
0ff2b1b
SBIT-316: fixes
rociollanes Jun 7, 2024
f18f21a
Merge pull request #254 from bitlogic/SBIT-316
marino-martin Jun 7, 2024
de75030
SBIT-320: fix components
GonzalezMaxi Jun 7, 2024
d7b44e5
SBIT-320: add validation in imageArticle
GonzalezMaxi Jun 7, 2024
f9328d2
SBIT-320: fix BlogArticle
GonzalezMaxi Jun 10, 2024
e371840
Merge pull request #255 from bitlogic/SBIT-320
marino-martin Jun 10, 2024
94444fb
SBIT-323: fix structure and styles of Banner component
GonzalezMaxi Jun 11, 2024
d6198b5
SBIt-323: create CustomLink & modify Banner component
GonzalezMaxi Jun 11, 2024
f996751
SBIt-323: Fix code smell of Sonnar
GonzalezMaxi Jun 11, 2024
4ea5886
SBIT-323: add min-height to hero
GonzalezMaxi Jun 11, 2024
9f06fa8
Merge pull request #256 from bitlogic/SBIT-323
marino-martin Jun 11, 2024
e306c44
SBIT-313: add callToAction in components
GonzalezMaxi Jun 12, 2024
c63c06d
SBIT-313: fix code smells of Sonar
GonzalezMaxi Jun 12, 2024
f2186a7
Merge pull request #257 from bitlogic/SBIT-313
marino-martin Jun 13, 2024
983a3f5
SBIT-318: Create PipedriveForm & remove hubspot form
GonzalezMaxi Jun 13, 2024
fe3e374
SBIT-318: refactor CustomSection
GonzalezMaxi Jun 13, 2024
9d75d67
SBIT-318: fix code smell of Sonnar
GonzalezMaxi Jun 13, 2024
a148fa7
SBIT-318: change validation
GonzalezMaxi Jun 13, 2024
96f8b64
Merge pull request #258 from bitlogic/SBIT-318
marino-martin Jun 13, 2024
adf5441
SBIT-306: fix components
GonzalezMaxi Jun 19, 2024
92f381f
SBIT-306: fix issues of Sonar
GonzalezMaxi Jun 19, 2024
ed70dd6
SBIT-306: add props validation in LogosSection
GonzalezMaxi Jun 19, 2024
60e8e4e
SBIT-306: change img tag for CustomImage
GonzalezMaxi Jun 19, 2024
01ea359
Merge pull request #259 from bitlogic/SBIT-306
marino-martin Jun 19, 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
69 changes: 67 additions & 2 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,73 @@ module.exports = {
title: `Bitlogic`,
description: `Bitlogic Web es una empresa dedicada al diseño, ingeniería y desarrollo ágil de productos de software, especializada en la transformación digital de instituciones educativas .`,
author: `Bitlogic.io`,
siteUrl: process.env.SITE_URL,
siteUrl: process.env.SITE_URL,
// siteUrl: 'https://bitlogic.io',
},
plugins: [
`gatsby-plugin-sitemap`,
{
resolve: `gatsby-plugin-sitemap`,
options: {
output: '/',
query: `
{
allSitePage {
nodes {
path
pageContext
}
}
strapiBlogPage {
updated_at
}
strapiHome {
updated_at
}
}
`,
resolveSiteUrl: () => process.env.SITE_URL,
resolvePages: ({
allSitePage: { nodes: allPages },
strapiBlogPage: blogPage,
strapiHome: homePage
}) => {
const singlePages = [
{
path: '/',
lastmod: homePage.updated_at
},
{
path: '/blog',
lastmod: blogPage.updated_at
}
];

return allPages.map(page => {
if (page.path === '/') return singlePages[0]
else if (page.path === '/blog/') return singlePages[1]

return {
path: page.path,
lastmod: page?.pageContext?.lastmod
}
})
},
serialize: ({ path, lastmod }) => {
return {
url: path,
lastmod: lastmod,
}
},
}
},
{
resolve: 'gatsby-plugin-robots-txt',
options: {
host: process.env.SITE_URL,
sitemap: `${process.env.SITE_URL}/sitemap-index.xml`,
policy: [{ userAgent: '*', allow: '/' }]
}
},
{
resolve: `gatsby-plugin-google-gtag`,
options: {
Expand All @@ -32,6 +95,7 @@ module.exports = {
{
resolve: `gatsby-plugin-canonical-urls`,
options: {
// siteUrl: 'https://bitlogic.io',
siteUrl: process.env.SITE_URL,
},
},
Expand All @@ -41,6 +105,7 @@ module.exports = {
// apiURL: `http://lb-bitlogic-strapi-dev-48805770.sa-east-1.elb.amazonaws.com:1337`,
// apiURL: `https://strapi.bitlogic.io`,
apiURL: process.env.STRAPI_URL,
// apiURL: 'http://127.0.0.1:1337',
queryLimit: 1000,
collectionTypes: [
`article`,
Expand Down
41 changes: 35 additions & 6 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 All @@ -47,6 +47,7 @@ exports.createPages = async ({ graphql, actions }) => {
allStrapiArticle {
nodes {
slug
updated_at
}
}
}
Expand All @@ -61,7 +62,10 @@ exports.createPages = async ({ graphql, actions }) => {
createPage({
path: "/blog/" + node.slug,
component: BlogDetail,
context: { slug: node.slug },
context: {
slug: node.slug,
lastmod: node.updated_at
},
})
})

Expand All @@ -71,6 +75,10 @@ exports.createPages = async ({ graphql, actions }) => {
allStrapiLandingPage {
nodes {
slug
updated_at
parent_page {
slug
}
}
}
}
Expand All @@ -80,12 +88,33 @@ 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 },
context: {
slug: node.slug,
lastmod: node.updated_at
},
})
})
}
Loading