Skip to content

Commit 273ef00

Browse files
committed
Create base Downloads page
Signed-off-by: Victoria Dye <[email protected]> Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 6445fad commit 273ef00

File tree

3 files changed

+19
-18
lines changed

3 files changed

+19
-18
lines changed
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
<%- @section = "downloads" %>
2-
<%- @subsection = "" %>
3-
<%- @page_title = "Git - Downloads" %>
4-
5-
<% content_for :sidebar do %>
6-
<%= render 'shared/book' %>
7-
<% end %>
1+
---
2+
section: "downloads"
3+
title: "Git - Downloads"
4+
url: /downloads.html
5+
aliases:
6+
- /downloads/index.html
7+
---
88

99
<div id="main">
1010
<div class="two-column">
@@ -14,15 +14,15 @@ <h1>Downloads</h1>
1414
<table class="binaries">
1515
<tr>
1616
<td>
17-
<%= link_to "macOS", "/download/mac", {:class => 'icon mac'} %>
17+
<a href="/download/mac" class="icon mac">macOS</a>
1818
</td>
1919
<td>
20-
<%= link_to "Windows", "/download/win", {:class => 'icon windows'} %>
20+
<a href="/download/win" class="icon windows">Windows</a>
2121
</td>
2222
</tr>
2323
<tr>
2424
<td>
25-
<%= link_to "Linux/Unix", "/download/linux", {:class => 'icon linux'} %>
25+
<a href="/download/linux" class="icon linux">Linux/Unix</a>
2626
</td>
2727
</tr>
2828
</table>
@@ -32,7 +32,7 @@ <h1>Downloads</h1>
3232
</p>
3333
</div>
3434
<div class="column-right">
35-
<%= render partial: 'shared/monitor' %>
35+
{{< monitor >}}
3636
</div>
3737
</div>
3838
<div class="callout" id="more-downloads">
@@ -44,7 +44,7 @@ <h2>GUI Clients</h2>
4444
</p>
4545
<p>
4646
<strong>
47-
<%= link_to "View GUI Clients →", "/downloads/guis" %>
47+
<a href="/downloads/guis">View GUI Clients →</a>
4848
</strong>
4949
</p>
5050
</div>
@@ -53,7 +53,7 @@ <h2>Logos</h2>
5353
<p>Various Git logos in PNG (bitmap) and EPS (vector) formats are available for use in online and print projects.</p>
5454
<p>
5555
<strong>
56-
<%= link_to "View Logos →", "/downloads/logos" %>
56+
<a href="/downloads/logos">View Logos →</a>
5757
</strong>
5858
</p>
5959
</div>

layouts/partials/monitor.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
<h4> Latest source Release </h4>
44

55
<span class="version">
6-
<%= latest_version %>
6+
{{ .Site.Params.latest_version }}
77
</span>
88

9-
<%= link_to "Release Notes", latest_relnote_url %>
9+
<a href="{{ .Site.Params.latest_relnote_url }}">Release Notes</a>
1010
<span class="release-date">
11-
<%= latest_release_date %>
11+
({{ .Site.Params.latest_release_date }})
1212
</span>
13-
<span data-mac="<%= latest_mac_installer %>" data-win="<%= latest_win_installer %>" id="installer-version"></span>
13+
<span data-mac="{{ .Site.Params.macos_installer.version }}" data-win="{{ .Site.Params.windows_installer.installer64.version }}" id="installer-version"></span>
1414

15-
<%= link_to "Download Source Code", "https://www.kernel.org/pub/software/scm/git/", {:class => 'button', :id => 'download-link'} %>
15+
<a href="https://www.kernel.org/pub/software/scm/git/" class="button" id="download-link">Download Source Code</a>
1616
</div>

layouts/shortcodes/monitor.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{{ partial "monitor.html" . }}

0 commit comments

Comments
 (0)