Skip to content

Commit

Permalink
Application title tag improve
Browse files Browse the repository at this point in the history
  • Loading branch information
Kemal AKIN committed Jan 29, 2019
1 parent 7be9213 commit cd84ed1
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
%html.no-js{ lang: I18n.locale }
%head
%title
- if content_for?(:title)
= "#{yield(:title)} - <%= app_name.capitalize %>"
- else
= '<%= app_name.capitalize %>'
= content_for?(:title) ? "#{yield(:title)} - <%= app_name.capitalize %>" : '<%= app_name.capitalize %>'
%meta{ 'http-equiv': 'content-type', content: 'text/html', charset: 'utf-8' }
%meta{ 'http-equiv': 'x-ua-compatible', content: 'ie=edge,chrome=1' }
%meta{ name: 'description', content: '<%= app_name.capitalize %>' }
Expand Down

0 comments on commit cd84ed1

Please sign in to comment.