Skip to content

Commit 3f6056b

Browse files
committed
Misc fixes
1 parent 116b7c3 commit 3f6056b

File tree

4 files changed

+14
-10
lines changed

4 files changed

+14
-10
lines changed

src/server/renderer.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export default function factory(webpackConfig, options) {
184184

185185
res.send((
186186
`<!DOCTYPE html>
187-
<html>
187+
<html lang="en">
188188
<head>
189189
${helmet ? helmet.title.toString() : ''}
190190
${helmet ? helmet.meta.toString() : ''}

src/server/server.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ export default async function factory(webpackConfig, options) {
2727
server.use(favicon(options.favicon));
2828
}
2929

30+
server.use('/robots.txt', (req, res) => res.send('User-agent: *\nDisallow:'));
31+
3032
server.use(bodyParser.json({ limit: '300kb' }));
3133
server.use(bodyParser.urlencoded({ extended: false }));
3234
server.use(cookieParser());

src/shared/components/MetaTags.jsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function MetaTags({
3131
<title>
3232
{title}
3333
</title>
34-
<meta property="description" content={description} />
34+
<meta name="description" content={description} />
3535

3636
{/* Twitter cards. */}
3737
<meta name="twitter:card" content="summary_large_image" />
@@ -45,14 +45,14 @@ function MetaTags({
4545
}
4646

4747
{/* Open Graph data. */}
48-
<meta property="og:title" content={socTitle} />
49-
{ image ? <meta property="og:image" content={img} /> : null }
50-
{ image ? <meta property="og:image:alt" content={socTitle} /> : null }
51-
<meta property="og:description" content={socDesc} />
48+
<meta name="og:title" content={socTitle} />
49+
{ image ? <meta name="og:image" content={img} /> : null }
50+
{ image ? <meta name="og:image:alt" content={socTitle} /> : null }
51+
<meta name="og:description" content={socDesc} />
5252
{
53-
siteName ? (<meta property="og:sitename" content={siteName} />) : null
53+
siteName ? (<meta name="og:sitename" content={siteName} />) : null
5454
}
55-
{ url ? (<meta property="og:url" content={url} />) : null }
55+
{ url ? (<meta name="og:url" content={url} />) : null }
5656
</Helmet>
5757
);
5858
}

src/styles/_mixins/fonts.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@
1313
@mixin font-family($font-name, $font-weight, $font-style, $font-url, $font-file) {
1414
@font-face {
1515
font-family: '#{$font-name}';
16-
src: url('#{$font-url}#{$font-file}.eot');
17-
src: url('#{$font-url}#{$font-file}.eot?#iefix') format('embedded-opentype'), url('#{$font-url}#{$font-file}.woff') format('woff'), url('#{$font-url}#{$font-file}.ttf') format('truetype'), url('#{$font-url}#{$font-file}.svg##{$font-name}') format('svg');
16+
font-display: block;
1817
font-weight: $font-weight;
1918
font-style: $font-style;
19+
src: url('#{$font-url}#{$font-file}.eot');
20+
src: url('#{$font-url}#{$font-file}.eot?#iefix') format('embedded-opentype'), url('#{$font-url}#{$font-file}.woff') format('woff'), url('#{$font-url}#{$font-file}.ttf') format('truetype'), url('#{$font-url}#{$font-file}.svg##{$font-name}') format('svg');
2021
}
2122
}
2223

@@ -31,6 +32,7 @@
3132
$font-name, $font-weight, $font-style, $font-url) {
3233
@font-face {
3334
font-family: $font-name;
35+
font-display: block;
3436
font-style: $font-style;
3537
font-weight: $font-weight;
3638
src: url('#{$font-url}.ttf') format('truetype');

0 commit comments

Comments
 (0)