From 17bb5347dfab0c37d7fc01ecb908d16faca508dd Mon Sep 17 00:00:00 2001 From: Jon Rowe Date: Tue, 16 Dec 2014 21:23:47 +1100 Subject: [PATCH] add individual page titles --- source/about.html.slim | 1 + source/contributing.html.slim | 3 +++ source/documentation.html.slim | 3 +++ source/help.html.slim | 3 +++ source/index.slim | 4 ++++ source/layouts/layout.slim | 2 +- source/upgrading-from-rspec-2.html.slim | 3 +++ 7 files changed, 18 insertions(+), 1 deletion(-) diff --git a/source/about.html.slim b/source/about.html.slim index a2ff9c0cd..a46d0d3b0 100644 --- a/source/about.html.slim +++ b/source/about.html.slim @@ -1,4 +1,5 @@ --- +title: About RSpec team: - name: Myron Marston diff --git a/source/contributing.html.slim b/source/contributing.html.slim index 9fefa9aae..5ed57ac74 100644 --- a/source/contributing.html.slim +++ b/source/contributing.html.slim @@ -1,3 +1,6 @@ +--- +title: Contributing to RSpec +--- section article.contributing h2 Contributing diff --git a/source/documentation.html.slim b/source/documentation.html.slim index 119a4e261..4cf3059d3 100644 --- a/source/documentation.html.slim +++ b/source/documentation.html.slim @@ -1,3 +1,6 @@ +--- +title: RSpec documentation +--- section article.relish h2 Relish diff --git a/source/help.html.slim b/source/help.html.slim index 484888261..b944ed40d 100644 --- a/source/help.html.slim +++ b/source/help.html.slim @@ -1,3 +1,6 @@ +--- +title: Getting help with RSpec +--- section article.help h2 Get Help diff --git a/source/index.slim b/source/index.slim index 0ebea21c5..bf4257a62 100644 --- a/source/index.slim +++ b/source/index.slim @@ -1,3 +1,7 @@ +--- +title: "RSpec: Behaviour Driven Development for Ruby" +--- + section.hero article.hero-text = image_tag 'logo.png', :alt => "RSpec Logo" diff --git a/source/layouts/layout.slim b/source/layouts/layout.slim index 19cf573bb..434518abf 100644 --- a/source/layouts/layout.slim +++ b/source/layouts/layout.slim @@ -16,7 +16,7 @@ html.no-js lang="en" head meta charset="UTF-8" - title RSpec: Behaviour Driven Development for Ruby + title= current_page.data.title == stylesheet_link_tag 'application', 'normalize' == stylesheet_link_tag "pages/#{primary_page_class}" diff --git a/source/upgrading-from-rspec-2.html.slim b/source/upgrading-from-rspec-2.html.slim index 3d367ee4f..0475f7a1a 100644 --- a/source/upgrading-from-rspec-2.html.slim +++ b/source/upgrading-from-rspec-2.html.slim @@ -1,3 +1,6 @@ +--- +title: Upgrading from RSpec 2 to 3 +--- section article.upgrade h2 Upgrading from RSpec 2