You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This migrates the page from the Rails app to the static site generated
via Hugo.
We also need to move the server-side logic that is responsible for
adjusting the download link on 32-bit Windows to the client side, as
Javascript.
Note that we need to access the site parameters from that Javascript
code, therefore we need to move the `application.js` file from `static/`
to `assets/`. While at it, also minify it.
Signed-off-by: Johannes Schindelin <[email protected]>
Copy file name to clipboardExpand all lines: content/downloads/win.html
+18-14Lines changed: 18 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -1,38 +1,42 @@
1
-
<%- @section = "downloads" %>
2
-
<%- @subsection = "" %>
3
-
<%- @page_title = "Git - Downloading Package" %>
4
-
5
-
<% content_for :sidebar do %>
6
-
<%= render 'shared/book' %>
7
-
<% end %>
1
+
---
2
+
section: "downloads"
3
+
title: "Git - Downloading Package"
4
+
aliases:
5
+
- /download/win
6
+
---
8
7
9
8
<divid="main">
10
9
<h1>Download for Windows</h1>
11
10
<p>
12
-
<%= raw "<strong><aid=\"auto-download-link\" href=\"#{@download.url}\">Click here to download </a></strong>" %><%= raw " the latest (<strong>#{@download.version.name}</strong>) <strong>#{@bitness}</strong> version of <strong>Git for Windows</strong>. This is the most recent <ahref='#{@project_url}'>maintained build</a>. It was released <strong>#{time_ago_in_words @download.release_date} ago</strong>, on #{@download.release_date.strftime("%Y-%m-%d")}." %>
11
+
<strong><aid="auto-download-link" href="{{< site-param windows_installer.installer64.url >}}">Click here to download </a></strong>
12
+
the latest (<strongid="auto-download-version">{{<site-paramwindows_installer.installer64.version>}}</strong>)
13
+
<strongid="auto-download-bitness">64-bit</strong> version of <strong>Git for Windows</strong>.
14
+
This is the most recent <ahref="https://git-for-windows.github.io/">maintained build</a>.
15
+
It was released <spanid="relative-release-date"></span>on <spanid="auto-download-date">{{<site-paramwindows_installer.installer64.release_date>}}</span>.
13
16
</p>
14
17
<h3>Other Git for Windows downloads</h3>
15
18
<h4>Standalone Installer</h4>
16
19
<p>
17
-
<%= raw "<strong><ahref=\"#{@download32.url}\">32-bit Git for Windows Setup</a>.</strong>" %>
20
+
<strong><ahref="{{< site-param windows_installer.installer32.url >}}">32-bit Git for Windows Setup</a>.</strong>
18
21
</p>
19
22
<p>
20
-
<%= raw "<strong><ahref=\"#{@download64.url}\">64-bit Git for Windows Setup</a>.</strong>" %>
23
+
<strong><ahref="{{< site-param windows_installer.installer64.url >}}">64-bit Git for Windows Setup</a>.</strong>
21
24
</p>
22
25
<h4>Portable ("thumbdrive edition")</h4>
23
26
<p>
24
-
<%= raw "<strong><ahref=\"#{@download32portable.url}\">32-bit Git for Windows Portable</a>.</strong>" %>
27
+
<strong><ahref="{{< site-param windows_installer.portable32.url >}}">32-bit Git for Windows Portable</a>.</strong>
25
28
</p>
26
29
<p>
27
-
<%= raw "<strong><ahref=\"#{@download64portable.url}\">64-bit Git for Windows Portable</a>.</strong>" %>
30
+
<strong><ahref="{{< site-param windows_installer.portable64.url >}}">64-bit Git for Windows Portable</a>.</strong>
28
31
</p>
29
32
<h4>Using winget tool</h4>
30
33
<p>
31
34
Install <ahref="https://docs.microsoft.com/en-us/windows/package-manager/winget">winget tool</a> if you don't already have it, then type this command in command prompt or Powershell.<br>
<%= raw "The current source code release is version <strong>#{@latest.name}</strong>. If you want the newer version, you can build it from <ahref=\"#{@source_url}\">the source code</a>." %>
38
+
The current source code release is version <strong>{{<site-paramlatest_version>}}</strong>.
39
+
If you want the newer version, you can build it from <ahref="https://github.com/git-for-windows/git">the source code</a>.
36
40
</p>
37
41
38
42
<h2>Now What?</h2>
@@ -51,7 +55,7 @@ <h3>Read the Book</h3>
51
55
<ahref="/downloads/guis">
52
56
<imgsrc="/images/icons/nav-download-gui.png" />
53
57
<h3>Download a GUI</h3>
54
-
<p><%= raw "Several free and commercial GUI tools are available for the #{@platform.capitalize} platform." %></p>
58
+
<p>Several free and commercial GUI tools are available for the Windows platform.</p>
0 commit comments