Skip to content

Commit 99c2ced

Browse files
committed
Extract the footer to a "partial template"
This allows for better reuse of the footer. (And yes, it is not quite correct a name, given that the current pages also show it at a header; This will all make more sense once the home page is converted to Hugo, where a different header is shown.) Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent 4941a75 commit 99c2ced

File tree

2 files changed

+14
-22
lines changed

2 files changed

+14
-22
lines changed

layouts/_default/baseof.html

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -31,35 +31,15 @@
3131
<![endif]-->
3232
</head>
3333
<body>
34-
<footer>
35-
<div class="content">
36-
<ul class="list-unstyled">
37-
<li><a href="https://github.com/git-for-windows/git/wiki/FAQ" target="_blank">FAQ</a></li>
38-
<li><a href="https://github.com/git-for-windows/git" target="_blank">Repository</a></li>
39-
<li><a href="http://groups.google.com/group/git-for-windows" target="_blank">Mailing List</a></li>
40-
</ul>
41-
<a href="index.html"><h1 class="gittext lowercase">Git for Windows</h1></a>
42-
<div class="stud"></div>
43-
</div>
44-
</footer>
34+
{{- partial "footer" . -}}
4535
<section class="details">
4636
<article>
4737
{{ block "main" . }}
4838
{{ .Content }}
4939
{{ end }}
5040
</article>
5141
</section>
52-
<footer>
53-
<div class="content">
54-
<ul class="list-unstyled">
55-
<li><a href="https://github.com/git-for-windows/git/wiki/FAQ" target="_blank">FAQ</a></li>
56-
<li><a href="https://github.com/git-for-windows/git" target="_blank">Repository</a></li>
57-
<li><a href="http://groups.google.com/group/git-for-windows" target="_blank">Mailing List</a></li>
58-
</ul>
59-
<a href="index.html"><h1 class="gittext lowercase">Git for Windows</h1></a>
60-
<div class="stud"></div>
61-
</div>
62-
</footer>
42+
{{ partial "footer" . }}
6343
{{- $jquery := resources.Get "js/jquery-1.10.2.min.js" -}}
6444
{{- $fancybox := resources.Get "js/jquery.fancybox.js" -}}
6545
{{- $mousewheel := resources.Get "js/jquery.mousewheel.js" -}}

layouts/partials/footer.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<footer>
2+
<div class="content">
3+
<ul class="list-unstyled">
4+
<li><a href="https://github.com/git-for-windows/git/wiki/FAQ" target="_blank">FAQ</a></li>
5+
<li><a href="https://github.com/git-for-windows/git" target="_blank">Repository</a></li>
6+
<li><a href="http://groups.google.com/group/git-for-windows" target="_blank">Mailing List</a></li>
7+
</ul>
8+
<a href="index.html"><h1 class="gittext lowercase">Git for Windows</h1></a>
9+
<div class="stud"></div>
10+
</div>
11+
</footer>
12+

0 commit comments

Comments
 (0)