mirror of
https://github.com/Unkn0wnCat/KevinK.dev.js.git
synced 2025-06-21 03:47:32 +02:00
Add more structured metadata
This commit is contained in:
parent
df9e2b2bb8
commit
412ee72112
10 changed files with 148 additions and 5 deletions
37
src/helpers/useSiteMetadata.js
Normal file
37
src/helpers/useSiteMetadata.js
Normal file
|
@ -0,0 +1,37 @@
|
|||
import { useStaticQuery, graphql } from 'gatsby';
|
||||
|
||||
const useSiteMetadata = () => {
|
||||
const { site } = useStaticQuery(
|
||||
graphql`
|
||||
query {
|
||||
site {
|
||||
siteMetadata {
|
||||
title
|
||||
keywords
|
||||
author
|
||||
siteUrl
|
||||
payPalMail
|
||||
contactEmail
|
||||
contactPhone
|
||||
mapsLink
|
||||
contactTwitter
|
||||
contactGitHub
|
||||
contactMastodon
|
||||
contactMastodonHref
|
||||
givenName
|
||||
familyName
|
||||
birthDate
|
||||
address
|
||||
gender
|
||||
height
|
||||
nationality
|
||||
sameAs
|
||||
}
|
||||
}
|
||||
}
|
||||
`,
|
||||
);
|
||||
return site.siteMetadata;
|
||||
};
|
||||
|
||||
export default useSiteMetadata;
|
Loading…
Add table
Add a link
Reference in a new issue