Skip to content

Commit

Permalink
support Google crawler for SEO,not compiled (#50)
Browse files Browse the repository at this point in the history
* fix: [issue28](#28) 
* feat: support Google crawler for SEO
  • Loading branch information
purple-force authored and ralf0131 committed Jul 16, 2018
1 parent ad3cf35 commit 5fd85e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/index.jsx
Expand Up @@ -12,10 +12,11 @@ const BlogDetail = asyncComponent(() => import('./pages/blogDetail'));
const Documentation = asyncComponent(() => import('./pages/documentation'));

class App extends React.Component {

render() {
// 最后两个未用模板参数的原因是路径深度不一定
return (
<HashRouter>
<HashRouter hashType="hashbang">
<Switch>
<Redirect exact from="/docs" to="/docs/user/quick-start.md" />
<Redirect exact from="/docs/" to="/docs/user/quick-start.md" />
Expand Down
4 changes: 3 additions & 1 deletion src/pages/community/eventCard.jsx
Expand Up @@ -6,7 +6,9 @@ class EventCard extends React.Component {
const { event } = this.props;
return (
<div className="event-card">
<img src={event.img} />
<Link to={event.link}>
<img src={event.img} />
</Link>
<div className="event-introduction">
<h4>{event.title}</h4>
<p>{event.content}</p>
Expand Down

0 comments on commit 5fd85e0

Please sign in to comment.