-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract LD product metadata, and apply it just to product landing pages
- Loading branch information
Showing
13 changed files
with
74 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import React from 'react'; | ||
|
||
import { siteMetadata } from '../../gatsby-config.js'; | ||
|
||
export const ProductLdData = () => <script type="application/ld+json">{ | ||
JSON.stringify({ | ||
"@context": "https://schema.org", | ||
"@type": ["SoftwareApplication", "WebApplication", "MobileApplication"], | ||
"image": "https://httptoolkit.com/logo-square.png", | ||
"screenshot": "https://httptoolkit.com/screenshot.png", | ||
"dateModified": siteMetadata.latestSiteUpdate, // Bit hacky - we should really pull this from the GH releases API | ||
"video": { | ||
"@type": "VideoObject", | ||
"name": "HTTP Toolkit", | ||
"description": "A short demo of HTTP Toolkit in action", | ||
"contentUrl": "https://httptoolkit.com/http-mock-demo.mp4", | ||
"thumbnailUrl": "https://httptoolkit.com/http-mock-demo-thumbnail.png", | ||
"uploadDate": "2019-09-25T00:00:00Z" | ||
}, | ||
"name": "HTTP Toolkit", | ||
"description": "Beautiful & open-source tools to debug, test and develop with HTTP(S)", | ||
"softwareVersion": siteMetadata.latestAppVersion, | ||
"operatingSystem": [ | ||
"Windows", | ||
"Mac", | ||
"Linux", | ||
"Android" | ||
], | ||
"aggregateRating": { | ||
"@type": "AggregateRating", | ||
"ratingValue": "5", | ||
"reviewCount": "33" // Update as new testimonials are added | ||
}, | ||
"url": "https://httptoolkit.com/", | ||
"downloadUrl": [ | ||
"https://httptoolkit.com/download/win-exe/", | ||
"https://httptoolkit.com/download/win-standalone/", | ||
"https://httptoolkit.com/download/win-winget/", | ||
"https://httptoolkit.com/download/linux-deb/", | ||
"https://httptoolkit.com/download/linux-standalone/", | ||
"https://httptoolkit.com/download/linux-aur/", | ||
"https://httptoolkit.com/download/osx-dmg/", | ||
"https://httptoolkit.com/download/osx-homebrew/" | ||
], | ||
"applicationCategory": "DeveloperApplication", | ||
"offers": { | ||
"@type": "Offer", | ||
"price": "0", | ||
"priceCurrency": "USD" | ||
} | ||
}) | ||
}</script>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters