mitodl / ocw-to-hugo

A command line utility for taking master.json output from ocw-data-parser and producing markdown for use with hugo-course-publisher
3 stars 0 forks source link

call page description metadata_description #515

Closed gumaerc closed 2 years ago

gumaerc commented 2 years ago

Pre-Flight checklist

What are the relevant tickets?

Part of https://github.com/mitodl/ocw-hugo-themes/issues/725 Hotfix for https://github.com/mitodl/ocw-to-hugo/pull/513

What's this PR do?

In https://github.com/mitodl/ocw-to-hugo/pull/513, we started pulling in the description property of legacy course_pages objects, and we put it into a front matter property called description. Really we should be calling this property metadata_description because it is a distinct field that will be used for plain text descriptions written into the meta tags of course pages.

How should this be manually tested?

Follow the same instructions on https://github.com/mitodl/ocw-to-hugo/pull/513, but instead of description, the property will now be in metadata_description.