Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doc doesn't tell to update gulpfile when using global vars #167

Closed
R4YM3 opened this issue Apr 27, 2018 · 0 comments
Closed

Doc doesn't tell to update gulpfile when using global vars #167

R4YM3 opened this issue Apr 27, 2018 · 0 comments

Comments

@R4YM3
Copy link

R4YM3 commented Apr 27, 2018

On the page and section https://foundation.zurb.com/sites/docs/panini.html#custom-data is explained how to implement global vars. I followed these steps, but didn't get it to work. After some research is saw i need to update the gulp file.

from:

function pages() {
  return gulp.src(['src/pages/**/*.html', '!src/pages/archive/**/*.html'])
    .pipe(panini({
      root: 'src/pages',
      layouts: 'src/layouts',
      partials: 'src/partials',
      helpers: 'src/helpers'
    }))
    .pipe(inky())
    .pipe(gulp.dest('dist'));
}

into:

function pages() {
  return gulp.src(['src/pages/**/*.html', '!src/pages/archive/**/*.html'])
    .pipe(panini({
      root: 'src/pages',
      layouts: 'src/layouts',
      partials: 'src/partials',
      helpers: 'src/helpers',
      data: 'src/data'
    }))
    .pipe(inky())
    .pipe(gulp.dest('dist'));
}

Please add this to the docs, for other people trying to work with this.

Regards,
Raymond

@R4YM3 R4YM3 closed this as completed Aug 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant