Skip to content

Commit

Permalink
add so titles for article pages
Browse files Browse the repository at this point in the history
  • Loading branch information
blairanderson committed Nov 7, 2015
1 parent 55bd293 commit 3ded5d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions app/views/items/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
<%= render_votes_for_item(@item) %>
<span>comments: <%= @item.comments_count %></span>
</p>

<%= content_for(:title) do %>
<%= @item.title %>
<% end %>
<p>
<strong>
<%= link_to @item.title, @item, title: @item.url %>
<h1><%= link_to @item.title, @item, title: @item.url %></h1>
<small>(<%= @item.url %>)</small>
</strong>
<span><small>(posted by: <%= link_to @item.user.username, @item.user %>)</small></span>
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title><%= seo_title_text %></title>
<title><%= "#{yield(:title)} |" %><%= seo_title_text %></title>
<%= stylesheet_link_tag 'application', media: 'all' %>
<%= javascript_include_tag 'application' %>
<%= csrf_meta_tags %>
Expand Down

0 comments on commit 3ded5d8

Please sign in to comment.