Skip to content

Commit

Permalink
Update search.html
Browse files Browse the repository at this point in the history
  • Loading branch information
angeidheal committed Jul 26, 2023
1 parent 6573129 commit db389e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions search.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ <h2>Lorg</h2>

<h2>Roinnean-seòrsa</h2>

{% for category in data.categories %}
<div class="categories-title"><a href="{{ category.url }}">{{ category.title }}</a></div>
{% for category in data.categories | sort %}
<div class="categories-title"><a href="{{ category.url }}">{{ category | first }}</a></div>
{% endfor %}

{% assign sorted_categories = site.categories | sort %}
{% for category in sorted_categories %}
<div class="categories-title"><a href="/roinn-seorsa/{{ category | first | slugify | downcase | replace: 'à', 'a' | replace: 'è, 'e' | replace: 'ì', 'i' | replace: 'ò', 'o' | replace: 'ù', 'u' }}">{{ category | first }}</a></div>
<div class="categories-title"><a href="/roinn-seorsa/{{ category | first | slugify | downcase }}">{{ category | first }}</a></div>
{% endfor %}

<!--Most recent posts in each category
Expand Down

0 comments on commit db389e7

Please sign in to comment.