Update conditional feed method
This commit is contained in:
@@ -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`
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user