Skip to content

Commit bcee60a

Browse files
committed
Merge pull request #32 from rspec/adding_page_titles
Add individual page titles
2 parents 08c0762 + 17bb534 commit bcee60a

File tree

7 files changed

+18
-1
lines changed

7 files changed

+18
-1
lines changed

source/about.html.slim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
title: About RSpec
23
team:
34
-
45
name: Myron Marston

source/contributing.html.slim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
---
2+
title: Contributing to RSpec
3+
---
14
section
25
article.contributing
36
h2 Contributing

source/documentation.html.slim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
---
2+
title: RSpec documentation
3+
---
14
section
25
article.relish
36
h2 Relish

source/help.html.slim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
---
2+
title: Getting help with RSpec
3+
---
14
section
25
article.help
36
h2 Get Help

source/index.slim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
title: "RSpec: Behaviour Driven Development for Ruby"
3+
---
4+
15
section.hero
26
article.hero-text
37
= image_tag 'logo.png', :alt => "RSpec Logo"

source/layouts/layout.slim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ html.no-js lang="en"
1616
head
1717
meta charset="UTF-8"
1818

19-
title RSpec: Behaviour Driven Development for Ruby
19+
title= current_page.data.title
2020

2121
== stylesheet_link_tag 'application', 'normalize'
2222
== stylesheet_link_tag "pages/#{primary_page_class}"

source/upgrading-from-rspec-2.html.slim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
---
2+
title: Upgrading from RSpec 2 to 3
3+
---
14
section
25
article.upgrade
36
h2 Upgrading from RSpec 2

0 commit comments

Comments
 (0)