Fix same bug as previous commit

Previous attempt didn't work
This commit is contained in:
Matthew Grove
2019-03-06 17:46:31 +00:00
parent 04a4cd91f0
commit e2c63ac59d
12 changed files with 402 additions and 107 deletions

View File

@@ -9,6 +9,7 @@
{% if article_date == current_article_date %}
{% assign current_authors = page.authors | split: ", " %}
{% for current_author in current_authors %}
{% assign break = false %}
{% if author == current_author %}
{% if article_list_displayed == false %}
<h2 class="mdc-typography--headline5">
@@ -44,8 +45,8 @@
}
</style>
</div>
{% break %}
{% assign break = true %}
{% break %}
{% endif %}
{% endfor %}
{% endif %}

View File

@@ -252,6 +252,8 @@
@@ -266,6 +268,8 @@
@@ -275,6 +279,8 @@
@@ -289,6 +295,8 @@
@@ -298,6 +306,8 @@
@@ -312,6 +322,8 @@
@@ -321,6 +333,8 @@
@@ -330,6 +344,8 @@
@@ -346,6 +362,8 @@
@@ -360,6 +378,8 @@
@@ -374,6 +394,8 @@
@@ -388,6 +410,8 @@
@@ -402,6 +426,8 @@
@@ -411,6 +437,8 @@
@@ -425,6 +453,8 @@

View File

@@ -241,14 +241,14 @@
<figure>
<img src="/images/2019-03-06-are-the-roads-around-your-home-and-school-safe--extra-1.jpg" style="width:100%;" />
<figcaption class="mdc-typography--caption-text">A graph showing the probability of fatality for motor accidents | &copy;</figcaption>
<figcaption class="mdc-typography--caption-text">A graph showing the probability of fatality for motor accidents | &copy; Getty</figcaption>
</figure>
<p>Reading Schools Head Master Mr Robson has recently given students advice on how to keep themselves safe when walking home, recommending that they do not take out their mobile devices and instead pay attention to their surroundings. RoSPA also says that young pedestrians should wear reflective clothing during winter months and practice the Green Cross Code.</p>
<figure>
<img src="/images/2019-03-06-are-the-roads-around-your-home-and-school-safe--extra-2.jpg" style="width:100%;" />
<figcaption class="mdc-typography--caption-text">An example of cars blocking the path for disabled and elderly people | &copy;</figcaption>
<figcaption class="mdc-typography--caption-text">An example of cars blocking the path for disabled and elderly people | &copy; BBC</figcaption>
</figure>
@@ -264,8 +264,11 @@
@@ -282,8 +285,11 @@
@@ -293,8 +299,11 @@
@@ -309,8 +318,11 @@
@@ -320,8 +332,11 @@
@@ -331,8 +346,11 @@
@@ -347,8 +365,11 @@
@@ -363,8 +384,11 @@
@@ -379,8 +403,11 @@
@@ -395,8 +422,11 @@
@@ -411,8 +441,11 @@
@@ -427,8 +460,11 @@
@@ -438,8 +474,11 @@
@@ -453,9 +492,12 @@

View File

@@ -259,10 +259,14 @@
@@ -277,10 +281,14 @@
@@ -290,10 +298,14 @@
@@ -308,10 +320,14 @@
@@ -321,10 +337,14 @@
@@ -341,10 +361,14 @@
@@ -359,10 +383,14 @@
@@ -377,10 +405,14 @@
@@ -395,10 +427,14 @@
@@ -412,6 +448,7 @@
<h2 class="mdc-typography--headline5">
@@ -446,8 +483,10 @@
</style>
</div>
@@ -459,10 +498,14 @@
@@ -472,10 +515,14 @@
@@ -490,10 +537,14 @@

View File

@@ -264,6 +264,8 @@
@@ -278,6 +280,8 @@
@@ -287,6 +291,8 @@
@@ -301,6 +307,8 @@
@@ -310,6 +318,8 @@
@@ -324,6 +334,8 @@
@@ -333,6 +345,8 @@
@@ -342,6 +356,8 @@
@@ -356,6 +372,8 @@
@@ -372,6 +390,8 @@
@@ -386,6 +406,8 @@
@@ -400,6 +422,8 @@
@@ -414,6 +438,8 @@
@@ -423,6 +449,8 @@
@@ -437,6 +465,8 @@

View File

@@ -241,6 +241,8 @@
@@ -250,6 +252,8 @@
@@ -264,6 +268,8 @@
@@ -273,6 +279,8 @@
@@ -287,6 +295,8 @@
@@ -296,6 +306,8 @@
@@ -305,6 +317,8 @@
@@ -319,6 +333,8 @@
@@ -333,6 +349,8 @@
@@ -347,6 +365,8 @@
@@ -361,6 +381,8 @@
@@ -375,6 +397,8 @@
@@ -389,6 +413,8 @@
@@ -398,6 +424,8 @@
@@ -411,6 +439,7 @@
<h2 class="mdc-typography--headline5">
@@ -445,8 +474,10 @@
</style>
</div>

View File

@@ -257,8 +257,11 @@
@@ -273,8 +276,11 @@
@@ -284,8 +290,11 @@
@@ -302,8 +311,11 @@
@@ -313,8 +325,11 @@
@@ -324,8 +339,11 @@
@@ -340,8 +358,11 @@
@@ -356,8 +377,11 @@
@@ -372,8 +396,11 @@
@@ -388,8 +415,11 @@
@@ -403,9 +433,12 @@
@@ -419,6 +452,7 @@
<h2 class="mdc-typography--headline5">
@@ -453,42 +487,10 @@
</style>
</div>
<!-- display article -->
<div class="mdc-card carousel-item">
<div class="mdc-card__media mdc-card__media--16-9 -articles-2019-03-06-whats-next-for-reading-prison-html"></div>
<div class="mdc-card-content">
<h2 class="mdc-typography--headline6">What's Next For Reading Prison?</h2>
<h3 class="mdc-typography--subtitle2">
<time class="timeago" datetime="2019-03-06T10:38:00">Wednesday 6 March 2019</time>
| by Tom S-R, Ben S-R
</h3>
</div>
<div class="mdc-card__actions">
<div class="mdc-card__action-buttons">
<button class="mdc-button mdc-card__action mdc-card__action--button" data-mdc-auto-init="MDCRipple" onclick="window.location='/articles/2019/03/06/whats-next-for-reading-prison.html';">Read</button>
</div>
</div>
<style>
.-articles-2019-03-06-whats-next-for-reading-prison-html {
background-image: url("/images/2019-03-06-whats-next-for-reading-prison--cover.jpg");
}
</style>
</div>
@@ -500,8 +502,11 @@

View File

@@ -278,6 +278,8 @@ Others objected to the planning application by expressing fears of the damaging
@@ -292,6 +294,8 @@ Others objected to the planning application by expressing fears of the damaging
@@ -301,6 +305,8 @@ Others objected to the planning application by expressing fears of the damaging
@@ -315,6 +321,8 @@ Others objected to the planning application by expressing fears of the damaging
@@ -324,6 +332,8 @@ Others objected to the planning application by expressing fears of the damaging
@@ -338,6 +348,8 @@ Others objected to the planning application by expressing fears of the damaging
@@ -347,6 +359,8 @@ Others objected to the planning application by expressing fears of the damaging
@@ -356,6 +370,8 @@ Others objected to the planning application by expressing fears of the damaging
@@ -370,6 +386,8 @@ Others objected to the planning application by expressing fears of the damaging
@@ -384,6 +402,8 @@ Others objected to the planning application by expressing fears of the damaging
@@ -400,6 +420,8 @@ Others objected to the planning application by expressing fears of the damaging
@@ -414,6 +436,8 @@ Others objected to the planning application by expressing fears of the damaging
@@ -428,6 +452,8 @@ Others objected to the planning application by expressing fears of the damaging
@@ -437,6 +463,8 @@ Others objected to the planning application by expressing fears of the damaging
@@ -451,6 +479,8 @@ Others objected to the planning application by expressing fears of the damaging

View File

@@ -280,6 +280,8 @@ Well of course the most effective and most common method experienced by Reading
@@ -294,6 +296,8 @@ Well of course the most effective and most common method experienced by Reading
@@ -303,6 +307,8 @@ Well of course the most effective and most common method experienced by Reading
@@ -317,6 +323,8 @@ Well of course the most effective and most common method experienced by Reading
@@ -326,6 +334,8 @@ Well of course the most effective and most common method experienced by Reading
@@ -340,6 +350,8 @@ Well of course the most effective and most common method experienced by Reading
@@ -349,6 +361,8 @@ Well of course the most effective and most common method experienced by Reading
@@ -358,6 +372,8 @@ Well of course the most effective and most common method experienced by Reading
@@ -372,6 +388,8 @@ Well of course the most effective and most common method experienced by Reading
@@ -386,6 +404,8 @@ Well of course the most effective and most common method experienced by Reading
@@ -400,6 +420,8 @@ Well of course the most effective and most common method experienced by Reading
@@ -416,6 +438,8 @@ Well of course the most effective and most common method experienced by Reading
@@ -430,6 +454,8 @@ Well of course the most effective and most common method experienced by Reading
@@ -439,6 +465,8 @@ Well of course the most effective and most common method experienced by Reading
@@ -453,6 +481,8 @@ Well of course the most effective and most common method experienced by Reading

View File

@@ -291,6 +291,8 @@ It is standard protocol in the NHS that doctors must consult with the patient an
@@ -305,6 +307,8 @@ It is standard protocol in the NHS that doctors must consult with the patient an
@@ -314,6 +318,8 @@ It is standard protocol in the NHS that doctors must consult with the patient an
@@ -328,6 +334,8 @@ It is standard protocol in the NHS that doctors must consult with the patient an
@@ -337,6 +345,8 @@ It is standard protocol in the NHS that doctors must consult with the patient an
@@ -350,6 +360,7 @@ It is standard protocol in the NHS that doctors must consult with the patient an
<h2 class="mdc-typography--headline5">
@@ -384,7 +395,14 @@ It is standard protocol in the NHS that doctors must consult with the patient an
</style>
</div>
@@ -392,17 +410,10 @@ It is standard protocol in the NHS that doctors must consult with the patient an
@@ -415,6 +426,8 @@ It is standard protocol in the NHS that doctors must consult with the patient an
@@ -429,6 +442,8 @@ It is standard protocol in the NHS that doctors must consult with the patient an
@@ -443,22 +458,10 @@ It is standard protocol in the NHS that doctors must consult with the patient an
@@ -473,6 +476,8 @@ It is standard protocol in the NHS that doctors must consult with the patient an
@@ -482,6 +487,8 @@ It is standard protocol in the NHS that doctors must consult with the patient an
@@ -496,6 +503,8 @@ It is standard protocol in the NHS that doctors must consult with the patient an

View File

@@ -285,8 +285,11 @@ Under the plan, the main theatre would operate on a commercial basis with the re
@@ -301,8 +304,11 @@ Under the plan, the main theatre would operate on a commercial basis with the re
@@ -311,9 +317,12 @@ Under the plan, the main theatre would operate on a commercial basis with the re
@@ -327,6 +336,7 @@ Under the plan, the main theatre would operate on a commercial basis with the re
<h2 class="mdc-typography--headline5">
@@ -361,42 +371,10 @@ Under the plan, the main theatre would operate on a commercial basis with the re
</style>
</div>
<!-- display article -->
<div class="mdc-card carousel-item">
<div class="mdc-card__media mdc-card__media--16-9 -articles-2019-03-06-student-survey-shows-rosa-parks-is-most-inspirational-woman-ever-html"></div>
<div class="mdc-card-content">
<h2 class="mdc-typography--headline6">Student Survey Shows Rosa Parks Is Most Inspirational Woman Ever</h2>
<h3 class="mdc-typography--subtitle2">
<time class="timeago" datetime="2019-03-06T14:38:00">Wednesday 6 March 2019</time>
| by Tom S-R, Ben S-R
</h3>
</div>
<div class="mdc-card__actions">
<div class="mdc-card__action-buttons">
<button class="mdc-button mdc-card__action mdc-card__action--button" data-mdc-auto-init="MDCRipple" onclick="window.location='/articles/2019/03/06/student-survey-shows-rosa-parks-is-most-inspirational-woman-ever.html';">Read</button>
</div>
</div>
<style>
.-articles-2019-03-06-student-survey-shows-rosa-parks-is-most-inspirational-woman-ever-html {
background-image: url("/images/2019-03-06-student-survey-shows-rosa-parks-is-most-inspirational-woman-ever--cover.jpg");
}
</style>
</div>
@@ -408,8 +386,11 @@ Under the plan, the main theatre would operate on a commercial basis with the re
@@ -419,8 +400,11 @@ Under the plan, the main theatre would operate on a commercial basis with the re
@@ -430,8 +414,11 @@ Under the plan, the main theatre would operate on a commercial basis with the re
@@ -446,8 +433,11 @@ Under the plan, the main theatre would operate on a commercial basis with the re
@@ -462,8 +452,11 @@ Under the plan, the main theatre would operate on a commercial basis with the re
@@ -478,8 +471,11 @@ Under the plan, the main theatre would operate on a commercial basis with the re
@@ -494,8 +490,11 @@ Under the plan, the main theatre would operate on a commercial basis with the re
@@ -510,8 +509,11 @@ Under the plan, the main theatre would operate on a commercial basis with the re
@@ -527,9 +529,12 @@ Under the plan, the main theatre would operate on a commercial basis with the re

View File

@@ -242,6 +242,7 @@
<h2 class="mdc-typography--headline5">
@@ -275,8 +276,10 @@
</style>
</div>
@@ -288,6 +291,8 @@
@@ -297,6 +302,8 @@
@@ -311,6 +318,8 @@
@@ -320,6 +329,8 @@
@@ -334,6 +345,8 @@
@@ -343,6 +356,8 @@
@@ -352,6 +367,8 @@
@@ -366,6 +383,8 @@
@@ -380,6 +399,8 @@
@@ -394,6 +415,8 @@
@@ -408,6 +431,8 @@
@@ -422,6 +447,8 @@
@@ -436,6 +463,8 @@
@@ -445,6 +474,8 @@