18F / guides-template

Jekyll template for 18F Guides, based on CFPB/DOCter
https://guides-template.18f.gov/
Other
49 stars 39 forks source link

give guidance about how to include custom scripts/stylesheets #69

Closed afeld closed 8 years ago

afeld commented 8 years ago

For the Before You Ship site, which uses this gem, I was trying to figure out a good way to include a script on every page of the site. Since the layout is embedded in the gem, I wasn't able to modify it directly. I ended up figuring out a workaround using a nested layout (see _config.yml and _layouts/default.html in https://github.com/18F/before-you-ship/pull/71), but it feels like a bit of a hack. Curious if there are other ideas about how to accomplish this?

/cc @fureigh

mbland commented 8 years ago

Yeah: https://github.com/18F/guides-style/#additional-scripts-and-styles

afeld commented 8 years ago

D'oh, thanks!