`Draft`s are a subclass of `Post` so `draft.is_a?(Post)` will return `true`, thus making all `Draft`s `Post`s, which is not desired. If asking about `Draft` first, then we avoid this problem. Fixes #2726 |
||
---|---|---|
.. | ||
jekyll | ||
site_template | ||
jekyll.rb |
`Draft`s are a subclass of `Post` so `draft.is_a?(Post)` will return `true`, thus making all `Draft`s `Post`s, which is not desired. If asking about `Draft` first, then we avoid this problem. Fixes #2726 |
||
---|---|---|
.. | ||
jekyll | ||
site_template | ||
jekyll.rb |