Skip to content

Commit 2bedd99

Browse files
committed
Add SoftwareApplication Schema Markup
1 parent 3701776 commit 2bedd99

2 files changed

Lines changed: 41 additions & 0 deletions

File tree

‎themes/vgp-theme/layouts/partials/head-meta.html‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,5 @@
2424
{{ with .Site.Params.open_graph_image }}
2525
<meta name="twitter:image" content="{{ . | absURL }}" />
2626
{{ end }}
27+
28+
{{ partial "schema.html" . }}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{{ if .IsHome }}
2+
<script type="application/ld+json">
3+
{
4+
"@context": "https://schema.org",
5+
"@type": "SoftwareApplication",
6+
"name": "{{ .Site.Title }}",
7+
"operatingSystem": "Android, Windows, Linux",
8+
"applicationCategory": "GameApplication",
9+
"applicationSubCategory": "Virtual Gamepad",
10+
"offers": {
11+
"@type": "Offer",
12+
"price": "0",
13+
"priceCurrency": "USD"
14+
},
15+
"description": "{{ with .Description }}{{ . | plainify | chomp }}{{ else }}{{ .Site.Params.description | plainify | chomp }}{{ end }}",
16+
"url": "{{ .Permalink }}",
17+
"downloadUrl": "https://github.com/kitswas/VirtualGamePad-Mobile/releases",
18+
"softwareVersion": "latest",
19+
"image": "{{ .Site.Params.open_graph_image | absURL }}",
20+
"screenshot": [
21+
"{{ "assets/VGP.svg" | absURL }}",
22+
"{{ "assets/VGP_night.svg" | absURL }}",
23+
"{{ "assets/VGP_Server.png" | absURL }}"
24+
],
25+
"featureList": [
26+
"Free and Open Source",
27+
"Secure",
28+
"Easy to Use",
29+
"No Bloat",
30+
"Economical & Eco-friendly"
31+
],
32+
"author": {
33+
"@type": "Person",
34+
"name": "kitswas",
35+
"url": "https://github.com/kitswas"
36+
}
37+
}
38+
</script>
39+
{{ end }}

0 commit comments

Comments
 (0)