Skip to content

Commit

Permalink
coses #136
Browse files Browse the repository at this point in the history
* SEO 対策のタグを追加
* タイトルが View 側で指定されているときも環境名をタイトルに出すように修正
  • Loading branch information
youcune committed Aug 8, 2014
1 parent 9d31abf commit a20c484
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion app/views/home/intro.html.haml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
- content_for(:title) {"Friends Pop (フレンズポップ)"}
- content_for(:header) do
= stylesheet_link_tag "intro"

Expand Down
6 changes: 3 additions & 3 deletions app/views/layouts/application.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
%html
%head
%meta{ charset: 'UTF-8' }
%meta{ name: 'viewport', content: 'initial-scale=1.0, user-scalable=no'}
%meta{ name: 'viewport', content: 'initial-scale=1.0, user-scalable=no' }
%meta{ name: 'description', content: '「友人の友人」を探そう、つながろう。友人紹介サービスです。' }
%meta{property:"og:title",content:"フレンズポップ(friends-pop)"}
%meta{property:"og:type",content:"website"}
%meta{property:"og:url",content:"http://friends-pop.kumonos.jp"}
%meta{property:"og:locale",content:"ja_JP"}
%meta{property:"og:image",content:"http://res.cloudinary.com/whoswhoplus/image/upload/v1402806372/title_friends-pop_wdovqb.png"}
%meta{property:"og:site_name",content:"フレンズポップ"}
%meta{property:"og:description",content:"「友人の友人」を探そう、つながろう。友人紹介サービスです。"}
%title
= content_for?(:title) ? yield(:title) : "#{rails_env}Friends Pop(フレンズポップ)"
%title= "#{rails_env}#{content_for?(:title) ? yield(:title) : 'Friends Pop(フレンズポップ) | 「友人の友人」を探そう、つながろう'}"
= stylesheet_link_tag 'application'
= javascript_include_tag 'application'
= csrf_meta_tags
Expand Down

0 comments on commit a20c484

Please sign in to comment.