-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.php
36 lines (32 loc) · 877 Bytes
/
home.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
<?php
defined( 'ABSPATH' ) or die();
/**
* Home template
*
* @link https://developer.wordpress.org/themes/basics/template-files/#common-wordpress-template-files
* @package Vulpix
* @since Vulpix 1.0.0
*/
get_header();
?>
<main role="main" class="container">
<div class="grid">
<?php
// Site name as title
printf( __( '<h1 class="col-12 --center">%s</h1>', 'vulpix' ), get_bloginfo( 'name' ) );
if ( have_posts() ) {
while ( have_posts() ) {
the_post();
// Get post list template
get_template_part( 'template-parts/content/template', 'post-list' );
}
} else {
// If no content
get_template_part( 'template-parts/content/template', 'none' );
}
?>
</div>
<?php get_template_part( 'template-parts/archive/template', 'archive-footer' ); ?>
</main>
<?php
get_footer();