fix: publish explicit post modification dates - #191
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
변경 사항
date와 동일한 필수updated를 추가했습니다.<lastmod>가updated를 직접 사용하도록 변경했습니다.datePublished와dateModified를 분리했습니다.<lastmod>를 제거했습니다.원인
기존 sitemap은 게시글에는 게시일을 사용하고 고정 페이지에는 매 빌드 날짜를 기록했으며, 게시글 JSON-LD에는
dateModified가 없었습니다. 또한 최종 수정일을 명시적으로 관리하는 frontmatter 필드가 없었습니다.검증
npm run test:post-datesnpm run buildnpm run test:sitemap-lastmodnpm run check:internal-linksnpm run type-checknpm run lint(기존 경고 16개, 오류 0개)기존
date값은 변경하지 않았습니다.