Closed gumaerc closed 3 years ago
Closes https://github.com/mitodl/ocw-www/issues/129
This PR adds the proper mediaType and output values to the Hugo configuration to make sure that JSON is exported where a layout is defined to do so.
mediaType
output
ocw-hugo-themes
npm run start:site:webpack
cg/json-media-types
hugo server --themesDir /path/to/ocw-hugo-themes/
ocw-www
Pre-Flight checklist
What are the relevant tickets?
Closes https://github.com/mitodl/ocw-www/issues/129
What's this PR do?
This PR adds the proper
mediaType
andoutput
values to the Hugo configuration to make sure that JSON is exported where a layout is defined to do so.How should this be manually tested?
ocw-hugo-themes
ocw-hugo-themes
locally by runningnpm run start:site:webpack
cg/json-media-types
branchhugo server --themesDir /path/to/ocw-hugo-themes/
, replacing the path toocw-hugo-themes
with your ownocw-www
data and visit your local dev site verifying that the instructor exists and data is returned, for example: http://localhost:1313/instructors/0a90e4c5-5f99-646e-cbfc-402250d8aba5/index.json