diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 63457f65f..6a905f1fe 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -2,7 +2,7 @@ - <%=t :title%> + <%= content_for?(:title) ? yield(:title) + ' - ' + t(:title) : t(:title) %> diff --git a/app/views/topics/show.html.erb b/app/views/topics/show.html.erb index 3c3094ca0..679e6fcc8 100644 --- a/app/views/topics/show.html.erb +++ b/app/views/topics/show.html.erb @@ -28,3 +28,5 @@ description: @topic_view.summary, image: @topic_view.image_url) %> <% end %> + +<% content_for(:title) { @topic_view.title } %> \ No newline at end of file