-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
79 lines (66 loc) · 2.4 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
<title><?php wp_title(); ?></title>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" />
<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/assets/style/css/base.css" type="text/css" media="screen" />
<script type="text/javascript" src="//code.jquery.com/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/assets/js/main.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/assets/js/lightbox.min.js"></script>
</head>
<body>
<header>
<div class="header-holder">
<a class="page-logo" href="/">
<span class="slashes">//</span> <?php echo get_bloginfo('name'); ?>
</a>
<?php get_template_part( 'navbar' ); ?>
</div>
</header>
<section class="top-banner"></section>
<main>
<section class="content">
<?php
if ( is_front_page() || is_category() || is_archive() ) {
get_template_part( 'post/post-list' );
} else if ( is_single() ) {
get_template_part( 'post/single' );
} else if ( is_page() ) {
get_template_part( 'page-content' );
}
?>
</section>
<section class="side-column">
<?php get_template_part( 'about-me' ); ?>
<div class="side-section">
<div class="sidebar-content-wrapper">
<div class="title">
<span class="slashes">//</span> Recent posts
</div>
<?php wp_get_archives('type=postbypost&limit=5'); ?>
</div>
</div>
<div class="side-section">
<div class="sidebar-content-wrapper">
<div class="title">
<span class="slashes">//</span> Archives
</div>
<?php wp_get_archives('type=monthly'); ?>
</div>
</div>
<div class="side-section">
<div class="sidebar-content-wrapper">
<div class="title">
<span class="slashes">//</span> Categories
</div>
<?php wp_list_categories('title_li='); ?>
</div>
</div>
</section>
</main>
<?php wp_footer(); ?>
<?php get_template_part( 'google-analytics' ); ?>
</body>
</html>