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;