Closed inetbiz closed 3 years ago
Did you downloaded the sources directly from GitHub with "save as"? In case make sure you choose the "raw" option first, or you might end up with an HTML rather than a ruby file.
Consider also using the gem, which is simpler to install.
Let me know if it solves your issue or we will dig deeper.
_config.yml?
# DATA GEN
page_gen-dirs: true
page_gen:
- data: products.study
template: single
dir: products/office
index_files: true
name: filename
title: name
extension: html
ok, make sure all the required data (products.study, _layouts/single.html) exist. Make also sure there are a "filename" and a "name" field in your records. If in doubt, you can add
debug:true
and run again, it should show what is going on.
the data does not look like an array. This is the issue, I believe. Run with debug:true and you will see.
I am closing this issue.
There is no need to use this plugin if the input data is not an array.
@avillafiorita I've tried using sample data from your own repo. I still get NoMethodError: undefined method each for nil:NilClass
That error output is listed further up in this thread.
I just downloaded the repo and run the example available in the example
directory. It works fine on my machine.
Start from the site in the example directory (rather than using only the data file) and then move on with your own website. Make sure you have _config.yml
, YAML data and a template in _layouts
as described in the documentation.
Read the documentation if in doubt. Use the debug option to understand what is causing the error.
I'm running into generating pages because your plug-in fouls out with the
<head>
content in the include file for default layout.Default layout
Single Layout
Output Error
Data