Closed matthiasbeyer closed 11 years ago
you specified tag_page
as tag_page_layout
, so do you have that layout? you may wanna move source/tags.html
to _includes/tag_page.html
. also, what's tag_page_tag
? you probably meant tag_page_dir
.
I fixed what you said. The error is still occuring. tag_page_dir
is the directory where the tag pages are stored, right? I also set layout: tag_page
in the file source/_includes/tag_page.html
.
oops, stupid me!! i meant _layouts
not _includes
. sorry!
Of course, now it's working. But it takes soooo long to generate (300+ Posts in the Blog). Anyway, it's working now! Thank you a lot!
This Issue can be closed now.
I ran into this as well. I imagine some other people new to jekyll have also tried and failed at it ... I'll patch the README to make it clear what goes where.
I also got the undefined method
ext' for nil:NilClass (NoMethodError)error, because I had the
atom-tag.xmlin the root directory (as my
atom.xml) but it should be in
_layouts/`
Hi! I'm also having this issue, but I can't figure out what's wrong. My _plugins/ext.rb:
require 'jekyll/tagging'
_config.yml:
plugins:
- jekyll/tagging
# Jekyll-tagging plugin
tag_page_layout: tag_page
tag_page_dir: tag
tag_permalink_style: pretty
Gemfile:
# If you have any plugins, put them here!
group :jekyll_plugins do
gem "jekyll-feed", "~> 0.6"
end
gem 'jekyll-tagging'
tag-page.html is in _layouts folder, and the error message is:
jekyll 3.8.4 | Error: undefined method `ext' for nil:NilClass
Thank you so much in advance!
.rbenv/versions/2.6.10/lib/ruby/gems/2.6.0/gems/jekyll-tagging-1.1.0/lib/jekyll/tagging.rb:61:in `block in new_tag': undefined method `ext' for nil:NilClass (NoMethodError)
In My case, After making _includes/tag_page.html
Then the error message disappeared.
My plugins/ext.rb:
The part in the
_config.yml
:My tag site:
The error: