Skip to content

Commit 00f0efd

Browse files
committed
Refactor page title rendering
1 parent df0c893 commit 00f0efd

File tree

10 files changed

+9
-10
lines changed

10 files changed

+9
-10
lines changed

_includes/top.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
55
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
6-
<title>{{ page.title }}</title>
6+
<title>{% if page.title %}{{ page.title }} - {% endif %}Elixir</title>
77
<link rel="stylesheet" type="text/css" href="/css/style.css">
88
<link rel="shortcut icon" href="/images/logo/drop.png">
99
<meta name="viewport" content="width=device-width,initial-scale=1">

blog.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Elixir's Blog
2+
title: Blog
33
active: 3
44
section: blog
55
---

getting_started/1.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: getting_started
3-
title: Elixir - 1. Introduction
3+
title: 1. Introduction
44
active: 2
55
guide: 1
66
---

getting_started/2.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: getting_started
3-
title: Elixir - 2. Diving in
3+
title: 2. Diving in
44
active: 2
55
guide: 2
66
---

getting_started/3.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: getting_started
3-
title: Elixir - 3. Modules
3+
title: 3. Modules
44
active: 2
55
guide: 3
66
---

getting_started/4.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: getting_started
3-
title: Elixir - 4. Protocols & Records
3+
title: 4. Protocols & Records
44
active: 2
55
guide: 4
66
---

getting_started/5.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: getting_started
3-
title: Elixir - 5. Macros
3+
title: 5. Macros
44
active: 2
55
guide: 5
66
---

getting_started/6.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: getting_started
3-
title: Elixir - 6. Other topics
3+
title: 6. Other topics
44
active: 2
55
guide: 6
66
---

getting_started/7.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: getting_started
3-
title: Elixir - 7. Where To Go Next
3+
title: 7. Where To Go Next
44
active: 2
55
guide: 7
66
---

index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
title: Elixir
32
active: 1
43
section: home
54
---

0 commit comments

Comments
 (0)