Update conditional feed method

This commit is contained in:
Ben Word
2012-10-30 19:55:31 -05:00
parent 6735edced0
commit a0549355f1
2 changed files with 3 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
### HEAD
* Update conditional feed method
* Update to Bootstrap 2.2.0
* Return instead of echo class names in `roots_main_class` and `roots_sidebar_class`
* Move nav customizations into `lib/nav.php`

View File

@@ -15,7 +15,7 @@
<?php wp_head(); ?>
<?php if (have_posts()) : ?>
<link rel="alternate" type="application/rss+xml" title="<?php echo get_bloginfo('name'); ?> Feed" href="<?php echo home_url() ?>/feed/">
<?php if (wp_count_posts()->publish > 0) : ?>
<link rel="alternate" type="application/rss+xml" title="<?php echo get_bloginfo('name'); ?> Feed" href="<?php echo home_url(); ?>/feed/">
<?php endif; ?>
</head>