Skip to content

Commit 4b51fcc

Browse files
committed
Migrate the home page to Hugo (and to Markdown)
There are still plenty of HTML constructs in there; This is okay, as Markdown explicitly allows for that _and_ because some of those constructs are not easily expressed in Markdown (such as links with the `target="_blank"` attribute). Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent e19d50b commit 4b51fcc

File tree

6 files changed

+140
-148
lines changed

6 files changed

+140
-148
lines changed

assets/sass/style.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ div.version {
247247
margin-top: 0;
248248
}
249249

250-
.details p a {
250+
.details p a:not(.button) {
251251
color: #A3CFFF;
252252
text-decoration: underline;
253253
}

content/_index.md

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
## Tools &amp; Features
2+
3+
<div class="content">
4+
<div class="vcentercontainer detailstext">
5+
<div>
6+
7+
Git for Windows focuses on offering a lightweight, native set of tools that bring the full feature set of the <a href="https://git-scm.com" target="_blank">Git SCM</a> to Windows while providing appropriate user interfaces for experienced Git users and novices alike.
8+
9+
### Git BASH {#bash}
10+
11+
Git for Windows provides a BASH emulation used to run Git from the command line. \*NIX users should feel right at home, as the BASH emulation behaves just like the "git" command in LINUX and UNIX environments.
12+
13+
### Git GUI {#git-gui}
14+
15+
As Windows users commonly expect graphical user interfaces, Git for Windows also provides the Git GUI, a powerful alternative to Git BASH, offering a graphical version of just about every Git command line function, as well as comprehensive visual diff tools.
16+
17+
### Shell Integration {#explorer}
18+
19+
Simply right-click on a folder in Windows Explorer to access the BASH or GUI.
20+
21+
### Git Credential Manager {#git-credential-manager}
22+
23+
[Git Credential Manager](https://github.com/git-ecosystem/git-credential-manager) provides secure credential storage with authentication to GitHub, Azure Repos, and other popular Git hosting services.
24+
25+
</div>
26+
</div>
27+
<div class="vcentercontainer detailsimg">
28+
<div class="verticalgallery">
29+
30+
<a class="fancybox-thumb" data-fancybox-group="gallery" href="img/gw1.png" title="Git BASH">
31+
<img src="img/gw1web_thumb.png" alt="Git BASH">
32+
</a>
33+
<a class="fancybox-thumb" data-fancybox-group="gallery" href="img/gw2.png" title="Git GUI">
34+
<img src="img/gw2web_thumb.png" alt="Git GUI">
35+
</a>
36+
<a class="fancybox-thumb" data-fancybox-group="gallery" href="img/gw3.png" title="Gitk: Exploring Commits">
37+
<img src="img/gw3web_thumb.png" alt="Gitk: Exploring Commits">
38+
</a>
39+
<a class="fancybox-thumb" data-fancybox-group="gallery" href="img/gw4.png" title="Git Credential Manager: OAuth authentication">
40+
<img src="img/gw4.png" alt="Git Credential Manager: OAuth authentication">
41+
</a>
42+
</div>
43+
</div>
44+
</div>
45+
<div class="stud"></div>
46+
47+
## Contribute {#contribute}
48+
49+
<div class="content contributecontent">
50+
<div class="vcentercontainer detailsimg">
51+
<div>
52+
<img src="img/details_features.png" alt="BASH Drawing">
53+
<img src="img/details_contribute.png" alt="Git for Windows Logo">
54+
</div>
55+
</div>
56+
<div class="vcentercontainer detailstext">
57+
<div>
58+
59+
As an open source project, Git for Windows benefits greatly from both the volunteer work of helpful developers and [good bug reports](https://github.com/git-for-windows/git/wiki/Issue-reporting-guidelines) made by Git for Windows' users.
60+
61+
### Governance Model
62+
63+
If you are interested in contributing to the <i>Git for Windows</i> project, have a look at the current [governance model](governance-model.html). There the roles of those involved in driving this project further down the road are described in detail.
64+
65+
### Bug Reports &amp; Feature Requests {#issues name="issues"}
66+
67+
If you've noticed a bug or simply have an idea that you'd like to see become real, why not work on it? Bug reports and feature requests are typically submitted to the issue tracker on our GitHub repository.
68+
69+
<a class="button" href="https://github.com/git-for-windows/git/issues" target="_blank">Issue Tracker</a>
70+
71+
<h3><span class="gittext">Git for Windows SDK</span> : Contributing Code</h3>
72+
73+
The _Git for Windows SDK_ is a build environment that includes all the tools necessary for developers who want to contribute by writing code for Git for Windows.
74+
75+
Please look at the [technical overview](https://github.com/git-for-windows/git/wiki/Technical-overview) of the Git for Windows packaging and how to include your changes in your own custom installer.
76+
77+
<a name="download-sdk" /><a class="button" href="https://github.com/git-for-windows/build-extra/releases/latest" target="_blank">Download <span class="gittext">Git for Windows SDK</span></a>
78+
79+
To contribute/update this web page, see its [Repository]( https://github.com/git-for-windows/git-for-windows.github.io).
80+
81+
</div>
82+
</div>
83+
</div>
84+
<div class="stud">
85+
<a href="https://twitter.com/GitForWindows" rel="publisher">Twitter</a>
86+
</div>

index.html

Lines changed: 0 additions & 145 deletions
This file was deleted.

layouts/_default/baseof.html

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,12 @@
1515
<script src="js/respond.js"></script>
1616
<![endif]-->
1717
</head>
18-
<body class="page">
18+
<body{{ if ne "home" .Kind }} class="page"{{ end }}>
19+
{{ if eq "home" .Kind -}}
20+
{{- partial "header" . -}}
21+
{{- else -}}
1922
{{- partial "footer" . -}}
23+
{{- end }}
2024
<section class="details">
2125
<article>
2226
{{ block "main" . }}
@@ -35,6 +39,21 @@
3539
$(".fancybox-thumb").fancybox({
3640
padding: 0
3741
});
42+
{{ if eq "home" .Kind -}}
43+
/* Replace the download link if a Windows browser was detected */
44+
try {
45+
var agent = window.navigator.userAgent;
46+
var href = $('.version > a')[0].href.match(/^(.*\/)tag(\/.*)$/);
47+
var version = $('.version > a')[0].title.match(/^Version ([0-9.]*)(\(([0-9]*)?\))?/);
48+
if (!agent.match(/Windows/) || !href || !version)
49+
throw 0;
50+
var bitness = agent.match(/(WOW|Win)64/) ? '64' : '32';
51+
if (version[2])
52+
version[1] += '.' + version[3];
53+
var url = href[1] + 'download' + href[2] + '/Git-' + version[1] + '-' + bitness + '-bit.exe';
54+
$('a.button:contains("Download")')[0].href = url;
55+
} catch(e) {}
56+
{{ end -}}
3857
});
3958
</script>
4059
</body>

layouts/partials/footer.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
<footer>
22
<div class="content">
33
<ul class="list-unstyled">
4-
<li><a href="https://github.com/git-for-windows/git/wiki/FAQ" target="_blank">FAQ</a></li>
4+
<li><a{{ if eq "home" .Kind }} style="font-weight:bold"{{end}} href="https://github.com/git-for-windows/git/wiki/FAQ" target="_blank">FAQ</a></li>
55
<li><a href="https://github.com/git-for-windows/git" target="_blank">Repository</a></li>
66
<li><a href="http://groups.google.com/group/git-for-windows" target="_blank">Mailing List</a></li>
7+
{{- if eq "home" .Kind }}
8+
<li><a href="https://github.com/git-for-windows/git/releases/">All Releases</a></li>
9+
<li><a href="https://gitforwindows.org/git-snapshots/">Snapshots</a></li>
10+
<li><a href="https://github.com/git-for-windows/build-extra/blob/master/ReleaseNotes.md#licenses">Licenses</a></li>
11+
{{- end }}
712
</ul>
813
<a href="index.html"><h1 class="gittext lowercase">Git for Windows</h1></a>
914
<div class="stud"></div>

layouts/partials/header.html

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<header>
2+
<nav class="content">
3+
<a href="index.html"><h1 class="gittext lowercase">Git<span>for Windows</span></h1></a>
4+
<div class="version"><a href="https://github.com/git-for-windows/git/releases/tag/v2.48.1.windows.1" title="Version 2.48.1 was published on Thu, 13 Feb 2025 12:50:46 UTC">Version 2.48.1</a></div>
5+
<ul class="list-unstyled">
6+
<li><a style="font-weight:bold" href="https://github.com/git-for-windows/git/wiki/FAQ" target="_blank">FAQ</a></li>
7+
<li><a href="https://github.com/git-for-windows/git" target="_blank">Repository</a></li>
8+
<li><a href="https://groups.google.com/group/git-for-windows" target="_blank">Mailing List</a></li>
9+
</ul>
10+
</nav>
11+
<section class="content feature">
12+
<div class="imagerollover">
13+
<img src="img/gwindows_logo.png" alt="Git Logo">
14+
<img class="top" src="img/git_logo.png" alt="Git Logo">
15+
</div>
16+
<article>
17+
<div class="vcentercontainer">
18+
<div>
19+
<h2>We bring the awesome <span class="gittext">Git</span> SCM to Windows</h2>
20+
<a name="download" /><a class="button featurebutton" href="https://github.com/git-for-windows/git/releases/latest" target="_blank">Download</a>
21+
<a class="button featurebutton" href="#contribute">Contribute</a>
22+
</div>
23+
</div>
24+
</article>
25+
</section>
26+
</header>
27+

0 commit comments

Comments
 (0)