Fix: Add articles order in category show page (#6662)

This commit is contained in:
Tejaswini Chile
2023-03-14 20:00:01 +05:30
committed by GitHub
parent abe57873db
commit 24f8befdf2

View File

@@ -32,7 +32,7 @@
<p class="text-sm text-slate-500"><%= I18n.t('public_portal.common.no_articles') %></p>
</div>
<% else %>
<% @category.articles.published.each do |article| %>
<% @category.articles.published.order(:position).each do |article| %>
<a
class="text-slate-800 flex justify-between content-center mb-4 py-2"
href="/hc/<%= @portal.slug %>/<%= @category.locale %>/<%= @category.slug %>/<%= article.id %>"