<?php
/**
 * The template for displaying all single posts
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
 *
 * @package WordPress
 * @subpackage Twenty_Seventeen
 * @since 1.0
 * @version 1.0
 */

get_header("members"); ?>

	<?php if ( is_home() || is_front_page() ) : ?>
	<?php else : ?>
		<div class="page_title">
			<h2><?php 
				$cat = get_the_category();
				$cat = $cat[0];
				echo $cat->cat_name;
			 ?></h2>
		</div>
	<?php endif; ?>

	<div id="contents">

		<?php if (is_user_logged_in()) {
				get_sidebar();
			} else {
			}?>
		<article id="main">
			<section class="clearfix">
				<?php
					if(have_posts()): while(have_posts()):
						the_post();
				?>
				<p class="entry">公開日：<?php the_date(); ?> / 最終更新日:<?php the_modified_date(); ?> / <span class="entry_author">投稿者：<?php the_author(); ?></span></p>
				<h3><?php the_title(); ?></h3>
				<p>
				<?php
						the_content();
					endwhile;
					endif;
				?>
				</p>
			</section>
			<p id="pageTop"><a data-scroll href="#header"><br>page top</a></p>
		</article>
	<!-- contents --></div>
						
<?php get_footer("members"); ?>

