hexojs / hexo-asset-pipeline

A hexo plugin to minify/optimize HTML, CSS, JS and images. Supports revisioning of assets.
29 stars 16 forks source link

How to revision image in ld+json container #122

Open mahnunchik opened 3 years ago

mahnunchik commented 3 years ago

How to revision image in ld+json container embeded inside html?

<!doctype html>
<html>
<head>
  <script type="application/ld+json">{
    "@context": "https://schema.org",
    "@graph": [
      {
        "@type": "ImageObject",
        "@id": "https://example.com/#primaryimage",
        "inLanguage": "en_US",
        "url": "https://example.com/images/image.png",
        "contentUrl": "https://example.com/images/image.png",
        "width": 1920,
        "height": 1080
      },
    ]
  }</script>
</head>

I mean revision of /images/image.png file.