Skip to content

Commit b262811

Browse files
committed
Set the title according to the front matter (if it is set there)
The front matter (i.e. the initial part of the `.md` files enclosed within `---` lines) can be used to specify a title. Let's use that information in the HTML header to stop calling every single page "Git for Windows". Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent 6d37921 commit b262811

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layouts/_default/baseof.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8">
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6-
<title>Git for Windows</title>
6+
<title>{{ if ne "" .Title }}{{ .Title }}{{ else }}Git for Windows{{ end }}</title>
77
<meta name="description" content="We bring the awesome Git VCS to Windows">
88
<meta name="viewport" content="width=device-width, initial-scale=1">
99
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,700">

0 commit comments

Comments
 (0)