From 7cc86c0f37d4736b12ad575704a8f4467ebd178e Mon Sep 17 00:00:00 2001 From: Matthew Grove Date: Sun, 13 Dec 2020 11:04:14 +0000 Subject: [PATCH] Fix bug where sitemap was shown in project list --- _includes/header.html | 3 ++- _layouts/home.html | 3 ++- _site/comsci/index.html | 6 ++++++ _site/index.html | 12 ++++++++++++ _site/luhn-algorithm/index.html | 6 ++++++ _site/site-theme/index.html | 6 ++++++ _site/young-reporter/index.html | 6 ++++++ 7 files changed, 40 insertions(+), 2 deletions(-) diff --git a/_includes/header.html b/_includes/header.html index 538e9cd..530626a 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -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" %}
  • {{ project.title }}
  • {% endif %} diff --git a/_layouts/home.html b/_layouts/home.html index e872c6a..66f6e73 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -30,7 +30,8 @@
    {% 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" %}
    diff --git a/_site/comsci/index.html b/_site/comsci/index.html index 219c54c..dd8a3d6 100644 --- a/_site/comsci/index.html +++ b/_site/comsci/index.html @@ -64,10 +64,13 @@ + +
  • BBC Young Reporter Article Generator
  • +
  • Computer Science
  • @@ -75,10 +78,13 @@ + +
  • Luhn Algorithm
  • +
  • Site Theme
  • diff --git a/_site/index.html b/_site/index.html index 04075b6..c2558ec 100644 --- a/_site/index.html +++ b/_site/index.html @@ -64,20 +64,26 @@ + +
  • BBC Young Reporter Article Generator
  • +
  • Computer Science
  • + +
  • Luhn Algorithm
  • +
  • Site Theme
  • @@ -112,6 +118,8 @@ + +
    @@ -125,6 +133,7 @@ +
    @@ -140,6 +149,8 @@ + +
    @@ -153,6 +164,7 @@ +
    diff --git a/_site/luhn-algorithm/index.html b/_site/luhn-algorithm/index.html index 410fec1..58e7c99 100644 --- a/_site/luhn-algorithm/index.html +++ b/_site/luhn-algorithm/index.html @@ -64,21 +64,27 @@ + +
  • BBC Young Reporter Article Generator
  • +
  • Computer Science
  • + +
  • Luhn Algorithm
  • +
  • Site Theme
  • diff --git a/_site/site-theme/index.html b/_site/site-theme/index.html index dfb19cb..390dcec 100644 --- a/_site/site-theme/index.html +++ b/_site/site-theme/index.html @@ -64,20 +64,26 @@ + +
  • BBC Young Reporter Article Generator
  • +
  • Computer Science
  • + +
  • Luhn Algorithm
  • +
  • Site Theme
  • diff --git a/_site/young-reporter/index.html b/_site/young-reporter/index.html index 1e33cb4..b1dff9b 100644 --- a/_site/young-reporter/index.html +++ b/_site/young-reporter/index.html @@ -64,21 +64,27 @@ + +
  • BBC Young Reporter Article Generator
  • +
  • Computer Science
  • + +
  • Luhn Algorithm
  • +
  • Site Theme