|
2 | 2 | <head> |
3 | 3 | <meta charset="<?php bloginfo( 'charset' ); ?>" /> |
4 | 4 | <meta name="viewport" content="width=device-width" /> |
5 | | -<title><?php wp_title( '|', true, 'right' ); ?></title> |
| 5 | +<title><?php bloginfo('name'); ?> | <?php if( is_home() ) : echo bloginfo( 'description' ); endif; ?><?php wp_title( '', true ); ?></title> |
| 6 | + |
6 | 7 | <link rel="profile" href="http://gmpg.org/xfn/11" /> |
7 | 8 | <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> |
8 | 9 |
|
|
45 | 46 |
|
46 | 47 | <div class="container"> |
47 | 48 |
|
| 49 | + <div id="primary"> |
| 50 | + <div id="content" role="main"> |
| 51 | + |
| 52 | + |
48 | 53 | <?php |
49 | 54 | /*-----------------------------------------------------------------------------------*/ |
50 | 55 | /* Start Home loop |
51 | 56 | /*-----------------------------------------------------------------------------------*/ |
52 | 57 |
|
53 | | - if( is_home() ) { |
| 58 | + if( is_home() || is_archive() ) { |
54 | 59 |
|
55 | 60 | ?> |
56 | | - <div id="primary"> |
57 | | - <div id="content" role="main"> |
58 | | - |
59 | 61 | <?php if ( have_posts() ) : ?> |
60 | 62 |
|
61 | 63 | <?php while ( have_posts() ) : the_post(); ?> |
|
105 | 107 |
|
106 | 108 | <?php endif; ?> |
107 | 109 |
|
108 | | - </div><!-- #content .site-content --> |
109 | | - </div><!-- #primary .content-area --> |
110 | 110 |
|
111 | 111 | <?php } //end is_home(); ?> |
112 | 112 |
|
|
115 | 115 | /* Start Single loop |
116 | 116 | /*-----------------------------------------------------------------------------------*/ |
117 | 117 |
|
118 | | - if( is_single() || is_archive() ) { |
| 118 | + if( is_single() ) { |
119 | 119 | ?> |
120 | 120 |
|
121 | | - |
122 | | - <div id="primary"> |
123 | | - <div id="content" role="main"> |
124 | 121 |
|
125 | 122 | <?php if ( have_posts() ) : ?> |
126 | 123 |
|
|
163 | 160 |
|
164 | 161 | <?php endif; ?> |
165 | 162 |
|
166 | | - </div><!-- #content .site-content --> |
167 | | - </div><!-- #primary .content-area --> |
168 | 163 |
|
169 | 164 | <?php } //end is_single(); ?> |
170 | 165 |
|
|
175 | 170 |
|
176 | 171 | if( is_page()) { |
177 | 172 | ?> |
| 173 | + |
| 174 | + <?php if ( have_posts() ) : ?> |
| 175 | + |
| 176 | + <?php while ( have_posts() ) : the_post(); ?> |
| 177 | + |
| 178 | + <article class="post"> |
| 179 | + |
| 180 | + <h1 class="title"><?php the_title() ?></h1> |
| 181 | + |
| 182 | + <div class="the-content"> |
| 183 | + <?php the_content(); ?> |
| 184 | + |
| 185 | + <?php wp_link_pages(); ?> |
| 186 | + </div><!-- the-content --> |
| 187 | + |
| 188 | + </article> |
| 189 | + |
| 190 | + <?php endwhile; ?> |
| 191 | + |
| 192 | + <?php else : ?> |
| 193 | + |
| 194 | + <article class="post error"> |
| 195 | + <h1 class="404">Nothing posted yet</h1> |
| 196 | + </article> |
| 197 | + |
| 198 | + <?php endif; ?> |
| 199 | + |
178 | 200 | <?php } // end is_page(); ?> |
| 201 | + |
| 202 | + </div><!-- #content .site-content --> |
| 203 | + </div><!-- #primary .content-area --> |
| 204 | + |
| 205 | +</div><!-- / container--> |
| 206 | + |
179 | 207 | <?php |
180 | 208 | /*-----------------------------------------------------------------------------------*/ |
181 | 209 | /* Start Footer |
182 | 210 | /*-----------------------------------------------------------------------------------*/ |
183 | 211 | ?> |
184 | 212 |
|
185 | | -</div><!-- / container--> |
186 | | - |
187 | | - <footer class="site-footer" role="contentinfo"> |
188 | | - <div class="site-info container"> |
189 | | - <?php do_action( 'break_credits' ); ?> |
190 | | - <a href="http://wordpress.org/" title="A Semantic Personal Publishing Platform" rel="generator">Proudly powered by WordPress</a> |
191 | | - <span class="sep"> and </span> |
192 | | - <a href="http://lessmade.com/themes/less" rel="theme">LESS</a> by <a href="http://jarederickson.com" rel="designer">Jared Erickson</a> |
193 | | - </div><!-- .site-info --> |
194 | | - </footer><!-- #colophon .site-footer --> |
195 | | -</div><!-- #page .hfeed .site --> |
| 213 | +<footer class="site-footer" role="contentinfo"> |
| 214 | + <div class="site-info container"> |
| 215 | + <?php do_action( 'break_credits' ); ?> |
| 216 | + <a href="http://wordpress.org/" title="A Semantic Personal Publishing Platform" rel="generator">Proudly powered by WordPress</a> |
| 217 | + <span class="sep"> and </span> |
| 218 | + <a href="http://lessmade.com/themes/less" rel="theme">LESS</a> by <a href="http://jarederickson.com" rel="designer">Jared Erickson</a> |
| 219 | + </div><!-- .site-info --> |
| 220 | +</footer><!-- #colophon .site-footer --> |
196 | 221 |
|
197 | 222 | <?php wp_footer(); ?> |
198 | 223 |
|
|
0 commit comments