imathis / octopress

Octopress is an obsessively designed framework for Jekyll blogging. It’s easy to configure and easy to deploy. Sweet huh?

Home Page:http://github.com/imathis/octopress

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to disable category feed generation?

davidyell opened this issue · comments

What's happening

david@ukwm157 ~/Sites/davidyell.github.com $ rake generate
## Generating Site with Jekyll
    write source/stylesheets/screen.css
Configuration file: /Users/david/Sites/davidyell.github.com/_config.yml
            Source: source
       Destination: public
      Generating... 
     Build Warning: Layout 'nil' requested in blog/categories/svn/atom.xml does not exist.
     Build Warning: Layout 'nil' requested in blog/categories/bash/atom.xml does not exist.
     Build Warning: Layout 'nil' requested in blog/categories/htaccess/atom.xml does not exist.
     Build Warning: Layout 'nil' requested in blog/categories/apache/atom.xml does not exist.
     Build Warning: Layout 'nil' requested in blog/categories/dreamweaver/atom.xml does not exist.
     Build Warning: Layout 'nil' requested in blog/categories/sass/atom.xml does not exist.
     Build Warning: Layout 'nil' requested in blog/categories/cakephp/atom.xml does not exist.
     Build Warning: Layout 'nil' requested in blog/categories/pear/atom.xml does not exist.
     Build Warning: Layout 'nil' requested in blog/categories/phpcs/atom.xml does not exist.
     Build Warning: Layout 'nil' requested in blog/categories/phpmd/atom.xml does not exist.
     Build Warning: Layout 'nil' requested in blog/categories/netbeans/atom.xml does not exist.
     Build Warning: Layout 'nil' requested in blog/categories/ubuntu/atom.xml does not exist.

Basically a feed for every single category on the blog. This seems to be related to something using nil instead of null for the layout, but I cannot find whatever it is.

What have I tried?
These are the things I've tried and none of them have had any impact.

  • Commenting out subscribe_rss: /atom.xml in my _config.yaml
  • Creating an atom.xml layout in source/blog/categories/<categoryname>/atom.xml with a layout: null
  • Using both rake generate and bundle exec rake generate both generate warnings

Environment
OS X 10.11.5 (15F34)
ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15]
Pulled imathis/octopress master at Tue Jun 14 15:06:45 2016 +0100

Sods law. Works every time.

For anyone else looking for this. Check your plugins/category_generator.rb file, and you'll see the feeds are generated from source/_includes/custom/category_feed.xml into which you can add

---
layout: null
---