diff --git a/year.md b/2019.md similarity index 97% rename from year.md rename to 2019.md index 335b4ec..00dfd79 100644 --- a/year.md +++ b/2019.md @@ -1,7 +1,8 @@ --- title: BBC Young Reporter description: News articles written by Reading School students in year 8 -layout: article-list +layout: year-article-list +year: 2019 --- {% if site.categories.articles %} diff --git a/_layouts/article-list.html b/_layouts/article-list.html deleted file mode 100644 index 367bcc0..0000000 --- a/_layouts/article-list.html +++ /dev/null @@ -1,25 +0,0 @@ - - - {% include head.html %} - - - - - - {% include cookie-notice.html %} - - - {% include navbar.html %} - -
- {% include top-app-bar.html %} - -
-
- {{ content }} -
-
- {% include footer.html %} -
- - diff --git a/_layouts/home.html b/_layouts/home.html index 407d9bb..03e124b 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -3,7 +3,6 @@ {% include head.html %} - {% include cookie-notice.html %} diff --git a/_layouts/year-article-list.html b/_layouts/year-article-list.html new file mode 100644 index 0000000..ad8eb75 --- /dev/null +++ b/_layouts/year-article-list.html @@ -0,0 +1,53 @@ + + + {% include head.html %} + + + + + {% include cookie-notice.html %} + + + {% include navbar.html %} + +
+ {% include top-app-bar.html %} + +
+
+
+
+

{{ currentdate }}

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

{{ article.title }}

+

+ + | by {{ article.authors }} +

+
+
{{ article.description }}
+
+
+ +
+
+
+ {% endif %} + {% endfor %} +
+
+
+
+
+ {% include footer.html %} +
+ + diff --git a/_site/2019.html b/_site/2019.html new file mode 100644 index 0000000..83dcd7d --- /dev/null +++ b/_site/2019.html @@ -0,0 +1,557 @@ + + + + + + + + + + + + + + + + + + + + + + + + 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 +

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

Reading School's BBC Young Reporter Team… Ready To Go!

+

+ + | by Mr Baldock +

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

What's Next For Reading Prison?

+

+ + | by Tom S-R, Ben S-R +

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

What Is 'In The Patient's Best Interest’?

+

+ + | by Aadith C +

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

Video Games - Virtual Fantasy Or A Virtual Prison?

+

+ + | by Kamran S +

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

Tennis Club Needs To Relocate As Redevelopment Plans Are Called ‘Out’

+

+ + | by Hal R-D +

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

Could Sky-High Aims Bring Reading Down?

+

+ + | by Ben P +

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

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

+

+ + | by Luke H +

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

Book Week - Real Life Issues Inspire Sarah Govett

+

+ + | by Aadith C, Adit S, Adi V +

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

Student Survey Shows Rosa Parks Is Most Inspirational Woman Ever

+

+ + | by Tom S-R, Ben S-R +

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

Are The Roads Around Your Home And School Safe?

+

+ + | by Riley C, Oliver C +

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

The Finished Product

+

+ + | by Mr Baldock +

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

Test

+

+ + | by Matthew G +

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

Title

+

+ + | by Name +

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

Title

+

+ + | by Name +

+
+
+
+
+ +
+
+
+ + +
+
+
+
+
+ +
+ + diff --git a/_site/css/article-page.css b/_site/css/article-page.css index 961c91b..5d9fd69 100644 --- a/_site/css/article-page.css +++ b/_site/css/article-page.css @@ -20,6 +20,11 @@ padding-bottom: 6px; } +/* hide empty black bar if there is no content to the article */ +.article-content:empty { + display: none; +} + /* position headline in middle of image */ .parallax-section { text-align: center; diff --git a/_site/css/global.css b/_site/css/global.css index ddfe12c..41a3fb8 100644 --- a/_site/css/global.css +++ b/_site/css/global.css @@ -88,6 +88,10 @@ footer { z-index: 0; display: flow-root; } +.parallax-section #jarallax-container-0 div, .parallax-section #jarallax-container-1 div { + background-color: rgba(0,0,0,0.45); + background-blend-mode: multiply; +} /* responsive side margins */ .article-section .articles, .article-section-header, .footer-container, .article-content, .footer-container, .article-title-section ~ .mdc-typography--caption-text, .article-title-section, .mdc-typography--subtitle1, .mdc-typography--headline3 { diff --git a/_site/css/article-list.css b/_site/css/year-article-list.css similarity index 100% rename from _site/css/article-list.css rename to _site/css/year-article-list.css diff --git a/_site/images/backgrounds/2019.jpg b/_site/images/backgrounds/2019.jpg index 9509542..e6e063b 100644 Binary files a/_site/images/backgrounds/2019.jpg and b/_site/images/backgrounds/2019.jpg differ diff --git a/_site/images/backgrounds/2020.jpg b/_site/images/backgrounds/2020.jpg index 9509542..e6e063b 100644 Binary files a/_site/images/backgrounds/2020.jpg and b/_site/images/backgrounds/2020.jpg differ diff --git a/_site/index.html b/_site/index.html index 0712e22..a5192bc 100644 --- a/_site/index.html +++ b/_site/index.html @@ -52,7 +52,6 @@ -
@@ -261,7 +260,7 @@
-
+

Title

@@ -276,11 +275,6 @@

- @@ -290,7 +284,7 @@
-
+

Title

@@ -305,11 +299,6 @@

- @@ -319,7 +308,7 @@
-
+

Test

@@ -334,11 +323,6 @@

- @@ -362,7 +346,7 @@
-
+

The Finished Product

@@ -377,11 +361,6 @@

- @@ -391,7 +370,7 @@
-
+

Are The Roads Around Your Home And School Safe?

@@ -406,11 +385,6 @@

- @@ -420,7 +394,7 @@
-
+

Student Survey Shows Rosa Parks Is Most Inspirational Woman Ever

@@ -435,11 +409,6 @@

- @@ -511,7 +480,7 @@
-
+

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

@@ -526,11 +495,6 @@

- diff --git a/_site/js/article-page.js b/_site/js/article-page.js index d66cde2..351cc2c 100644 --- a/_site/js/article-page.js +++ b/_site/js/article-page.js @@ -1,39 +1,6 @@ $(document).ready(function(){ - // initiate carousel - $('.carousel').slick({ - dots: true, - infinite: false, - speed: 300, - slidesToShow: 4, - slidesToScroll: 4, - adaptiveHeight: true, - autoplay: true, - responsive: [ - { - breakpoint: 1024, - settings: { - slidesToShow: 3, - slidesToScroll: 2, - dots: true - } - }, - { - breakpoint: 600, - settings: { - slidesToShow: 2, - slidesToScroll: 1 - } - }, - { - breakpoint: 480, - settings: { - slidesToShow: 1, - slidesToScroll: 1 - } - } - ] - }); - - // overwrite auto-generated inline styling - $(".slick-prev, .slick-next").hide(); + // remove black bar if article has no content + if (! $.trim($(".article-content").html())) { + $(".article-content").hide(); + } }); diff --git a/_site/js/home.js b/_site/js/home.js deleted file mode 100644 index 6249a9e..0000000 --- a/_site/js/home.js +++ /dev/null @@ -1,3 +0,0 @@ -// $(window).scroll(function () { -// $(".article-section").css("background-position","50% " + ($(this).scrollTop() / 2) + "px"); -// }); \ No newline at end of file diff --git a/_site/sitemap.xml b/_site/sitemap.xml index ab30a99..53bd49a 100644 --- a/_site/sitemap.xml +++ b/_site/sitemap.xml @@ -3,9 +3,20 @@ + + /2019.html + 2020-03-03 + hourly + 0.5 + + + + + + /404.html - 2020-03-02 + 2020-03-03 hourly 0.5 @@ -16,7 +27,7 @@ /auto-refresh.html - 2020-03-02 + 2020-03-03 hourly 0.5 @@ -27,7 +38,7 @@ / - 2020-03-02 + 2020-03-03 hourly 0.5 @@ -38,120 +49,109 @@ - - - - /year.html - 2020-03-02 - hourly - 0.5 - - - - /articles/2020/03/02/test2.html - 2020-03-02 + 2020-03-03 hourly 0.5 /articles/2020/03/02/test1.html - 2020-03-02 + 2020-03-03 hourly 0.5 /articles/2020/03/01/test.html - 2020-03-02 + 2020-03-03 hourly 0.5 /articles/2019/03/06/finished-product.html - 2020-03-02 + 2020-03-03 hourly 0.5 /articles/2019/03/06/are-the-roads-around-your-home-and-school-safe.html - 2020-03-02 + 2020-03-03 hourly 0.5 /articles/2019/03/06/student-survey-shows-rosa-parks-is-most-inspirational-woman-ever.html - 2020-03-02 + 2020-03-03 hourly 0.5 /articles/2019/03/06/book-week-real-life-issues-inspire-sarah-govett.html - 2020-03-02 + 2020-03-03 hourly 0.5 /articles/2019/03/06/a-possible-autism-anorexia-link-has-been-found-so-what-are-we-doing-about-it.html - 2020-03-02 + 2020-03-03 hourly 0.5 /articles/2019/03/06/could-sky-high-aims-bring-reading-down.html - 2020-03-02 + 2020-03-03 hourly 0.5 /articles/2019/03/06/tennis-club-needs-to-relocate-as-redevelopment-plans-are-called-out.html - 2020-03-02 + 2020-03-03 hourly 0.5 /articles/2019/03/06/video-games-virtual-fantasy-or-a-virtual-prison.html - 2020-03-02 + 2020-03-03 hourly 0.5 /articles/2019/03/06/what-is-in-the-patients-best-interest.html - 2020-03-02 + 2020-03-03 hourly 0.5 /articles/2019/03/06/whats-next-for-reading-prison.html - 2020-03-02 + 2020-03-03 hourly 0.5 /articles/2019/03/06/young-reporter-team-ready-to-go.html - 2020-03-02 + 2020-03-03 hourly 0.5 /articles/2018/03/06/test.html - 2020-03-02 + 2020-03-03 hourly 0.5 diff --git a/_site/year.html b/_site/year.html deleted file mode 100644 index d153965..0000000 --- a/_site/year.html +++ /dev/null @@ -1,609 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - BBC Young Reporter | Reading School - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

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

-

OK

-
- - - - - -
- - -
-
-
-
- menu - BBC Young Reporter | Reading School -
- -
-
- - -
-
- -
-
-
-

Title

-

- - | by Name -

-
-
-
-
- -
-
-
- - - -
-
-
-

Title

-

- - | by Name -

-
-
-
-
- -
-
-
- - - -
-
-
-

Test

-

- - | by Matthew G -

-
-
-
-
- -
-
-
- - - -
-
-
-

The Finished Product

-

- - | by Mr Baldock -

-
-
-
-
- -
-
-
- - - -
-
-
-

Are The Roads Around Your Home And School Safe?

-

- - | by Riley C, Oliver C -

-
-
-
-
- -
-
-
- - - -
-
-
-

Student Survey Shows Rosa Parks Is Most Inspirational Woman Ever

-

- - | by Tom S-R, Ben S-R -

-
-
-
-
- -
-
-
- - - -
-
-
-

Book Week - Real Life Issues Inspire Sarah Govett

-

- - | by Aadith C, Adit S, Adi V -

-
-
-
-
- -
-
-
- - - -
- -
-

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

-

- - | by Luke H -

-
-
-
-
- -
-
-
- - - -
-
-
-

Could Sky-High Aims Bring Reading Down?

-

- - | by Ben P -

-
-
-
-
- -
-
-
- - - -
-
-
-

Tennis Club Needs To Relocate As Redevelopment Plans Are Called ‘Out’

-

- - | by Hal R-D -

-
-
-
-
- -
-
-
- - - -
-
-
-

Video Games - Virtual Fantasy Or A Virtual Prison?

-

- - | by Kamran S -

-
-
-
-
- -
-
-
- - - -
-
-
-

What Is 'In The Patient's Best Interest’?

-

- - | by Aadith C -

-
-
-
-
- -
-
-
- - - -
-
-
-

What's Next For Reading Prison?

-

- - | by Tom S-R, Ben S-R -

-
-
-
-
- -
-
-
- - - -
-
-
-

Reading School's BBC Young Reporter Team… Ready To Go!

-

- - | by Mr Baldock -

-
-
-
-
- -
-
-
- - - -
-
-
-

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

-

- - | by Luke H -

-
-
-
-
- -
-
-
- - - - -
-
- -
- - diff --git a/css/article-page.css b/css/article-page.css index 961c91b..5d9fd69 100644 --- a/css/article-page.css +++ b/css/article-page.css @@ -20,6 +20,11 @@ padding-bottom: 6px; } +/* hide empty black bar if there is no content to the article */ +.article-content:empty { + display: none; +} + /* position headline in middle of image */ .parallax-section { text-align: center; diff --git a/css/global.css b/css/global.css index ddfe12c..41a3fb8 100644 --- a/css/global.css +++ b/css/global.css @@ -88,6 +88,10 @@ footer { z-index: 0; display: flow-root; } +.parallax-section #jarallax-container-0 div, .parallax-section #jarallax-container-1 div { + background-color: rgba(0,0,0,0.45); + background-blend-mode: multiply; +} /* responsive side margins */ .article-section .articles, .article-section-header, .footer-container, .article-content, .footer-container, .article-title-section ~ .mdc-typography--caption-text, .article-title-section, .mdc-typography--subtitle1, .mdc-typography--headline3 { diff --git a/css/article-list.css b/css/year-article-list.css similarity index 100% rename from css/article-list.css rename to css/year-article-list.css diff --git a/images/backgrounds/2019.jpg b/images/backgrounds/2019.jpg index 9509542..e6e063b 100644 Binary files a/images/backgrounds/2019.jpg and b/images/backgrounds/2019.jpg differ diff --git a/images/backgrounds/2020.jpg b/images/backgrounds/2020.jpg index 9509542..e6e063b 100644 Binary files a/images/backgrounds/2020.jpg and b/images/backgrounds/2020.jpg differ diff --git a/index.md b/index.md index c0b2d22..dac6294 100644 --- a/index.md +++ b/index.md @@ -27,7 +27,7 @@ layout: home {% if currentdate_count < 3 %} {% assign currentdate_count = currentdate_count | plus: 1 %}
-
+

{{ article.title }}

@@ -42,11 +42,6 @@ layout: home

- {% endif %} {% if currentdate != date %} {% endif %} diff --git a/js/article-page.js b/js/article-page.js index d66cde2..351cc2c 100644 --- a/js/article-page.js +++ b/js/article-page.js @@ -1,39 +1,6 @@ $(document).ready(function(){ - // initiate carousel - $('.carousel').slick({ - dots: true, - infinite: false, - speed: 300, - slidesToShow: 4, - slidesToScroll: 4, - adaptiveHeight: true, - autoplay: true, - responsive: [ - { - breakpoint: 1024, - settings: { - slidesToShow: 3, - slidesToScroll: 2, - dots: true - } - }, - { - breakpoint: 600, - settings: { - slidesToShow: 2, - slidesToScroll: 1 - } - }, - { - breakpoint: 480, - settings: { - slidesToShow: 1, - slidesToScroll: 1 - } - } - ] - }); - - // overwrite auto-generated inline styling - $(".slick-prev, .slick-next").hide(); + // remove black bar if article has no content + if (! $.trim($(".article-content").html())) { + $(".article-content").hide(); + } }); diff --git a/js/home.js b/js/home.js deleted file mode 100644 index 6249a9e..0000000 --- a/js/home.js +++ /dev/null @@ -1,3 +0,0 @@ -// $(window).scroll(function () { -// $(".article-section").css("background-position","50% " + ($(this).scrollTop() / 2) + "px"); -// }); \ No newline at end of file