Skip to content

Commit

Permalink
Feature/seo improvements (#5)
Browse files Browse the repository at this point in the history
* Added `alt` image attributes in the hero section

* Changed the open graph image and the site URL for the SEO

* Installed `gatsby-plugin-image` and derivative libraries

* Moved the projects definition to a tsx file and added projects' logos
  • Loading branch information
l-alexandrov authored Jul 16, 2024
1 parent a1fe24f commit afc67b6
Show file tree
Hide file tree
Showing 14 changed files with 955 additions and 85 deletions.
9 changes: 7 additions & 2 deletions gatsby-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ const config: GatsbyConfig = {
siteTitle: `Lyuboslav Alexandrov`,
siteTitleAlt: `Lyuboslav Alexandrov | Back-End Developer`,
siteHeadline: `Lyuboslav Alexandrov - Back-End developer, Laravel and PHP expert`,
siteUrl: `https://cara.lekoarts.de`,
siteUrl: `https://lyuboo.com`,
siteDescription: `Lyuboslav Alexandrov is a back-end developer specializing in Laravel and PHP, with experience in CI/CD, WebSockets, and project management. Located in Ruse, Bulgaria.`,
siteImage: `/banner.jpg`,
siteImage: `/ogImage.jpg`,
siteLanguage: `en`,
author: `@l_alexandroff`,
},
Expand Down Expand Up @@ -59,6 +59,11 @@ const config: GatsbyConfig = {
open: false,
},
},
`gatsby-plugin-perf-budgets`,
`gatsby-plugin-webpack-bundle-analyser-v2`,
`gatsby-plugin-image`,
`gatsby-plugin-sharp`,
`gatsby-transformer-sharp`,
].filter(Boolean) as Array<PluginRef>,
};

Expand Down
38 changes: 38 additions & 0 deletions gatsby-node.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import { createPages } from "@lekoarts/gatsby-theme-cara/gatsby-node.mjs";
import { createRemoteFileNode } from "gatsby-source-filesystem";
import { GatsbyNode } from "gatsby";

export const createResolvers: GatsbyNode["createResolvers"] = ({
actions,
cache,
createNodeId,
createResolvers,
store,
reporter,
}) => {
const { createNode } = actions;

createResolvers({
Query: {
remoteImage: {
type: "File",
args: {
url: {
type: "String",
description: "URL of the image",
},
},
resolve: async (_: any, { url }: { url: string }) => {
return await createRemoteFileNode({
url,
store,
cache,
createNode,
createNodeId,
reporter,
});
},
},
},
});
};
Loading

0 comments on commit afc67b6

Please sign in to comment.