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">
|
<div class="blogpreview-tags">
|
||||||
<% post[:tags]&.each do |tag| %>
|
<% post[:tags]&.each do |tag| %>
|
||||||
<!-- The following code is a bit hacky, fix when necessary -->
|
<!-- The following code is a bit hacky, fix when necessary -->
|
||||||
<a class="tag is-normal is-rounded" href=<%= "/blog/#{tag.gsub(' ', '_')}/index.html" %>>
|
<a class="tag is-normal is-rounded" href=<%= "/blog/#{tag.split.map(&:capitalize).join('_')}/index.html" %>>
|
||||||
<%= tag %>
|
<%= tag.split.map(&:capitalize).join(' ') %>
|
||||||
</a>
|
</a>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue