mirror of
https://github.com/UiO-Gaming/uiogaming.no.git
synced 2026-11-05 13:56:47 +01:00
yolo
This commit is contained in:
2 files changed
+4
-5
No files matched your search
+1
-1
@@ -4,7 +4,7 @@ module.exports = {
|
||||
description: `En hobbyforening som ønsker skape et sosialt miljø rundt gaming og E-sport på UiO!`,
|
||||
author: `@uiogaming`,
|
||||
url: `https://uiogaming.no`,
|
||||
image: `static/logo.jpg`,
|
||||
image: `logo.jpg`,
|
||||
},
|
||||
plugins: [
|
||||
`gatsby-plugin-react-helmet`,
|
||||
|
||||
@@ -29,11 +29,8 @@ function Seo({ description, lang, meta, image: metaImage, title, author }) {
|
||||
const metaAuthor = author || site.siteMetadata.author
|
||||
const metaDescription = description || site.siteMetadata.description
|
||||
const defaultTitle = site.siteMetadata?.title
|
||||
|
||||
const image =
|
||||
metaImage && metaImage.src
|
||||
? `${site.siteMetadata.siteUrl}${metaImage.src}`
|
||||
: null
|
||||
image || `${site.siteMetadata.siteUrl}/${site.siteMetadata.image}`
|
||||
|
||||
return (
|
||||
<Helmet
|
||||
@@ -120,9 +117,11 @@ Seo.defaultProps = {
|
||||
lang: `no`,
|
||||
meta: [],
|
||||
description: ``,
|
||||
image: null,
|
||||
}
|
||||
|
||||
Seo.propTypes = {
|
||||
image: PropTypes.string,
|
||||
description: PropTypes.string,
|
||||
lang: PropTypes.string,
|
||||
meta: PropTypes.arrayOf(PropTypes.object),
|
||||
|
||||
Reference in new issue
Block a user