Fix bug where sitemap was shown in project list

This commit is contained in:
2020-12-13 11:04:14 +00:00
parent b580c0e080
commit 7cc86c0f37
7 changed files with 40 additions and 2 deletions

View File

@@ -30,7 +30,8 @@
<div class="highlights">
{% for project in all_pages %}
{% if project.url != "/" and project.url != "/index.html" and project.url != "/sitemap.xml" %}
{% assign project_url_end = project.url | slice: -4, -1 %}
{% if project.url != "/" and project.url != "/index.html" and project.url != "/sitemap.xml" and project_url_end != ".css" %}
<section>
<div class="content">
<header>