Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Small seo fixes #2

Merged
merged 2 commits into from
Oct 22, 2018
Merged
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
1 change: 1 addition & 0 deletions src/components/Nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export const Nav = ({ Twitter: { text, url } }) => (
}}
>
<img
alt='GraphQL Editor Logo'
src={require('../assets/logo_small.png')}
style={{
margin: 0,
Expand Down
1 change: 1 addition & 0 deletions src/components/Twitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export const Twitter = ({ text, url }) => (
)}&url=${url}`}
>
<img
alt="Twitter Shield"
src="https://img.shields.io/twitter/url/http/shields.io.svg?style=social"
style={{ margin: 0, height: 30, boxShadow: 'none' }}
/>
Expand Down
2 changes: 2 additions & 0 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class BlogIndex extends React.Component {
this,
'props.data.site.siteMetadata.description'
)
const canonicalUrl = get(this, 'props.location.href')
const posts = get(this, 'props.data.allMarkdownRemark.edges')

return (
Expand All @@ -29,6 +30,7 @@ class BlogIndex extends React.Component {
<Layout location={this.props.location}>
<Helmet
htmlAttributes={{ lang: 'en' }}
link={[{rel: 'canonical', href: canonicalUrl}]}
meta={[{ name: 'description', content: siteDescription }]}
title={siteTitle}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ Voila, we get the correct faker structure.
]
```

![](https://media.giphy.com/media/a0h7sAqON67nO/giphy.gif)
![Great Success](https://media.giphy.com/media/a0h7sAqON67nO/giphy.gif)

I've just added this feature to my repo [ts-api-faker](https://github.com/slothking-online/ts-api-faker)

Expand Down
4 changes: 2 additions & 2 deletions src/pages/typescript-backend-with-slothking/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ author: Artur

Making backend with nodejs and typescript is trendy nowadays. In this article I will show you the way how to make it type safe and totaly connected with frontend within a short period of time.

To make this kind of backend I have to use my open source experimental tool [slothking](slothking.online). First of all we will create a diagram for our backend. We will not use any extensions to make everything from scratch.
To make this kind of backend I have to use my open source experimental tool [slothking](https://slothking.online). First of all we will create a diagram for our backend. We will not use any extensions to make everything from scratch.

1. Go to [Slothking App](slothking.online)
1. Go to [Slothking App](https://slothking.online)
2. Register.
3. Click out this diagram

Expand Down
2 changes: 2 additions & 0 deletions src/templates/blog-post.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class BlogPostTemplate extends React.Component {
const post = this.props.data.markdownRemark
const siteTitle = get(this.props, 'data.site.siteMetadata.title')
const siteDescription = post.excerpt
const cannonicalUrl = get(this.props, 'location.href')
const { previous, next } = this.props.pageContext
return (
<React.Fragment>
Expand All @@ -27,6 +28,7 @@ class BlogPostTemplate extends React.Component {
<Layout location={this.props.location}>
<Helmet
htmlAttributes={{ lang: 'en' }}
link={[{rel: 'canonical', href: cannonicalUrl}]}
meta={[{ name: 'description', content: siteDescription }]}
title={`${post.frontmatter.title} | ${siteTitle}`}
/>
Expand Down