提交
This commit is contained in:
@@ -14,43 +14,69 @@
|
||||
|
||||
get_header();
|
||||
?>
|
||||
<section class="section">
|
||||
<div class="container">
|
||||
<!-- <h1 class="title">
|
||||
<?php /*bloginfo( 'name' ); */?>
|
||||
</h1>-->
|
||||
<p class="subtitle">
|
||||
<?php bloginfo( 'description' ); ?>
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<main id="primary" class="site-main">
|
||||
|
||||
<?php
|
||||
if ( have_posts() ) :
|
||||
<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>
|
||||
|
||||
if ( is_home() && ! is_front_page() ) :
|
||||
?>
|
||||
<header>
|
||||
<h1 class="page-title screen-reader-text"><?php single_post_title(); ?></h1>
|
||||
</header>
|
||||
<?php
|
||||
endif;
|
||||
<div class="notification is-primary">
|
||||
欢迎来到这! <strong>Hello everyone.</strong>
|
||||
</div>
|
||||
|
||||
/* 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() );
|
||||
<?php
|
||||
if ( have_posts() ) :
|
||||
|
||||
endwhile;
|
||||
if ( is_home() && ! is_front_page() ) :
|
||||
?>
|
||||
<p class="title is-4"><?php single_post_title(); ?></p>article
|
||||
<?php
|
||||
endif;
|
||||
|
||||
the_posts_navigation();
|
||||
/* Start the Loop */
|
||||
while ( have_posts() ) :
|
||||
the_post();
|
||||
|
||||
else :
|
||||
/*
|
||||
* 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;
|
||||
?>
|
||||
|
||||
get_template_part( 'template-parts/content', 'none' );
|
||||
|
||||
endif;
|
||||
?>
|
||||
|
||||
</main><!-- #main -->
|
||||
|
||||
<?php
|
||||
get_sidebar();
|
||||
|
||||
Reference in New Issue
Block a user