Skip to content

Conversation

@dvdksn
Copy link
Contributor

@dvdksn dvdksn commented Dec 4, 2025

Improves the schema.org json-ld markup to include more metadata.

For example, for this page: https://deploy-preview-23812--docsdocker.netlify.app/build/building/multi-stage/

Our current json-ld metadata is a bit broken:

{
  "@context":"https://schema.org",
  "@type":"WebPage",
  "headline":"\"Multi-stage\"",
  "description":"\"Learn about multi-stage builds and how you can use them to improve your builds and get smaller images \"",
  "url":"https:\/\/docs.docker.com\/build\/building\/multi-stage\/"
}

With this patch, we get more, well-formatted metadata:

  {
      "@context": "https://schema.org",
      "@type": "TechArticle",
      "articleSection": "manuals",
      "author": {
          "@type": "Organization",
          "name": "Docker Inc",
          "url": "https://www.docker.com"
      },
      "dateModified": "2024-09-10T15:26:47+02:00",
      "description": "Learn about multi-stage builds and how you can use them to improve your builds and get smaller images ",
      "headline": "Multi-stage",
      "keywords": "build, best, practices",
      "publisher": {
          "@type": "Organization",
          "logo": {
              "@type": "ImageObject",
              "url": "https://docs.docker.com/assets/images/docker-logo.png"
          },
          "name": "Docker Inc",
          "url": "https://www.docker.com"
      },
      "url": "https://docs.docker.com/build/building/multi-stage/"
  }

And we also get the BreadCrumbList (page hierarchy):

  {
      "@context": "https://schema.org",
      "@type": "BreadcrumbList",
      "itemListElement": [
          {
              "@type": "ListItem",
              "item": {
                  "@id": "https://docs.docker.com/manuals/",
                  "name": "Manuals"
              },
              "position": 1
          },
          {
              "@type": "ListItem",
              "item": {
                  "@id": "https://docs.docker.com/build/",
                  "name": "Docker Build"
              },
              "position": 2
          },
          {
              "@type": "ListItem",
              "item": {
                  "@id": "https://docs.docker.com/build/building/multi-platform/",
                  "name": "Multi-platform"
              },
              "position": 3
          }
      ]
  }

@netlify
Copy link

netlify bot commented Dec 4, 2025

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit 1e722fd
🔍 Latest deploy log https://app.netlify.com/projects/docsdocker/deploys/6932d4341f1ff60008c6302d
😎 Deploy Preview https://deploy-preview-23812--docsdocker.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions bot added the hugo Updates related to hugo label Dec 4, 2025
@dvdksn dvdksn requested a review from a team December 4, 2025 16:53
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hugo Updates related to hugo status/review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant