-
Notifications
You must be signed in to change notification settings - Fork 0
/
page.php
68 lines (62 loc) · 2.36 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<title><?php bloginfo('name'); ?></title>
<?php wp_head(); ?>
<link rel="stylesheet" href="//cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.17.1/build/styles/github.min.css">
<script src="//cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.17.1/build/highlight.min.js"></script>
<script>
hljs.initHighlightingOnLoad();
</script>
</head>
<body id="body-home">
<div id="whole-page">
<?php get_header(); ?>
<div id="container-wrapper">
<div id="container-page">
<?php
if (have_posts()) :
while (have_posts()) :
the_post();
?>
<div class="post">
<div class="metainfo">
<h2>
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<?php the_title(); ?>
</a>
</h2>
<p class="postmetadata">
<?php
comments_popup_link('No Comment', '1 Comment', '% Comments');
_e(' | ');
the_date('Y-m-d');
?>
</p>
</div>
<div class="entry">
<?php
the_content();
?>
</div>
</div>
<?php endwhile; ?>
<div id="navigator">
<?php the_posts_pagination(array(
// 'prev_next' => false,
'type' => 'list',
'screen_reader_text' => ' ',
));
?>
</div>
<?php else : ?>
<h2>
<?php _e('Not Found :('); ?>
</h2>
<?php endif; ?>
</div>
</div>
<?php get_footer(); ?>
</div>
</body>
</html>