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

fix: rss feed #328

Merged
merged 1 commit into from
Aug 16, 2023
Merged

fix: rss feed #328

merged 1 commit into from
Aug 16, 2023

Conversation

yug1224
Copy link
Contributor

@yug1224 yug1224 commented Aug 12, 2023

説明

Feed Validatorでエラーが出ていたのでRSSの出力内容を変更してみました。

https://validator.w3.org/feed/check.cgi?url=https%3A%2F%2Fblog.ojisan.io%2Frss.xml

やったこと

  • content:encoded の削除
    • description があればひとまず問題なさそうなので削除
  • atom:link の追加
    • なくても問題なさそうだがValidatorが推奨するので追加
  • limit: 10 の追加
    • 全件出力すると容量が肥大化するため最新10件に制限

スクリーンショット

Before After
スクリーンショット 2023-08-12 23 56 54 スクリーンショット 2023-08-12 23 56 58

atom:link 部分にRecommendationsが出ていますが、これはRSSの内容を直接入力で検査したため、linkの検査ができないことが理由だと考えています。

Copy link
Owner

@sadnessOjisan sadnessOjisan left a comment

Choose a reason for hiding this comment

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

ありがとうございます。一旦それで試してみます。

ただ inoreader などは html をそのまま feed で読める機能があったりするので、これをサポートするために html 出力は戻すかもしれません。

Screen Shot 2023-08-17 at 1 06 32

@sadnessOjisan sadnessOjisan merged commit 3aa1c6c into sadnessOjisan:main Aug 16, 2023
2 checks passed
@yug1224 yug1224 deleted the fix-rss-feed branch September 19, 2023 18:56
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