Menu icon Foundation

Developer | South Chicagoland

I've been working full time in web design and development for 11 years.

My Posts

  • 2
    Replies
  • Override default custom data

    By David Giove

    paninijekyll

    I have a simple template with header, footer, etc partials. In my header there is a banner with a link defined by custom data in src/data. I would like to be able to override this on a page by page basis, is there a way to do this? Below is what I have tr... (continued)

    Last Reply by David Giove about 2 years ago



My Comments

David Giove commented on David Giove's post about 2 years

So for example if I have 20 pages that all declare:
---
banner-url: https://foundation.zurb.com/
---
But I only have one page that declares:
---
banner-url: https://duckduckgo.com/
---
It would be nice to have a default attribute for banner-url that I could override on the single page that needs it instead of declaring it on each page. Does that make sense?

David Giove commented on David Giove's post about 2 years

Thanks Rafi, perhaps that's the case. If I revisit this I'll look into it. I ended up writing a custom Gulp task that works similar to creating a custom Panini helper, but that runs after Inliner is finished.

Posts Followed

No Content

Following

    No Content

Followers

My Posts



My Comments

You commented on David Giove's post about 2 years

So for example if I have 20 pages that all declare:
---
banner-url: https://foundation.zurb.com/
---
But I only have one page that declares:
---
banner-url: https://duckduckgo.com/
---
It would be nice to have a default attribute for banner-url that I could override on the single page that needs it instead of declaring it on each page. Does that make sense?

You commented on David Giove's post about 2 years

Thanks Rafi, perhaps that's the case. If I revisit this I'll look into it. I ended up writing a custom Gulp task that works similar to creating a custom Panini helper, but that runs after Inliner is finished.

Posts Followed

No Content

Following

  • No Content

Followers

  • No Content