<!doctype html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1" />
        <title>Dango Blog - Home</title>
        <link rel="stylesheet" href="/assets/blog.css" />
    </head>
    <body>
        <header class="site-header">
            <nav class="nav-shell" aria-label="Main navigation">
                <a class="brand" href="/">
                    <span class="brand-mark" aria-hidden="true"></span>
                    <span>Dango Blog</span>
                </a>
                <div class="nav-links">
                    <a href="/">Home</a>
                    <a href="/article">Latest</a>
                    <a href="mailto:dan@danbreen.net">Contact</a>
                </div>
            </nav>
        </header>

        <main>
            <section class="hero">
                <p class="eyebrow">Introducing</p>
                <h1>Dango: Django</h1>
                <p class="hero-copy">...but in Rust!</p>
            </section>

            <section class="post-list" aria-label="Recent articles">
                <div class="section-heading">
                    <p class="eyebrow">Recent</p>
                    <h2>Latest Articles (1)</h2>
                </div>

                {% for article in articles %}
                <article class="post-row">
                    <div>
                        <p class="meta">
                            {{ article.published_at }} / {{ article.read_time }}
                            read
                        </p>
                        <h3>
                            <a href="/article">{{ article.title }}</a>
                        </h3>
                        <p>{{ article.summary }}</p>
                    </div>
                    <a
                        class="post-arrow"
                        href="/article"
                        aria-label="Read {{ article.title }}"
                        >-></a
                    >
                </article>
                {% endfor %}
            </section>
        </main>
    </body>
</html>
