Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
arandanos80 authored Dec 2, 2024
1 parent 1eb4188 commit 21e3af1
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,11 @@ <h1>¡Consejos Útiles para developers!</h1>
<ul>
{% assign tips = site.pages | where: "path", "Tips" %}
{% assign sorted_tips = tips | sort: "title" %}

{% assign sorted_list = "" %}
{% for tip in tips %}
{% assign tip_number = tip.title | remove: "tip" | plus: 0 %}
{% assign sorted_list = sorted_list | push: { "number": tip_number, "tip": tip } %}
{% endfor %}

{% assign sorted_list = sorted_list | sort: "number" %}
{% for item in sorted_list %}
<li><a href="/Tip_Of_The_Week{{ item.tip.url }}">{{ item.tip.title }}</a></li>

{% for tip in sorted_tips %}
{% if tip.path contains 'Tips' %}
<li><a href="/Tip_Of_The_Week{{ tip.url }}">{{ tip.title }}</a></li>
{% endif %}
{% endfor %}
</ul>

Expand Down

0 comments on commit 21e3af1

Please sign in to comment.