change tags in blog preview
This commit is contained in:
parent
4b06c40575
commit
444ce9ae7a
1 changed files with 2 additions and 2 deletions
|
@ -12,8 +12,8 @@
|
|||
<div class="blogpreview-tags">
|
||||
<% post[:tags]&.each do |tag| %>
|
||||
<!-- The following code is a bit hacky, fix when necessary -->
|
||||
<a class="tag is-normal is-rounded" href=<%= "/blog/#{tag.gsub(' ', '_')}/index.html" %>>
|
||||
<%= tag %>
|
||||
<a class="tag is-normal is-rounded" href=<%= "/blog/#{tag.split.map(&:capitalize).join('_')}/index.html" %>>
|
||||
<%= tag.split.map(&:capitalize).join(' ') %>
|
||||
</a>
|
||||
<% end %>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue