Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

docs(install): list the version on the installation page #444

Merged
merged 1 commit into from
Apr 7, 2017
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
17 changes: 17 additions & 0 deletions _includes/version.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<div class="mt-4">
{{i18n.site_nav_stable_version}}:
<strong class="navbar-text">
<a href="https://github.com/yarnpkg/yarn/releases/tag/v{{site.latest_version}}">
v{{site.latest_version}}
</a>
</strong>
{% if site.show_rc %}
<span aria-hidden="true">&bull;</span>
{{i18n.site_nav_rc_version}}
<strong>
<a href="https://github.com/yarnpkg/yarn/releases/tag/v{{site.latest_rc_version}}">
v{{site.latest_rc_version}}
</a>
</strong>
{% endif %}
</div>
5 changes: 5 additions & 0 deletions _layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
<div class="hero">
<div class="container">
<h1 class="hero-text display-4">{{i18n[page.id]}}</h1>
{% if layout.hero_subtext %}
{% include {{ layout.hero_subtext }} %}
{% elsif page.hero_subtext %}
{% include {{ page.hero_subtext }} %}
{% endif %}
</div>
</div>

Expand Down
18 changes: 1 addition & 17 deletions _layouts/pages/homepage.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,7 @@ <h1 class="hero-title">
</span>
</div>

<div class="mt-4">
{{i18n.site_nav_stable_version}}:
<strong class="navbar-text">
<a href="https://github.com/yarnpkg/yarn/releases/tag/v{{site.latest_version}}">
v{{site.latest_version}}
</a>
</strong>
{% if site.show_rc %}
<span aria-hidden="true">&bull;</span>
{{i18n.site_nav_rc_version}}
<strong>
<a href="https://github.com/yarnpkg/yarn/releases/tag/v{{site.latest_rc_version}}">
v{{site.latest_rc_version}}
</a>
</strong>
{% endif %}
</div>
{% include version.html %}
</div>
</div>

Expand Down
1 change: 1 addition & 0 deletions _layouts/pages/install.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
layout: guide
hero_subtext: version.html
scripts:
- "/js/build/install.js"
---
Expand Down