Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature(frontmatter description 노출 기능) #137

Merged
merged 2 commits into from
Jun 19, 2023

Conversation

rxjw95
Copy link
Contributor

@rxjw95 rxjw95 commented May 28, 2023

What does this PR do?

  • 기존 frontmatter의 description은 블로그 목록에 표기되지 않는다.
  • graphql로 frontmatter의 description 속성을 함께 받아와서 존재 여부에 따른 노출 기능이 필요하다.

Related Links

고민

  • 같은 스타일을 가진 속성이기 때문에 컴포넌트 네이밍에 대한 고민이 필요한 것 같습니다. (SecondaryText?)
  • 혹은, 두 컴포넌트로 분리시키는 방안도 좋을 것 같습니다. 그 이유는 excerpt는 200자 줄임으로 명시되어 있으나, description은 제한이 없을 것 같습니다. (description에 200자를 넣는 것이 쉬운 일은 아니지만...)

- 기존 frontmatter의 description은 블로그 목록에 표기되지 않는다.
- graphql로 frontmatter의 description 속성을 함께 받아와서 존재 여부에 따른 노출 기능이 필요하다.

추가 이슈
- 같은 스타일을 가진 속성이기 때문에 컴포넌트 네이밍에 대한 고민이 필요한 것 같습니다. (SecondaryText?)
- 혹은, 두 컴포넌트로 분리시키는 방안도 좋을 것 같습니다. 그 이유는 excerpt는 200자 줄임으로 명시되어 있으나, description은 제한이 없을 것 같습니다. (description에 200자를 넣는 것이 쉬운 일은 아니지만...)
@rxjw95 rxjw95 marked this pull request as draft May 28, 2023 20:22
@rxjw95 rxjw95 marked this pull request as ready for review May 28, 2023 20:22
@devHudi devHudi self-requested a review June 19, 2023 13:42
Copy link
Owner

@devHudi devHudi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

안녕하세요 @rxjw95 님! 소중한 기여 해주셨는데, 바빠서 이제야 확인했네요 😭 이 PR은 approve 하고 제가 머지해두겠습니다. 기여 정말 감사드려요 🙏

<Excerpt>{excerpt}</Excerpt>
{ description
? <Excerpt>{description}</Excerpt>
: <Excerpt>{excerpt}</Excerpt>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

excerpt 는 GraphQL 단에서 길이 제한이 되어 불러와지는데, description 은 그게 아닐거라서 적절한 length 에서 끊어 보여주는게 좋을 것 같네요 👍👍 요 부분은 가능하면 제가 작업하겠습니다.

@devHudi
Copy link
Owner

devHudi commented Jun 19, 2023

prettier 적용은 제가 해두었습니다 😄 (github actions CI가 돌려면 제 허가가 필요하네요 ㅎㅎ;)

@devHudi devHudi merged commit 4ecd9e7 into devHudi:develop Jun 19, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants