<?php
/**
 * The main template file
 *
 * This is the most generic template file in a WordPress theme
 * and one of the two required files for a theme (the other being style.css).
 * It is used to display a page when nothing more specific matches a query.
 * E.g., it puts together the home page when no home.php file exists.
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package CyyWordpress
 */

get_header();
?>
    <section class="section">
        <div class="container">
           <!-- <h1 class="title">
                <?php /*bloginfo( 'name' ); */?>
            </h1>-->
            <p class="subtitle">
                <?php bloginfo(  'description' ); ?>
            </p>
        </div>
    </section>

    <br>
    <div class="notification is-primary">
        欢迎来到这！ <strong>Hello everyone.</strong>
    </div>

    <nav class="breadcrumb" aria-label="breadcrumbs">
        <ul>
            <li>
                <a href="<?php echo esc_url( home_url( '/' ) ); ?>" >
        <span class="icon is-small">
          <i class="fas fa-home" aria-hidden="true"></i>
        </span>
                    <span>首页</span>
                </a>
            </li>
        </ul>
    </nav>



        <?php
        if ( have_posts() ) :

            if ( is_home() && ! is_front_page() ) :
                ?>
                <p class="title is-4"><?php single_post_title(); ?></p>article
            <?php
            endif;

            /* Start the Loop */
            while ( have_posts() ) :
                the_post();

                /*
                 * Include the Post-Type-specific template for the content.
                 * If you want to override this in a child theme, then include a file
                 * called content-___.php (where ___ is the Post Type name) and that will be used instead.
                 */
                get_template_part( 'template-parts/content', get_post_type() );

            endwhile;


            the_posts_navigation();

        else :

            get_template_part( 'template-parts/content', 'none' );

        endif;
        ?>


<br>
    <br>
<!--    <div class="columns" style=" margin-bottom: 25px;">-->
<!--        <div class="column is-narrow">-->
<!--            <div class="box" style="width: 200px;">-->
<!--                <p class="title is-5">预留位1</p>-->
<!--                <p class="subtitle">预留文字.</p>-->
<!--            </div>-->
<!--        </div>-->
<!--        <div class="column">-->
<!--            <div class="box">-->
<!--                <p class="title is-5">预留位2</p>-->
<!--                <p class="subtitle">预留文字.</p>-->
<!--            </div>-->
<!--        </div>-->
<!--    </div>-->



<?php
get_sidebar();
get_footer();
