Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion components/Meta.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import PropTypes from 'prop-types'
import Head from 'next/head'
import useTranslation from '../hooks/useTranslation'
import openGraphImage from '../assets/open-graph-image.png'

export default function Meta({ pageTitle, pageDescription, pageImage }) {
const { t } = useTranslation()
Expand All @@ -22,7 +23,7 @@ export default function Meta({ pageTitle, pageDescription, pageImage }) {
<meta
property='og:image'
content={`https://www.opentechschool.org${pageImage ||
'/sharing-images/website-into-sharing.png?1'}`}
openGraphImage}`}
/>
<meta name='twitter:card' content='summary_large_image' />
<meta name='twitter:site' content='@OpenTechSchool' />
Expand Down
5 changes: 3 additions & 2 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const path = require('path')
const withImages = require('next-images')

module.exports = {
module.exports = withImages({
webpack: function(config) {
config.module.rules.push({
test: /\.md$/,
Expand All @@ -14,4 +15,4 @@ module.exports = {
MEETUP_URL: 'http://meetup.com',
},
},
}
})
41 changes: 41 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"fetch-jsonp": "^1.1.3",
"gray-matter": "^4.0.2",
"next": "^9.3.5",
"next-images": "^1.4.0",
"raw-loader": "^4.0.1",
"react": "^16.13.1",
"react-dom": "^16.13.1",
Expand Down