History

Tweak page titles

Thibaut committed 11 years ago

Commit fb7c3a91 parent d8a97983 files · +3 −4Browse files

Unified · Split

3 files
  1. assets/javascripts/views/content/entry_page.coffee +1 −1
  2. assets/javascripts/views/layout/document.coffee +1 −2
  3. views/other.erb +1 −1
assets/javascripts/views/content/entry_page.coffee+1−1
@@ -65,7 +65,7 @@ class app.views.EntryPage extends app.View · 64 unmodified lines
6565 app.views["#{docType[0].toUpperCase()}#{docType[1..]}Page"] or app.views.BasePage
6666
6767 getTitle: ->
68− @entry.doc.name + if @entry.isIndex() then '' else "/#{@entry.name}"
68+ @entry.doc.name + if @entry.isIndex() then ' documentation' else "/#{@entry.name}"
6969
7070 beforeRoute: =>
7171 @abort()
assets/javascripts/views/layout/document.coffee+1−2
@@ -14,7 +14,6 @@ class app.views.Document extends app.View · 13 unmodified lines
1414 @addSubview @content = new app.views.Content
1515 @addSubview @path = new app.views.Path unless app.isSingleDoc() or app.isMobile()
1616
17− @setTitle()
1817 @activate()
1918 return
2019
@@ -28,7 +27,7 @@ class app.views.Document extends app.View · 7 unmodified lines
2827 return
2928
3029 setTitle: (title) ->
31− @el.title = if title then "DevDocs / #{title}" else 'DevDocs API Documentation'
30+ @el.title = if title then "DevDocs - #{title}" else 'DevDocs API Documentation'
3231
3332 onHelp: ->
3433 app.router.show '/help#shortcuts'
views/other.erb+1−1
@@ -6,7 +6,7 @@ · 5 unmodified lines
66 <% if doc_index_page? %><meta name="description" content="<%= @doc['name'] %> API documentation with instant search, offline mode, keyboard shortcuts, mobile version, and more."><% else %><meta name="robots" content="noindex"><% end %>
77 <meta name="format-detection" content="telephone=no">
88 <meta property="og:image" content="http://cdn.devdocs.io/images/icon-128.png">
9− <title>DevDocs<%= " / #{@doc['name']}" if doc_index_page? %></title>
9+ <title>DevDocs<%= " - #{@doc['name']} documentation" if doc_index_page? %></title>
1010 <link rel="canonical" href="http://devdocs.io<%= request.path %>">
1111 <link rel="icon" type="image/x-icon" href="//cdn.devdocs.io/favicon.ico">
1212 <link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="Search DevDocs">