代码样式

代码块样式效果展示

<?php
/**
 * 主导航模板
 *
 * @package ShiYun
 */

get_header();
?>

<?php if (have_posts()) : ?>

    <?php
    while (have_posts()) :
        the_post();
        if (get_post_type() === 'riqian') {
            get_template_part('template-parts/content', 'riqian');
        } else {
            get_template_part('template-parts/content', 'card');
        }
    endwhile;

    shiyun_the_posts_navigation();
    ?>

<?php else : ?>

    <?php get_template_part('template-parts/content', 'none'); ?>

<?php endif; ?>

<?php
get_footer();
2 分钟阅读

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注