Skip to content

Commit

Permalink
正文不显示被<!--more-->标记的内容
Browse files Browse the repository at this point in the history
  • Loading branch information
kanodaisuki committed Apr 29, 2023
1 parent 67de02d commit bd47639
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion page-archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<?php while(have_posts()) : the_post(); ?>

<article <?php post_class("post-item"); ?>>
<?php the_content(); ?>
<?php the_content( '', true ); ?>
<div id="archives-temp">
<?php if(!iro_opt('patternimg') || !get_post_thumbnail_id(get_the_ID())) { ?>
<h2><i class="fa-solid fa-calendar-day"></i><?php the_title();?></h2>
Expand Down
2 changes: 1 addition & 1 deletion page-links.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<span class="linkss-title"><?php the_title();?></span>
<?php } ?>
<article <?php post_class("post-item"); ?>>
<?php the_content(); ?>
<?php the_content( '', true ); ?>
<div class="links">
<?php echo get_link_items(); ?>
</div>
Expand Down
2 changes: 1 addition & 1 deletion page-word.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<li>
<span class="shuoshuo_author_img"><img src="<?php echo get_avatar_profile_url(get_the_author_meta('ID')); ?>" class="avatar avatar-48" width="48" height="48"></span>
<div class="cbp_tmlabel">
<p><?php the_content(); ?></p>
<p><?php the_content( '', true ); ?></p>
<p class="shuoshuo_time"><i class="fa-regular fa-clock"></i> <?php the_time('Y/n/j G:i'); ?></p>
</div>
</li>
Expand Down
3 changes: 1 addition & 2 deletions tpl/content-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
<?php get_template_part('layouts/sidebox'); ?>
<div class="entry-content">
<?php
the_content();

the_content( '', true );
wp_link_pages( array(
'before' => '<div class="page-links">' . __( 'Pages:', 'sakurairo' ),
'after' => '</div>',
Expand Down
4 changes: 2 additions & 2 deletions tpl/content-single.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@
<hr>
</header><!-- .entry-header -->
<?php } ?>
<!--<div class="toc-entry-content"><!-- 套嵌目录使用(主要为了支援评论)-->
<!--<div class="toc-entry-content">--><!-- 套嵌目录使用(主要为了支援评论)-->
<?php if(!empty($ai_excerpt) && empty($excerpt)) { ?>
<div class="ai-excerpt">
<h4><i class="fa-regular fa-lightbulb"></i><?php _e("AI Excerpt", "sakurairo") ?></h4><?php echo $ai_excerpt; ?>
</div>
<?php } ?>
<div class="entry-content">
<?php the_content(); ?>
<?php the_content( '', true ); ?>
<?php
wp_link_pages( array(
'before' => '<div class="page-links">' . __( 'Pages:', 'ondemand' ),
Expand Down
2 changes: 1 addition & 1 deletion tpl/single-image.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<?php } ?>
<!-- .entry-header -->
<div class="entry-content">
<?php the_content(); ?>
<?php the_content( '', true ); ?>
<?php
wp_link_pages( array(
'before' => '<div class="page-links">' . __( 'Pages:', 'ondemand' ),
Expand Down
2 changes: 1 addition & 1 deletion user/page-bangumi.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<span class="linkss-title"><?php the_title();?></span>
<?php } ?>
<article <?php post_class("post-item"); ?>>
<?php the_content(); ?>
<?php the_content( '', true ); ?>
<section class="bangumi">
<?php if (iro_opt('bangumi_source') == 'bilibili'):?>
<?php if (iro_opt('bilibili_id') ):?>
Expand Down
2 changes: 1 addition & 1 deletion user/page-bilibiliFavList.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<span class="linkss-title"><?php the_title();?></span>
<?php endif; ?>
<article <?php post_class("post-item"); ?>>
<?php the_content(); ?>
<?php the_content( '', true ); ?>

<?php if (!empty($bgm)) : ?>
<section class="fav-list">
Expand Down
2 changes: 1 addition & 1 deletion user/page-followVideos.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<span class="linkss-title"><?php the_title();?></span>
<?php } ?>
<article <?php post_class("post-item"); ?>>
<?php the_content(); ?>
<?php the_content( '', true ); ?>
<section class="bangumi">
<?php if (iro_opt('bilibili_id') ):?>
<div class="row">
Expand Down
2 changes: 1 addition & 1 deletion user/page-timeline.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<article class="art">
<div class="art-main">
<div class="art-content">
<?php the_content(); memory_archives_list(); ?>
<?php the_content( '', true ); memory_archives_list(); ?>
</div>
</div>
</article>
Expand Down

0 comments on commit bd47639

Please sign in to comment.