<article id="<%= post.layout %>-<%= post.slug %>"
  class="post white-box article-type-<%= post.layout %>"
  itemscope itemprop="blogPost">
	<section class='meta'>
	<h2 class="title">
  	<a href="<%- url_for(post.path) %>">
    	<%= post.title %>
    </a>
  </h2>

	<time datetime="<%= date(post.date, 'YYYY-MM-DD') %>">
		<%= date(post.date, 'YYYY-MM-DD') %>
	</time>

	<%- partial('categories',{post:post}) %>

	</section>
	<% if(post.toc!==false){ %>
		<section class="toc-wrapper"><%- toc(post.content) %></section>
	<% } %>
	<section class="article typo">
	  <% if (post.tags && post.tags.length) { %>
	  <div class="article-tags tags">
      <% post.tags.each(function(item){ %>
        <a href="<%- url_for(item.path) %>"><%=item.name %></a>
      <%})%>
	  </div>
		<% } %>
  	<div class="article-entry" itemprop="articleBody">
			<%- post.content %>
		</div>
		
	<% if(post.prev || post.next){ %>
		<div class="art-item-footer">
				<% if(post.prev){ %>
					<span class="art-item-left"><i class="icon icon-chevron-thin-left"></i>prev：<a href="<%=url_for(post.prev.path)%>" rel="prev"  title="<%=post.prev.title%>">
						<%= post.prev.title %> 
					</a></span>
				<% } %>
				<% if(post.next){ %>
					<span class="art-item-right">next：<a href="<%=url_for(post.next.path) %>" rel="next"  title="<%=post.next.title %>">
						<%=post.next.title  %>
					</a><i class="icon icon-chevron-thin-right"></i></span>
				<%} %>
		</div>
	<%} %>
	</section>
	<% if (post.comments && config.disqus_shortname){ %>
		<section id="comments">
			<div id="disqus_thread"></div>
		</section>
	<% } %>
	<% if (post.comments && theme.giscus.enable){ %> 
		<section id="comments">
			<script src="https://giscus.app/client.js"
				data-repo="<%=theme.giscus.repo %>"
				data-repo-id="<%=theme.giscus.repo_id %>"
				data-category="<%=theme.giscus.category %>"
				data-category-id="<%=theme.giscus.category_id %>"
				data-mapping="<%=theme.giscus.mapping %>"
				data-reactions-enabled="<%=theme.giscus.reactions_enabled %>"
				data-theme="<%=theme.giscus.theme %>"
				crossorigin="anonymous"
				async>
			</script>
		</section>
	<% } %>
</article>
<script>
	window.subData = {
		title: '<%= post.title %>',
		tools: true
	}
</script>
