From 11ebbc1cb1e8c4ed4bfa3beeed58facd07bf2ee5 Mon Sep 17 00:00:00 2001 From: Matthew Grove Date: Wed, 6 Mar 2019 06:39:16 +0000 Subject: [PATCH] Update carousel to show all appropriate articles Ensure that if articles are written by more than one author, both authors are compared to each article individually --- _includes/article-carousel.html | 78 ++++++++++++++++++--------------- _site/sitemap.xml | 4 +- 2 files changed, 44 insertions(+), 38 deletions(-) diff --git a/_includes/article-carousel.html b/_includes/article-carousel.html index 331b99b..744a3fc 100644 --- a/_includes/article-carousel.html +++ b/_includes/article-carousel.html @@ -2,49 +2,55 @@ {% assign article_list_displayed = false %} {% for article in site.categories.articles %} {% if article.url != page.url %} - {% for author in article.authors %} - {% for current_author in page.authors %} - {% if author == current_author %} - {% if article_list_displayed == false %} -

- {% if page.authors.first %} - Other Articles By These Authors - {% else %} - Other Articles By This Author - {% endif %} -

- - + {% endif %} {% endif %} diff --git a/_site/sitemap.xml b/_site/sitemap.xml index 479e555..ac6e176 100644 --- a/_site/sitemap.xml +++ b/_site/sitemap.xml @@ -5,7 +5,7 @@ /404.html - 2019-03-05 + 2019-03-06 hourly 0.5 @@ -16,7 +16,7 @@ / - 2019-03-05 + 2019-03-06 hourly 0.5