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

Add some JSON-LD data to pages #1564

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft

Conversation

NickSto
Copy link
Member

@NickSto NickSto commented Jul 29, 2022

This is the start of an implementation of #1442.

This inserts the data into a <script> tag in the <head> of each page. Here's an example (formatted for readability):

{
  "@context": "http://schema.org/",
  "@type": "Event",
  "name": "Galaxy Community Call: Release 22.05",
  "startDate": "2022-06-23",
  "endDate": "2022-06-23",
  "contact": [
    {
      "@type": "Person",
      "name": "John Davis"
    },
    {
      "@type": "Person",
      "name": "Marius van den Beek"
    }
  ],
  "url": "https://galaxyproject.org/events/2022-06-23-community-call/"
}

One issue this faces is that the contact and authors fields are currently just raw strings. We're moving to a structured format, which this PR is compatible with, but for now it does its best by trying to split these fields on commas.

@NickSto NickSto added the new-feature Issue making a feature request, or a PR implementing a new feature. label Jul 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-feature Issue making a feature request, or a PR implementing a new feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants