Fix bug where sitemap was shown in project list
This commit is contained in:
@@ -15,7 +15,8 @@
|
||||
|
||||
{% assign all_pages = site.pages | sort: "title" %}
|
||||
{% 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" %}
|
||||
<li><a href="{{ project.url | relative_url }}" {% if project.url == page.url %} class="current-page-link"
|
||||
{% endif %}>{{ project.title }}</a></li>
|
||||
{% endif %}
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -64,10 +64,13 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li><a href="/young-reporter/" >BBC Young Reporter Article Generator</a></li>
|
||||
|
||||
|
||||
|
||||
|
||||
<li><a href="/comsci/" class="current-page-link"
|
||||
>Computer Science</a></li>
|
||||
|
||||
@@ -75,10 +78,13 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li><a href="/luhn-algorithm/" >Luhn Algorithm</a></li>
|
||||
|
||||
|
||||
|
||||
|
||||
<li><a href="/site-theme/" >Site Theme</a></li>
|
||||
|
||||
|
||||
|
||||
@@ -64,20 +64,26 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li><a href="/young-reporter/" >BBC Young Reporter Article Generator</a></li>
|
||||
|
||||
|
||||
|
||||
|
||||
<li><a href="/comsci/" >Computer Science</a></li>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li><a href="/luhn-algorithm/" >Luhn Algorithm</a></li>
|
||||
|
||||
|
||||
|
||||
|
||||
<li><a href="/site-theme/" >Site Theme</a></li>
|
||||
|
||||
|
||||
@@ -112,6 +118,8 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<section>
|
||||
<div class="content">
|
||||
<header>
|
||||
@@ -125,6 +133,7 @@
|
||||
|
||||
|
||||
|
||||
|
||||
<section>
|
||||
<div class="content">
|
||||
<header>
|
||||
@@ -140,6 +149,8 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<section>
|
||||
<div class="content">
|
||||
<header>
|
||||
@@ -153,6 +164,7 @@
|
||||
|
||||
|
||||
|
||||
|
||||
<section>
|
||||
<div class="content">
|
||||
<header>
|
||||
|
||||
@@ -64,21 +64,27 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li><a href="/young-reporter/" >BBC Young Reporter Article Generator</a></li>
|
||||
|
||||
|
||||
|
||||
|
||||
<li><a href="/comsci/" >Computer Science</a></li>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li><a href="/luhn-algorithm/" class="current-page-link"
|
||||
>Luhn Algorithm</a></li>
|
||||
|
||||
|
||||
|
||||
|
||||
<li><a href="/site-theme/" >Site Theme</a></li>
|
||||
|
||||
|
||||
|
||||
@@ -64,20 +64,26 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li><a href="/young-reporter/" >BBC Young Reporter Article Generator</a></li>
|
||||
|
||||
|
||||
|
||||
|
||||
<li><a href="/comsci/" >Computer Science</a></li>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li><a href="/luhn-algorithm/" >Luhn Algorithm</a></li>
|
||||
|
||||
|
||||
|
||||
|
||||
<li><a href="/site-theme/" class="current-page-link"
|
||||
>Site Theme</a></li>
|
||||
|
||||
|
||||
@@ -64,21 +64,27 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li><a href="/young-reporter/" class="current-page-link"
|
||||
>BBC Young Reporter Article Generator</a></li>
|
||||
|
||||
|
||||
|
||||
|
||||
<li><a href="/comsci/" >Computer Science</a></li>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li><a href="/luhn-algorithm/" >Luhn Algorithm</a></li>
|
||||
|
||||
|
||||
|
||||
|
||||
<li><a href="/site-theme/" >Site Theme</a></li>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user