How can I add an article excerpt to the question list page, just like the search question results page?

Viewed 261

I would like to add an article excerpt to the list of questions, just like the search question results page.


I tried to change the code but it didn't work.

ui/src/components/QuestionList/index.tsx
image.png

1 Answers

You can view the issue list interface in the console, and it's clear that there is no content field returned here, so your {li.content} has no content; however, there is a description field returned here, which is taken from the beginning of the body, so you can use that for now.

image.png

Powered by Answer - the open-source software that powers Q&A communities.
Made with love © 2024 Apache Answer Meta.