Skip to content

Commit

Permalink
Added the links to the new Angular versions
Browse files Browse the repository at this point in the history
  • Loading branch information
alterx committed Jul 31, 2018
1 parent 8423298 commit 82835e6
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/components/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,19 @@ export default function Header({ githubUrl, inverse, framework, firstChapter, is
<Meta>
<Title>Angular</Title>
<Detail>
<LanguageLink className="tertiary" isGatsby to="/react/en/contribute">
Contributors wanted
<LanguageLink
className="tertiary"
isGatsby
to={`/angular/en/${firstChapter}/`}
>
English
</LanguageLink>
<LanguageLink
className="tertiary"
isGatsby
to={`/angular/es/${firstChapter}/`}
>
Español
</LanguageLink>
</Detail>
</Meta>
Expand Down
13 changes: 13 additions & 0 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,19 @@ export default ({ data: { site: { siteMetadata: { toc, defaultTranslation } }, p
</Button>
</Link>
</Actions>
<ActionHeading>Angular</ActionHeading>
<Actions>
<Link isGatsby to={`/angular/en/${firstChapter}`}>
<Button inverse>
<ViewLayerImage src="/logo-angular.svg" alt="Angular" />English
</Button>
</Link>
<Link isGatsby to={`/angular/es/${firstChapter}`}>
<Button inverse>
<ViewLayerImage src="/logo-angular.svg" alt="Angular" />Español
</Button>
</Link>
</Actions>
</Pitch>

<FigureWrapper>
Expand Down

0 comments on commit 82835e6

Please sign in to comment.