Skip to content

Commit

Permalink
Updated page keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
dalezak committed Feb 9, 2022
1 parent 15faf71 commit f3678e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ def description(description="")
content_for :description, description
end

def keywords(keywords="")
content_for :keywords, keywords
end

def sanitize(content)
ActionController::Base.helpers.sanitize(content)
end
Expand Down
1 change: 1 addition & 0 deletions app/views/gems/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<% title ["Gems", @gem] %>
<% description @gem.title || @gem.description %>
<% keywords @gem.tag_list %>

<%= turbo_frame_tag dom_id(@gem, :details) do %>
<%= render "/gems/details", gem: @gem %>
Expand Down

0 comments on commit f3678e3

Please sign in to comment.