| import NextHead from 'next/head'; | |
| import React from 'react'; | |
| const defaultDescription = ''; | |
| const defaultOGURL = ''; | |
| const defaultOGImage = ''; | |
| export const Head = (props) => ( | |
| <NextHead> | |
| <meta charSet="UTF-8" /> | |
| <title>{props.title || ''}</title> | |
| <meta | |
| name="description" | |
| content={props.description || defaultDescription} | |
| /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | |
| <meta property="og:url" content={props.url || defaultOGURL} /> | |
| <meta property="og:title" content={props.title || ''} /> | |
| <meta | |
| property="og:description" | |
| content={props.description || defaultDescription} | |
| /> | |
| <meta name="twitter:site" content={props.url || defaultOGURL} /> | |
| <meta name="twitter:card" content="summary_large_image" /> | |
| <meta name="twitter:image" content={props.ogImage || defaultOGImage} /> | |
| <meta property="og:image" content={props.ogImage || defaultOGImage} /> | |
| <meta property="og:image:width" content="1200" /> | |
| <meta property="og:image:height" content="630" /> | |
| <link | |
| rel="stylesheet" | |
| href="https://cdn.jsdelivr.net/npm/instantsearch.css@7.0.0/themes/algolia-min.css" | |
| /> | |
| <link rel="stylesheet" href="instantsearch.css" /> | |
| </NextHead> | |
| ); | |