<?php get_header(); ?>

<section class="section">
    <div class="container">
        <h1 class="title">My Blog</h1>
        <div class="columns is-multiline">
            <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
                <div class="column is-one-third">
                    <div class="card">
                        <div class="card-content">
                            <h2 class="subtitle"><?php the_title(); ?></h2>
                            <div class="content">
                                <?php the_excerpt(); ?>
                                <a href="<?php the_permalink(); ?>" class="button is-link">Read More</a>
                            </div>
                        </div>
                    </div>
                </div>
            <?php endwhile; else : ?>
                <p>No posts found.</p>
            <?php endif; ?>
        </div>
    </div>
</section>

<?php get_footer(); ?>
