mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-01-29 06:42:36 +01:00
55 lines
1.0 KiB
TypeScript
55 lines
1.0 KiB
TypeScript
import { graphql, useStaticQuery } from "gatsby";
|
|
|
|
const useSiteMetadata = () => {
|
|
const { site } = useStaticQuery(
|
|
graphql`
|
|
query SiteMetaData {
|
|
site {
|
|
siteMetadata {
|
|
author {
|
|
bio
|
|
name
|
|
photo
|
|
contacts {
|
|
rss
|
|
line
|
|
email
|
|
weibo
|
|
gitlab
|
|
medium
|
|
github
|
|
twitter
|
|
codepen
|
|
youtube
|
|
facebook
|
|
linkedin
|
|
telegram
|
|
instagram
|
|
soundcloud
|
|
phone
|
|
}
|
|
}
|
|
menu {
|
|
path
|
|
label
|
|
}
|
|
legalMenu {
|
|
path
|
|
label
|
|
}
|
|
url
|
|
title
|
|
subtitle
|
|
copyright
|
|
disqusShortname
|
|
}
|
|
}
|
|
}
|
|
`
|
|
);
|
|
|
|
return site.siteMetadata;
|
|
};
|
|
|
|
export default useSiteMetadata;
|