Get outputs working. Combine the code for both of them since the differences are minimal.
Merge branch 'new-layout' of github.com:prisms-center/materialscommons.org into new-layout