vimberlin / vimberlin.de

Sources of
https://vimberlin.de
25 stars 9 forks source link

Problems with the next_meetup tag #15

Closed wikimatze closed 10 years ago

wikimatze commented 10 years ago

I was going to build the latest version and got the following error message:

jekyll build
Configuration file: /home/wikimatze/Dropbox/git-repositories/vimberlin.de/_config.yml
            Source: /home/wikimatze/Dropbox/git-repositories/vimberlin.de
       Destination: /home/wikimatze/Dropbox/git-repositories/vimberlin.de/_site
      Generating...   Liquid Exception: undefined method `data' for nil:NilClass in _posts/2012-01-27-2012-01-meetup.md

The problem was in the next_event_tag.rb file. I removed the following line:

...
 .select  do |page| Time.parse(page.data['when']) >= Time.now end
...

and it worked again. Can somebody fix this?

Cheers

Matthias

blueyed commented 10 years ago

Is this fixed, or just worked around?

Also, you removed another line in the commit:

.select  do |page| page.data['layout'] == 'event' end

In both cases there is page.data, and page appears to be nil?

wikimatze commented 10 years ago

Yeah, I played with it and removed the line you've mentioned. It working fine now and the deployment, so for me it is fixed but there are plenty of TO-DOs inside the plugins that can be fixed.

nougad commented 10 years ago

Sorry, I haven't seen the issue until now. The removed line is fine but I don't check the case if there is no next event.