現象
今まで書いたブログにタグをつけてrake preview
したら、こんなんいっぱいでてきた。
もうだめだ。
Build Warning: Layout 'nil' requested in blog/categories/blog/atom.xml does not exist.
Build Warning: Layout 'nil' requested in blog/categories/sugoiguang-dao/atom.xml does not exist.
Build Warning: Layout 'nil' requested in blog/categories/aws/atom.xml does not exist.
Build Warning: Layout 'nil' requested in blog/categories/rails/atom.xml does not exist.
Build Warning: Layout 'nil' requested in blog/categories/devise/atom.xml does not exist.
Build Warning: Layout 'nil' requested in blog/categories/hobby/atom.xml does not exist.
Build Warning: Layout 'nil' requested in blog/categories/event/atom.xml does not exist.
Build Warning: Layout 'nil' requested in blog/categories/debusami/atom.xml does not exist.
Build Warning: Layout 'nil' requested in blog/categories/ltqu-dong/atom.xml does not exist.
Build Warning: Layout 'nil' requested in blog/categories/hackathon/atom.xml does not exist.
Build Warning: Layout 'nil' requested in blog/categories/guang-dao/atom.xml does not exist.
Build Warning: Layout 'nil' requested in blog/categories/event/atom.xml does not exist.
Build Warning: Layout 'nil' requested in blog/categories/cloudstack/atom.xml does not exist.
Build Warning: Layout 'nil' requested in blog/categories/mian-qiang-hui/atom.xml does not exist.
Build Warning: Layout 'nil' requested in blog/categories/oss/atom.xml does not exist.
Build Warning: Layout 'nil' requested in blog/categories/sugoiguang-dao/atom.xml does not exist.
Build Warning: Layout 'nil' requested in blog/categories/scrum/atom.xml does not exist.
Build Warning: Layout 'nil' requested in blog/categories/ruby-rails-sonicgarden/atom.xml does not exist.
以下略
実際はこれの3倍くらい。
関係ないけど、漢字が中国語読みに変換されている…
解決法
下記ファイルの
- source/atom.xml
- source/robots.txt
- source/_includes/custom/category_feed.xml
layout: nil
を layout: null
にかえる。
念のため layout: nil
でgrepするといいかも。