-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
48 lines (39 loc) · 2.01 KB
/
index.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
46
47
48
<?php get_header(); ?>
<div class="blog-index">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<article class="hentry" role="article">
<header>
<h1 class="entry-title"><a href="<?php the_permalink() ?>"><?php the_title();?></a></h1>
<p class="meta">
<time datetime="<?php echo date('c', get_the_time('G')); ?>" pubdate data-updated="true"><?php the_time('F jS, Y') ?></time>
| <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?>
</p>
</header>
<div class="entry-content">
<?php the_content();?>
</div>
<footer>
<p class="meta">
<span class="byline author vcard">Posted by <span class="fn"><?php the_author();?></span></span>
<time datetime="<?php echo date('c', get_the_time('G')); ?>" pubdate data-updated="true"><?php the_time('F jS, Y') ?></time>
<span class="categories">
<?php the_category(', '); ?>
</span>
</p>
<!--p class="meta">
<a class="basic-alignment left" href="/2011/12/02/add-flickr-aside-to-octopress/" title="Previous Post: 为 Octopress 添加 Flickr 边栏插件">为 Octopress 添加 Flickr 边栏插件</a>
<a class="basic-alignment right" href="/2011/12/21/octopress-on-server-and-portable-scheme/" title="next Post: 服务器端 Octopress 搭建及移动方案">服务器端 Octopress 搭建及移动方案 »</a>
</p-->
</footer>
</article>
<?php endwhile; else: ?>
<article class="hentry" role="article">
<?php _e('Sorry, no posts matched your criteria.'); ?>
</article>
<?php endif; ?>
<div class="pagination">
<?php posts_nav_link(); ?>
</div>
</div>
<?php get_sidebar();?>
<?php get_footer();?>