Closed adarsh-jha1611 closed 8 months ago
@adarsh-jha1611 in order to complete this PR we need to reflect these changes in the backend as well.
It can function similar to how Category
is implemented already.
You can see these images as reference and create something similar for tags
contentType
@adarsh-jha1611 in order to complete this PR we need to reflect these changes in the backend as well.
It can function similar to how
Category
is implemented already.You can see these images as reference and create something similar for
tags
contentType
Sure i'll update you over this
@adarsh-jha1611 I am going to close this for now, until you would like to revisit this and add the appropriate changes in the Strapi admin. Thank you.
In this updated code, a new property tags is added to the Article interface. The tags property is an array of strings representing the tags associated with the article. Within the Post component, a new section is added to display the tags. The tags are rendered as elements with appropriate styling. The tags are looped over using map() function, and each tag is displayed within a element.