From a93e30020e2a791398d95afb5da493285541708a Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Sun, 31 Jul 2022 22:27:33 +0200 Subject: [PATCH] Remove checks that only adds RSS feed link on home and post pages I actually don't really see a reason for this. Maybe you wouldn't want it on a documentation site, but I don't think that complexity is warranted now, and it's not within the 80% use case. --- .../framework/src/Concerns/HasPageMetadata.php | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/packages/framework/src/Concerns/HasPageMetadata.php b/packages/framework/src/Concerns/HasPageMetadata.php index 786c13186ca..d7b4c7be133 100644 --- a/packages/framework/src/Concerns/HasPageMetadata.php +++ b/packages/framework/src/Concerns/HasPageMetadata.php @@ -82,21 +82,7 @@ public function canUseCanonicalUrl(): bool public function canUseRssFeedLink(): bool { - if (RssFeedService::canGenerateFeed() && isset($this->slug)) { - if ($this instanceof MarkdownPost) { - return true; - } - - if (str_starts_with($this->getCurrentPagePath(), 'post')) { - return true; - } - - if ($this->getCurrentPagePath() === 'index') { - return true; - } - } - - return false; + return RssFeedService::canGenerateFeed(); } public function hasTwitterTitleInConfig(): bool