forked from gilbitron/wp-rest-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
41 lines (31 loc) · 1003 Bytes
/
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
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php wp_head(); ?>
</head>
<body>
<div id="content">
<?php
if ( have_posts() ) :
if ( is_home() && ! is_front_page() ) {
echo '<h1>' . single_post_title( '', false ) . '</h1>';
}
while ( have_posts() ) : the_post();
if ( is_singular() ) {
the_title( '<h1>', '</h1>' );
} else {
the_title( '<h2><a href="' . esc_url( get_permalink() ) . '">', '</a></h2>' );
}
the_content();
endwhile;
endif;
?>
</div>
<div id="app"></div>
<?php wp_footer(); ?>
</body>
</html>