diff --git a/2018.md b/2018.md new file mode 100644 index 0000000..8b5ffc0 --- /dev/null +++ b/2018.md @@ -0,0 +1,5 @@ +--- +title: BBC Young Reporter +description: News articles written by Reading School students in year 8 +layout: year +--- \ No newline at end of file diff --git a/2019.md b/2019.md index 00dfd79..8b5ffc0 100644 --- a/2019.md +++ b/2019.md @@ -1,40 +1,5 @@ --- title: BBC Young Reporter description: News articles written by Reading School students in year 8 -layout: year-article-list -year: 2019 ---- - -{% if site.categories.articles %} -{% for article in site.categories.articles %} -
-
-
-

{{ article.title }}

-

- - | by {{ article.authors }} -

-
-
{{ article.description }}
-
-
- -
-
-
- - -{% endfor %} -{% else %} -
We haven't got any articles for you yet! Come back during this year's BBC Young Reporter day to see what Reading School's year 8 students have produced!
- -{% endif %} +layout: year +--- \ No newline at end of file diff --git a/2020.md b/2020.md new file mode 100644 index 0000000..8b5ffc0 --- /dev/null +++ b/2020.md @@ -0,0 +1,5 @@ +--- +title: BBC Young Reporter +description: News articles written by Reading School students in year 8 +layout: year +--- \ No newline at end of file diff --git a/_includes/article-page-head.html b/_includes/article-page-head.html index fe286cc..9688c9a 100644 --- a/_includes/article-page-head.html +++ b/_includes/article-page-head.html @@ -1,2 +1,3 @@ + diff --git a/_includes/head.html b/_includes/head.html index b5805b8..006b1ef 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -45,5 +45,4 @@ - diff --git a/_includes/top-app-bar.html b/_includes/top-app-bar.html index ae44be2..e848902 100644 --- a/_includes/top-app-bar.html +++ b/_includes/top-app-bar.html @@ -2,7 +2,7 @@
menu - BBC Young Reporter | Reading School + BBC Young Reporter | Reading School
{% include footer.html %} diff --git a/_layouts/year-article-list.html b/_layouts/year.html similarity index 74% rename from _layouts/year-article-list.html rename to _layouts/year.html index ad8eb75..9a37b0e 100644 --- a/_layouts/year-article-list.html +++ b/_layouts/year.html @@ -1,8 +1,8 @@ {% include head.html %} - - + + {% include cookie-notice.html %} @@ -15,16 +15,18 @@
-
-
-

{{ currentdate }}

- -
+ {% assign pageyear = page.url | relative_url | remove: '.html' | remove: '/' %} +
+

{{ pageyear }}

+
+
+
{% assign articles = site.categories.articles | sort: date | reverse %} {% for article in articles %} - {% if article.date | date: "%Y" == page.year %} -
+ {% assign articleyear = article.date | date: "%Y" %} + {% if pageyear == articleyear %} +

{{ article.title }}

diff --git a/_site/2018.html b/_site/2018.html new file mode 100644 index 0000000..8ea80b9 --- /dev/null +++ b/_site/2018.html @@ -0,0 +1,334 @@ + + + + + + + + + + + + + + + + + + + + + + + + BBC Young Reporter | Reading School + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

Just to let you know, we use cookies on our site.

+

OK

+
+ + + +
+ +
+ + +
+
+
+
+ menu + BBC Young Reporter | Reading School +
+ +
+
+ + +
+
+ +
+

2018

+
+
+
+
+ + + + +
+
+
+

A Possible Autism-Anorexia Link Has Been Found, So What Are We Doing About It?

+

+ + | by Luke H +

+
+
+
+
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+ +
+ + diff --git a/_site/2019.html b/_site/2019.html index 83dcd7d..f179e25 100644 --- a/_site/2019.html +++ b/_site/2019.html @@ -47,11 +47,10 @@ - - - + +
@@ -235,7 +234,7 @@
menu - BBC Young Reporter | Reading School + BBC Young Reporter | Reading School