Skip to content

Commit 3741988

Browse files
vdyedscho
authored andcommitted
Hugo-ify Linux & Mac download pages
To keep things simple, skip the part in the Mac downloads that says how long ago the version was released. It will be implemented in client-side Javascript in a future commit. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 5ceb024 commit 3741988

File tree

2 files changed

+23
-22
lines changed

2 files changed

+23
-22
lines changed

content/downloads/linux.html

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
1-
<%- @section = "downloads" %>
2-
<%- @subsection = "" %>
1+
---
2+
section: "downloads"
3+
aliases:
4+
- /download/linux
5+
---
36

47
<div id="main">
58
<h1>Download for Linux and Unix</h1>
69
<p>It is easiest to install Git on Linux using the preferred package
710
manager of your Linux distribution. If you prefer to build from
811
source, you can find tarballs
9-
<%= link_to "on kernel.org", "https://www.kernel.org/pub/software/scm/git/" %>.
12+
<a href="https://www.kernel.org/pub/software/scm/git/">on kernel.org</a>.
1013
The latest version is
11-
<%= link_to @latest.name, "https://www.kernel.org/pub/software/scm/git/git-#{@latest.name}.tar.gz"%>.
14+
<a href="https://www.kernel.org/pub/software/scm/git/git-{{< site-param latest_version >}}.tar.gz">{{< site-param latest_version >}}</a>
1215

1316
<h3>Debian/Ubuntu</h3>
1417
<p>For the latest stable version for your release of Debian/Ubuntu</p>
1518
<code># apt-get install git</code>
1619
<p>For Ubuntu, this PPA provides the latest stable upstream Git version</p>
1720
<code># add-apt-repository ppa:git-core/ppa</code>
1821
<code># apt update; apt install git</code>
19-
22+
2023
<h3>Fedora</h3>
2124
<code># yum install git</code> (up to Fedora 21)<br>
2225
<code># dnf install git</code> (Fedora 22 and later)
@@ -38,19 +41,19 @@ <h3>Nix/NixOS</h3>
3841

3942
<h3>FreeBSD</h3>
4043
<code># pkg install git</code>
41-
44+
4245
<h3>Solaris 9/10/11 (<a href="https://www.opencsw.org">OpenCSW</a>)</h3>
4346
<code># pkgutil -i git</code>
4447

4548
<h3>Solaris 11 Express</h3>
4649
<code># pkg install developer/versioning/git</code>
47-
50+
4851
<h3>OpenBSD</h3>
4952
<code># pkg_add git</code>
5053

5154
<h3>Alpine</h3>
5255
<code>$ apk add git</code>
53-
56+
5457
<h3>Red Hat Enterprise Linux, Oracle Linux, CentOS, Scientific Linux, et al.</h3>
5558
<p>RHEL and derivatives typically ship older versions of git. You can <a href="https://www.kernel.org/pub/software/scm/git/">download a tarball</a> and build from source, or use a 3rd-party repository such as <a href="https://ius.io/">the IUS Community Project</a> to obtain a more recent version of git.</p>
5659

content/downloads/mac.html

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
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/mac
6+
---
87

98
<div id="main">
109
<h1>Download for macOS</h1>
@@ -28,20 +27,19 @@ <h3>Xcode</h3>
2827

2928
<h3>Binary installer</h3>
3029
<p>Tim Harper provides an <a href="https://sourceforge.net/projects/git-osx-installer/">installer</a>
31-
for Git. The latest version is <%= link_to @download.version.name, @download.url %>,
32-
which was released <%= time_ago_in_words @download.release_date %> ago, on
33-
<%= @download.release_date.strftime("%Y-%m-%d") %>.
30+
for Git. The latest version is <a href="{{< site-param macos_installer.url >}}">{{< site-param macos_installer.version >}}</a>,
31+
which was released on {{< site-param macos_installer.release_date >}}.
3432

3533
<h3>Building from Source</h3>
3634
<p>If you prefer to build from source, you can find tarballs
37-
<%= link_to "on kernel.org", "https://www.kernel.org/pub/software/scm/git/" %>.
35+
<a href="https://www.kernel.org/pub/software/scm/git/">on kernel.org</a>.
3836
The latest version is
39-
<%= link_to @latest.name, "https://www.kernel.org/pub/software/scm/git/git-#{@latest.name}.tar.gz"%>.
40-
37+
<a href="https://www.kernel.org/pub/software/scm/git/git-{{< site-param latest_version >}}.tar.gz"%>{{< site-param latest_version >}}</a>.
38+
4139
<h3>Installing git-gui</h3>
4240
<p>If you would like to install <a href="https://git-scm.com/docs/git-gui/">git-gui</a> and <a href="https://git-scm.com/docs/gitk/">gitk</a>,
4341
git's commit GUI and interactive history browser, you can do so using <a href="https://brew.sh/">homebrew</a><br>
4442

4543
<code>$ brew install git-gui</code></p>
46-
44+
4745
</div>

0 commit comments

Comments
 (0)