<?php get_header(); ?>

<div class="page-container-bg">
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <div class="blog-page-content">
                    <h1>Blog</h1>
                </div>
            </div>
            <div class="col-md-3">
                <div class="blog-right-cont">
                    <?php echo do_shortcode('[contact-form-7 id="114" title="Blog Subscribe Form"]'); ?>
                    <div class="blog-link-list">
                        <ul>
                            <?php while ( have_posts() ) : the_post(); ?>
                                <li>
                                    <a href="<?php echo get_permalink( $post->ID ); ?>"><?php the_title(); ?></a>
                                    <div class="post-date">Posted On <?php the_time('m/d/Y'); ?></div>
                                </li>
                            <?php endwhile; ?>
                        </ul>
                    </div>
                </div>
            </div>
            <div class="col-md-9">
                <?php while ( have_posts() ) : the_post(); ?>
                    <div class="blog-left-cont">
                        <h3><a href="<?php echo get_permalink( $post->ID ); ?>"><?php the_title(); ?></a></h3>
                        <div class="blog-detail">
                            <?php the_excerpt(); ?>
                        </div>
                    </div>
                <?php endwhile; ?>
            </div>
        </div>
    </div>

<?php get_footer(); ?>