Skip to content

Commit 8aebb47

Browse files
committed
Link to tutorial from home page and nav bar
1 parent 6279d2d commit 8aebb47

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

site/jekyll/_layouts/default.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@
3838
{{ site.name }}
3939
</a>
4040
<ul class="nav-site">
41-
<li><a href="/docs"{% if page.sectionid == 'docs' %} class="active"{% endif %}>Docs</a></li>
42-
<li><a href="/download">Download</a></li>
41+
<li><a href="/docs"{% if page.sectionid == 'docs' and page.id != 'tutorial' and page.id != 'download' %} class="active"{% endif %}>Docs</a></li>
42+
<li><a href="/getting-started/tutorial.html"{% if page.id == 'tutorial' %} class="active"{% endif %}>Tutorial</a></li>
43+
<li><a href="/getting-started/download.html"{% if page.id == 'download' %} class="active"{% endif %}>Download</a></li>
4344
<li><a href="http://github.com/reactjs/React.NET">GitHub</a>
4445
</ul>
4546
</div>

site/jekyll/getting-started/download.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
id: download
23
layout: docs
34
title: Downloading and Installing
45
---

site/jekyll/getting-started/tutorial.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
id: tutorial
23
title: Tutorial
34
layout: docs
45
---

site/jekyll/index.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ id: home
1818
[React](http://facebook.github.io/react/) and
1919
[JSX](http://facebook.github.io/react/docs/jsx-in-depth.html) from C# and
2020
other .NET languages, focusing specifically on ASP.NET MVC (although it
21-
also works in other environments). It assumes you already know the basics
22-
of React and its usage. If not, check out the
23-
[React tutorial](http://facebook.github.io/react/docs/tutorial.html) first.
21+
also works in other environments). Take a look at
22+
[the tutorial](/getting-started/tutorial.html) to see how easy it is to
23+
get started with React and ReactJS.NET!
2424
</p>
2525
<div id="examples">
2626
<div class="example">
@@ -109,7 +109,8 @@ bundles.Add(new JsxBundle("~/bundles/main").Include(
109109
<hr class="home-divider" />
110110
<section class="home-bottom-section">
111111
<div class="buttons-unit">
112-
<a href="/download" class="button">Get Started</a>
112+
<a href="/getting-started/download.html" class="button">Get Started</a>
113+
<a href="/getting-started/tutorial.html" class="button">Tutorial</a>
113114
</div>
114115
</section>
115116
</section>

0 commit comments

Comments
 (0)