Skip to content

Commit

Permalink
hugo objects
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudlevy committed Jul 30, 2024
1 parent dea08da commit f04c7b9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions app/views/admin/application/categories/_static.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,15 @@ taxonomies:
- name: "<%= prepare_text_for_static taxonomy.to_s %>"
slug: "<%= taxonomy.slug %>"
categories:
<% about_categories.in_taxonomy(taxonomy).each do |category| %>
<%
about_categories.in_taxonomy(taxonomy).each do |category|
hugo = category.hugo(@website)
%>
- name: "<%= prepare_text_for_static category.to_s %>"
slug: "<%= category.slug %>"
permalink: "<%= hugo.permalink %>"
file: "<%= hugo.file %>"
path: "<%= hugo.path %>"
slug: "<%= hugo.slug %>"
<% end %>
<% end %>
<% end %>

0 comments on commit f04c7b9

Please sign in to comment.