-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle.php
45 lines (35 loc) · 2.02 KB
/
single.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php get_header(); ?>
<section class="section">
<div class="container">
<?php echo gs_breadcrumb(); ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div class="column">
<h1 class="entry-title is-spaced caption"><?php the_title(); ?></h1>
<div class="entry-meta">
<span class="entry-date">
<span class="icon is-small"><i class="fa fa-pencil"></i></span><time itemprop="datePublished" datetime="<?php the_time( 'Y-m-d' ) ;?>"><?php the_time( 'Y/m/d' ) ;?></time>
</span>
<span class="tag tag-category <?php echo gs_get_category_class();?>"><?php the_category(' '); ?></span>
<?php the_tags( '<span class="tag is-light tag-tag">', "</span>\n<span class=\"tag is-light tag-tag\">", '</span>'); ?>
</div>
<div class="entry-content content">
<?php the_content(); ?>
<?php get_template_part( 'cta' ); ?>
</div>
</div>
<?php $previous_link = get_previous_post_link( $format = '前の投稿:%link' ); ?>
<?php if ( !empty( $previous_link ) ): ?>
<nav class="pagination is-centered" role="navigation" aria-label="pagination">
<span class="pagination-previous"><?php echo $previous_link;?></span>
</nav>
<?php endif; ?>
<?php $next_link = get_next_post_link( $format = '次の投稿:%link' ); ?>
<?php if ( !empty( $next_link ) ): ?>
<nav class="pagination is-centered" role="navigation" aria-label="pagination">
<span class="pagination-next"><?php echo $next_link;?></span>
</nav>
<?php endif; ?>
<?php endwhile; endif; ?>
</div>
</section>
<?php get_footer(); ?>