Files
bbc-young-reporter/index.md
Matthew Grove 607ec3990c Account for when no articles exist
When no articles exist, the navbar doesn't show the 'Articles' title, and the home page displays an appropriate message
2019-01-28 14:06:27 +00:00

1.5 KiB

title, description, layout
title description layout
BBC Young Reporter News articles written by Reading School students in year 8 article-list

{% if site.categories.articles %} {% for article in site.categories.articles %}

{{ article.title }}

| by {{ article.authors }}

Read
<style> .{{ article.url | relative_url | replace: '/', '-' | replace: '.', '-' }} { background-image: url("/images/{{ article.url | relative_url | remove: '.html' | replace: '/', '-' | remove: '-articles-' }}--cover.jpg"); } </style>

{% 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! <style> center { margin: 25vh auto 25vh auto; } </style> {% endif %}