<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- Bootstrap https://getbootstrap.com -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi" crossorigin="anonymous">

    <!-- Highlightjs https://highlightjs.org -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.0/styles/github-dark.min.css">
    <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.0/highlight.min.js"></script>
    <script>hljs.highlightAll();</script>

    <!-- Styles -->
    <link rel="stylesheet" href="styles.css">

    <title>My Website</title>
</head>
<body>
<div class="container">
    <div class="row">
        <div class="col-md">

        <h1>My Website</h1>
        <p>Hello, welcome to my website about fruits and vegetables. More information is available on the <a href="about.html">About</a> page. Use the <a href="contact.html">Contact</a> page to reach me.</p>

        <h2>Recents</h2>
        <p>The most recent five articles.</p>
        <ul>
        {% for page in recents %}
        {% if loop.index is lt 6 %}
            <li><a href="{{ page.link }}">{{ page.title }}</a></li>
        {% endif %}
        {% endfor %}
        </ul>

        <h2>Fruits</h2>
        <ul>
        {% for page in pages %}
        {% if page.category == 'fruits' %}
            <li><a href="{{ page.link }}">{{ page.title }}</a></li>
        {% endif %}
        {% endfor %}
        </ul>

        <h2>Vegetables</h2>
        <ul>
        {% for page in pages %}
        {% if page.category == 'veggies' %}
            <li><a href="{{ page.link }}">{{ page.title }}</a></li>
        {% endif %}
        {% endfor %}
        </ul>

        </div>
    </div>
</div>
</body>
</html>
