Skip to content

Commit 81db80e

Browse files
committed
default to site.name for page titles
1 parent bacb7d1 commit 81db80e

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

_layouts/default.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@
33
<head>
44
<meta http-equiv="X-UA-Compatible" content="IE=edge">
55
<meta charset="utf-8">
6-
<title>{{ page.title }}</title>
6+
<title>
7+
{% if page.title == null %}
8+
{{ site.name }}
9+
{% else %}
10+
{{ page.title }} - {{ site.name }}
11+
{% endif %}
12+
</title>
713
<meta name="viewport" content="width=device-width">
814
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/normalize.css">
915
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/main.css">

index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
layout: default
3-
title: DOCter
43
---
54

65
{% capture index %}{% include index.md %}{% endcapture %}

0 commit comments

Comments
 (0)