Merge pull request #1265 from roots/use-new-nav-template-tag

Use new core navigation template tag
This commit is contained in:
Ben Word
2015-01-18 04:19:02 -06:00
3 changed files with 13 additions and 14 deletions

View File

@@ -8,6 +8,7 @@
* Remove theme activation, move to [wp-cli-theme-activation](https://github.com/roots/wp-cli-theme-activation) * Remove theme activation, move to [wp-cli-theme-activation](https://github.com/roots/wp-cli-theme-activation)
* Add Travis CI * Add Travis CI
* Update to jQuery 1.11.2 * Update to jQuery 1.11.2
* Use new core navigation template tag
* Update sidebar to fix default template check * Update sidebar to fix default template check
### 7.0.3: December 18th, 2014 ### 7.0.3: December 18th, 2014

View File

@@ -9,12 +9,6 @@
.alignright { .alignright {
margin-bottom: (@line-height-computed / 2); margin-bottom: (@line-height-computed / 2);
} }
figure.alignnone {
margin-left: 0;
margin-right: 0;
max-width: 100%;
}
@media (min-width: @screen-sm-min) { @media (min-width: @screen-sm-min) {
// Only float images if not on an extra small device like smartphones // Only float images if not on an extra small device like smartphones
.alignleft { .alignleft {
@@ -26,3 +20,14 @@ figure.alignnone {
margin-left: (@line-height-computed / 2); margin-left: (@line-height-computed / 2);
} }
} }
figure.alignnone {
margin-left: 0;
margin-right: 0;
max-width: 100%;
}
.screen-reader-text {
&:extend(.sr-only all);
&:extend(.sr-only-focusable all);
}

View File

@@ -11,11 +11,4 @@
<?php get_template_part('templates/content', get_post_format()); ?> <?php get_template_part('templates/content', get_post_format()); ?>
<?php endwhile; ?> <?php endwhile; ?>
<?php if ($wp_query->max_num_pages > 1) : ?> <?php the_posts_navigation(); ?>
<nav class="post-nav">
<ul class="pager">
<li class="previous"><?php next_posts_link(__('&larr; Older posts', 'sage')); ?></li>
<li class="next"><?php previous_posts_link(__('Newer posts &rarr;', 'sage')); ?></li>
</ul>
</nav>
<?php endif; ?>