Edit content field and remove type field from diversity.yml credits file #2822
Labels
good first issue
Good for newcomers
P-Feature: Credit
https://www.hackforla.org/credits/
role: back end/devOps
Tasks for back-end developers
role: front end
Tasks for front end developers
size: 0.5pt
Can be done in 3 hours or less
Milestone
Prerequisite
Overview
As a developer, I want to edit the content field and remove the type field from a credit's yml file so that redundant code is removed and the code is easier to understand.
Details
Currently, in each credit's yml file, there is a
content
field and atype
field, which contains similar information. Since the fields are redundant, we decided to remove thetype
field.Also, we changed the
content
field to thecontent-type
field to make it clearer what its purpose is. The possible values forcontent-type
field are image, video, or audio; other types of content can be added if necessary. In the future, this will allow developers a way to differentiate easily between different types of content in order to show each credit's media file correctly on the website.Action Items
For the file
_data/internal/credits/diversity.yml
, do the following:Resources/Instructions
File and Code links you will need to work on this issue
Directory to find the page in once you have it in your IDE:
_data/internal/credits/diversity.yml
Click on the links below to see the source file code:
website/_data/internal/credits/diversity.yml
Line 4 in e980b70
website/_data/internal/credits/diversity.yml
Line 11 in e980b70
The text was updated successfully, but these errors were encountered: