-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
56 lines (41 loc) · 1.43 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
49
50
51
52
53
54
55
56
<?php
/**
* The main template file.
*
* @package Vue_from_Mars
*/
?><!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' ); ?>">
<link href="https://fonts.googleapis.com/css?family=Economica:400,400italic,700italic,700|Playfair+Display:400,400italic,700,700italic" rel="stylesheet">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div id="page" class="site">
<a class="skip-link screen-reader-text" href="#main"><?php esc_html( 'Skip to content' ); ?></a>
<div id="content" class="site-content" style="display:none">
<?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><!-- #content -->
<div id="app"></div><!-- #app -->
</div><!-- #page -->
<?php wp_footer(); ?>
</body>
</html>