added meta description tag

This commit is contained in:
albert
2011-11-11 18:02:30 -05:00
parent 41d2634304
commit 36f4d80d9b
3 changed files with 11 additions and 1 deletions

View File

@@ -31,3 +31,9 @@
</div>
</div>
<%= content_for(:html_header) do %>
<%= auto_discovery_link_tag :atom, :controller => "posts", :action => "index", :format => "atom", :tags => params[:tags] %>
<% if @post_set.wiki_page %>
<meta name="description" content="<%= @post_set.wiki_page.presenter.blurb %>"></meta>
<% end %>
<% end %>

View File

@@ -2,7 +2,7 @@
<%= error_messages_for("wiki_page") %>
<%= simple_form_for(@wiki_page) do |f| %>
<%= f.input :title %>
<%= f.input :title, :as => :string %>
<%= dtext_field "wiki_page", "body" %>