avillafiorita / jekyll-datapage_gen

Generate one page per yaml record in Jekyll sites.
371 stars 80 forks source link

Error #22

Closed geloangelia closed 7 years ago

geloangelia commented 7 years ago

Hi i used your plugin but its giving me this error:

D:\Gelo Files\Github\vcsites>jekyll build WARN: Unresolved specs during Gem::Specification.reset: rb-inotify (>= 0.9.7, ~> 0.9) WARN: Clearing out unresolved specs. Please report a bug if this causes problems. Configuration file: D:/Gelo Files/Github/vcsites/_config.yml Source: D:/Gelo Files/Github/vcsites Destination: D:/Gelo Files/Github/vcsites/_site Incremental build: disabled. Enable with --incremental Generating... jekyll 3.4.0 | Error: undefined method `downcase' for nil:NilClass

geloangelia commented 7 years ago

jekyll 3.4.0 | Error: undefined method `downcase' for nil:NilClass

avillafiorita commented 7 years ago

Hi difficult to understand what the error is without sources.

main main guess is that the field "name" in the yaml specification has some issues. Could you please check the following:

Otherwise, if you can send me the data you are using to generate the pages, I can try and have a look.

geloangelia commented 7 years ago

Heres my repository:

geloangelia commented 7 years ago

Hi @avillafiorita Im not getting the error once I change the data from "name" field.

geloangelia commented 7 years ago

Unfortunately, The links is showing in the header on my html and not on a specific page/layout.

avillafiorita commented 7 years ago

Hi- Links showing in the header seems to be a feature of the "minima" template and is not related to this plugin.

You also need to use datapage_url for links to work properly.

For instance:

{% for item in site.data.vclist %}
   

{{ item.Name }}

{% endfor %}

will generate a link to the page built from the record in vclist identified by Name. The link expects the page to be in the directory vclistcontent.

I will make the description of datapage_url clearer in the readme. I am closing this bug.

geloangelia commented 7 years ago

I havent put a code to list the names. but its automatically showing on my header. Is followed all steps

avillafiorita commented 7 years ago

Links showing in the header seems to be a feature of the "minima" template (your site is using) and is not related to this plugin.