-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
38 lines (32 loc) · 937 Bytes
/
index.php
File metadata and controls
38 lines (32 loc) · 937 Bytes
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
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo('charset'); ?>">
<meta name="description" content="<?php bloginfo('description'); ?>">
<title><?php bloginfo('name'); ?></title>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php wp_body_open();
get_template_part('template-parts/nav');
if(is_home()){
get_template_part('template-parts/slider');
}
?>
<div class="p-4 card-group justify-content-center">
<?php
if (have_posts()) {
while (have_posts()) {
the_post();
if(is_single()){
get_template_part('template-parts/single-post');
} else{
get_template_part('template-parts/post');
}
}
}
?>
</div>
<?php wp_footer(); ?>
</body>
</html>