|
| 1 | +{{/* layouts/partials/jsonld.html */}} |
| 2 | +<script type="application/ld+json"> |
| 3 | +{ |
| 4 | + "@context": "https://schema.org", |
| 5 | + "@graph": [ |
| 6 | + { |
| 7 | + "@type": "WebSite", |
| 8 | + "@id": "{{ .Site.BaseURL }}", |
| 9 | + "name": "{{ .Site.Title }}", |
| 10 | + "url": "{{ .Site.BaseURL }}", |
| 11 | + "potentialAction": { |
| 12 | + "@type": "SearchAction", |
| 13 | + "target": "{{ .Site.BaseURL }}search?query={search_term_string}", |
| 14 | + "query-input": "required name=search_term_string" |
| 15 | + } |
| 16 | + }, |
| 17 | + { |
| 18 | + "@type": "SoftwareApplication", |
| 19 | + "name": "{{ .Params.app.name }}", |
| 20 | + "url": "{{ .Params.app.url }}", |
| 21 | + "image": "{{ .Params.app.image }}", |
| 22 | + "description": "{{ .Params.app.description }}", |
| 23 | + "operatingSystem": "{{ delimit .Params.app.operatingSystem ", " }}", |
| 24 | + "applicationCategory": "{{ .Params.app.category }}", |
| 25 | + "offers": { |
| 26 | + "@type": "Offer", |
| 27 | + "price": "{{ .Params.app.price }}", |
| 28 | + "priceCurrency": "{{ .Params.app.priceCurrency }}", |
| 29 | + "url": "{{ .Params.app.buyUrl }}", |
| 30 | + "availability": "https://schema.org/InStock", |
| 31 | + "seller": { |
| 32 | + "@type": "Organization", |
| 33 | + "name": "{{ .Site.Title }}", |
| 34 | + "url": "{{ .Site.BaseURL }}" |
| 35 | + } |
| 36 | + }, |
| 37 | + "aggregateRating": { |
| 38 | + "@type": "AggregateRating", |
| 39 | + "ratingValue": "{{ .Params.app.aggregateRating }}", |
| 40 | + "reviewCount": "{{ .Params.app.reviewCount }}" |
| 41 | + }, |
| 42 | + "review": [ |
| 43 | + {{ range $index, $review := .Params.app.reviews }} |
| 44 | + {{ if $index }},{{ end }} |
| 45 | + { |
| 46 | + "@type": "Review", |
| 47 | + "author": { |
| 48 | + "@type": "Person", |
| 49 | + "name": "{{ $review.author }}" |
| 50 | + }, |
| 51 | + "datePublished": "{{ $review.datePublished }}", |
| 52 | + "description": "{{ $review.description }}", |
| 53 | + "reviewRating": { |
| 54 | + "@type": "Rating", |
| 55 | + "ratingValue": "{{ $review.ratingValue }}" |
| 56 | + } |
| 57 | + } |
| 58 | + {{ end }} |
| 59 | + ], |
| 60 | + "publisher": { |
| 61 | + "@type": "Organization", |
| 62 | + "name": "{{ .Site.Title }}", |
| 63 | + "url": "{{ .Site.BaseURL }}" |
| 64 | + } |
| 65 | + }, |
| 66 | + { |
| 67 | + "@type": "FAQPage", |
| 68 | + "mainEntity": [ |
| 69 | + {{ range $index, $faq := .Params.faq }} |
| 70 | + {{ if $index }},{{ end }} |
| 71 | + { |
| 72 | + "@type": "Question", |
| 73 | + "name": "{{ $faq.question }}", |
| 74 | + "acceptedAnswer": { |
| 75 | + "@type": "Answer", |
| 76 | + "text": "{{ $faq.answer }}" |
| 77 | + } |
| 78 | + } |
| 79 | + {{ end }} |
| 80 | + ] |
| 81 | + }, |
| 82 | + { |
| 83 | + "@type": "Article", |
| 84 | + "headline": "{{ .Params.article.headline }}", |
| 85 | + "author": { |
| 86 | + "@type": "Person", |
| 87 | + "name": "{{ .Params.article.author }}" |
| 88 | + }, |
| 89 | + "datePublished": "{{ .Params.article.datePublished }}", |
| 90 | + "image": "{{ .Params.article.image }}", |
| 91 | + "publisher": { |
| 92 | + "@type": "Organization", |
| 93 | + "name": "{{ .Site.Title }}", |
| 94 | + "logo": { |
| 95 | + "@type": "ImageObject", |
| 96 | + "url": "{{ .Site.BaseURL }}logo.jpg" |
| 97 | + } |
| 98 | + }, |
| 99 | + "description": "{{ .Params.article.description }}" |
| 100 | + } |
| 101 | + ] |
| 102 | +} |
| 103 | +</script> |
0 commit comments