about summary refs log tree commit diff
path: root/app/views/layouts/application.html.haml
diff options
context:
space:
mode:
authorEugen <eugen@zeonfederated.com>2017-04-07 11:09:14 +0200
committerGitHub <noreply@github.com>2017-04-07 11:09:14 +0200
commit1c351709bc45611c2ed48fb8539c2b27ab51b6fe (patch)
tree4ba87550f7c2ef476b59a71a0eeac8153f24ec53 /app/views/layouts/application.html.haml
parent6d6a429af8fe4bd92ed497f401676353fdc603e0 (diff)
Force UTF8 encoding on generated XML (#1140)
Diffstat (limited to 'app/views/layouts/application.html.haml')
-rw-r--r--app/views/layouts/application.html.haml6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml
index 7eae6982b..abab14a28 100644
--- a/app/views/layouts/application.html.haml
+++ b/app/views/layouts/application.html.haml
@@ -11,8 +11,10 @@
     %meta{:name => "theme-color", :content => "#282c37"}/
     %meta{:name => "apple-mobile-web-app-capable", :content => "yes"}/
 
-    %title
-      = "#{yield(:page_title)} - " if content_for?(:page_title)
+    %title<
+      - if content_for?(:page_title)
+        = yield(:page_title)
+        = ' - '
       = Setting.site_title
 
     = stylesheet_link_tag 'application', media: 'all'