{% extends "layout.html" %}

{% block title %} Home {% endblock %}

{% block body %}

<h1>BBC Headlines</h1>


{% for article in articles %}
<div>
    <strong>{{ article.title }}</strong> <br>
    <em>{{ article.publishedAt }}</em> <br>
    <p>{{ article.description }}</p>
    <hr>
</div>
{% endfor %}

{% endblock %}
{% extends "layout.html" %}

{% block title %} Home {% endblock %}

{% block body %}

<h1>{{ source.upper() }} Headlines</h1>


{% for article in articles %}
<div>
    <strong>{{ article.title or 'No Title' }}</strong> <br>
    <em>{{ article.publishedAt  or 'No Publishing Date' }}</em> <br>
    <p>{{ article.description   or 'No Summary' }}</p>
    <hr>
</div>
{% endfor %}

{% endblock %}
Make article details dynamic and provide alternate message if not provided.
Make article details dynamic and provide alternate message if not provided.
