-
Notifications
You must be signed in to change notification settings - Fork 6
/
page.php
29 lines (22 loc) · 1.05 KB
/
page.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
<?php get_header();?>
<div id="content">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<article>
<h2 class="title"><a href="<?php the_permalink() ?>"><?php the_title_attribute(); ?></a></h2>
<!--div class="cover-panel">
<div class="cover-image" style="background-image: url('<?php //bloginfo('template_directory'); ?>/image/main.jpg')"></div>
</div-->
<div class="text">
<?php the_content("Read More..."); ?>
</div>
</article>
<?php endwhile; ?>
<?php else: ?>
<article>
<h2 class="title"><a href="/">找不到内容噢</a></h2>
<div class="text">未能寻找到您需要的内容,请查看它是不是飞到火星上去了</div>
</article>
<?php endif; ?>
</div>
<?php get_footer();?>