Skip to content

Commit 10c86c2

Browse files
committed
Add a site map
We are about to migrate all the wiki pages to this site, therefore it makes sense to have a page listing all of the site's pages. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 79e4d9d commit 10c86c2

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

content/sitemap.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: Site Map
3+
---
4+
# Site Map
5+
6+
{{< sitemap >}}

layouts/partials/footer.html

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<li><a href="https://gitforwindows.org/git-snapshots/">Snapshots</a></li>
1010
<li><a href="https://github.com/git-for-windows/build-extra/blob/master/ReleaseNotes.md#licenses">Licenses</a></li>
1111
{{- end }}
12+
<li><a href="./sitemap.html">Site Map</a></li>
1213
</ul>
1314
<a href="index.html"><h1 class="gittext lowercase">Git for Windows</h1></a>
1415
<div class="stud"></div>

layouts/shortcodes/sitemap.html

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<ul class="page-index">
2+
{{ range .Site.Pages }}
3+
{{ if ne "" .Title }}
4+
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
5+
{{ end }}
6+
{{ end }}
7+
</ul>

0 commit comments

Comments
 (0)