strapi / nextjs-corporate-starter

Strapi Demo application for Corporate Websites using Next.js
MIT License
959 stars 285 forks source link

Update post.tsx #40

Closed adarsh-jha1611 closed 8 months ago

adarsh-jha1611 commented 1 year ago

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.

PaulBratslavsky commented 1 year 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

2023-05-28_16-50-17

2023-05-28_16-50-39

adarsh-jha1611 commented 1 year 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

2023-05-28_16-50-17

2023-05-28_16-50-39

Sure i'll update you over this

PaulBratslavsky commented 8 months ago

@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.