Ensure RSS is discoverable from home page #220
Labels
No labels
A11y
Automated Testing
Contributable
Contributed
Decision
Design
Development
Drutopia
Feature Request
IndieWeb
Infrastructure
Marketing
Needs documentation
status::Abandoned
status::Blocked
status::Deploy
status::Doing
status::Done
status::In Review
status::Needs Clarification
status::Test
status::To Do
type::Bug
type::Task
type::User Story
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: agaric/agaric-coop#220
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
We have RSS but an RSS reader or browser plugin wouldn't likely find it given our home page because we don't announce it in a machine-readable way. (Want My RSS for instance does not add the RSS icon to the addressbar for Agaric.coop but does for Drupal.org/planet
Planet Drupal includes this in its HTML
<head>
section:<link rel="alternate" type="application/rss+xml" title="Drupal.org aggregator - Planet Drupal" href="https://www.drupal.org/planet/rss.xml" />
Do this for NICHQ.org first and bill to NICHQ Support 2020.
As a followup, https://agaric.coop/rss needs love. And it should get the same metadata.
Oh we need the blog page to do the same RSS metadata.
I would like this added metadata done in a contrib module, if none exist to do this already. Maybe it's just configuration for the meta tag module but both the discoverability for machines and the page to explain what the heck RSS is should be something that is automatic for sites— maybe only really practical as a Drutopia feature where some information about relevant RSS feeds is already known.
I reviewed how drupal does this out of the box:
The RSS is generated in Drupal using Views, by default there is a view called
/node
and that view has a display called/rss.xml
which displays the same info as/node
but in an RSS format.https://agaric-coop.ddev.site/admin/structure/views/view/frontpage/edit/feed_1
In the Feed display we can select if we want to display the
link
to add the RSS icon in the browser using theAttach to
option in the view:The only options to display the icon there is the Feed display and the master view:
Usually out of the box drupal displays the RSS icon on the homepage because the default home for drupal is
/node
once a different home is set to a different page the icon disappears.What I did to display the icon in NICHQ was add a hook in the code letting Drupal know that we want to display the RSS icon in all our pages like this:
That adds the attachment in all the pages and we can have the icon on the whole site.
In the case of our site, we have more than one Feed so, here we need to decide which feed we want to link in the icon, my guess is that we want to link our blog?
I mean this one:
http://agaric-coop.ddev.site/blog/feed
is this correct?
Not sure if we should create a module for this in contrib or create a patch for the Metatag module or just create a blog post letting the users know how this works in Drupal.
What do you think?