Commit 337580f
committed
feat(remark-git-dates): integrate plugin and remove old implementation
remark-git-datesプラグインをastro.config.mjsに登録し、ビルドプロセスに
統合した。これにより、ブログ記事のpubDate(作成日)とupdatedDate(更新日)
がGitの履歴から自動的に設定される。
同時に、機能が重複する旧プラグイン(remark-astro-last-modified-at)を
削除し、コードベースを整理した。
remark-git-datesは以下の機能を提供:
- frontmatterにpubDateがない場合 → Git最初のコミット日を設定
- frontmatterにupdatedDateがない場合 → Git最後のコミット日を設定
- 既存の手動設定は上書きしない1 parent ab94123 commit 337580f
2 files changed
Lines changed: 2 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
50 | | - | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
This file was deleted.
0 commit comments