
Security News
Risky Biz Podcast: Making Reachability Analysis Work in Real-World Codebases
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
gatsby-plugin-seo
Advanced tools
yarn add gatsby-plugin-seo
// gatsby-config.js
module.exports = {
plugins: [
{
resolve: "gatsby-plugin-seo",
options: {
siteName: "Example Company",
defaultSiteImage: "/img/logo.png",
siteUrl: "https://example.com",
twitterCreator: "@twitterhandle",
twitterSite: "@twitterhandle",
globalSchema: `{
"@type": "WebSite",
"@id": "https://example.com/#website",
"url": "https://example.com/",
"name": "Example Site Title",
"publisher": {
"@id": "https://example.com/about/#organization"
},
"image": {
"@type": "ImageObject",
"@id": "https://example.com/#logo",
"url": "https://example.com/img/logo.png",
"caption": "Example Company Logo"
}
}`
}
}
]
};
// src/pages/index.js
import React from "react";
import Layout from "../components/layout";
import { SEO, useSEO } from "gatsby-plugin-seo";
const IndexPage = () => {
const { siteUrl } = useSEO();
return (
<Layout>
<SEO
title="Home"
description="Description of the site/home page."
pagePath="/"
schema={`{
"@context": "http://schema.org",
"@type": "WebPage",
"mainEntity": {
"@type": "Organization",
"name": "Example Company",
"image": "${siteUrl}/img/logo.png"
}
}`}
/>
<h1>Hi people</h1>
<p>Welcome to your new Gatsby site.</p>
</Layout>
);
};
export default IndexPage;
{
siteName, // required
siteUrl, // required
defaultSiteImage, // if blank and each page doesn't supply an image, will throw runtime error if requireImage is set to true
twitterCreator = "",
twitterSite = "",
globalSchema = "",
requireImage = true,
htmlLanguage = "en",
locale = "en_US",
defaultAuthorUrl = "",
defaultPublisherUrl = "",
appleTouch = "/img/apple-touch-icon.png",
favicon32 = "/img/favicon-32x32.png",
favicon16 = "/img/favicon-16x16.png",
}
Bugs, ideas, issues, PRs welcome!
FAQs
## Install
The npm package gatsby-plugin-seo receives a total of 138 weekly downloads. As such, gatsby-plugin-seo popularity was classified as not popular.
We found that gatsby-plugin-seo demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.