Sha256: 6c408562056a924e93f002cbe5865a0ebba50695aaa81efa10c6cec7c7743f13
Contents?: true
Size: 1.27 KB
Versions: 1
Compression:
Stored size: 1.27 KB
Contents
{% assign dataArr = site.data.[page.folderName][lang][file] %} {% assign dataToShow = dataArr %} {% assign description = dataToShow.META | replace:"$variable", page.value | default: site.description %} {%- assign tool = page.tool -%} {%- assign data = site.data.rating.rating.tools -%} {%- for item in data -%} {%- if item.name ==tool -%} {%- assign name = item.name -%} {%- assign rating = item.rating -%} {%- assign votes = item.votes -%} {%- endif -%} {%- endfor -%} <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "WebApplication", "operatingSystem":"All - Windows/Mac/iOS/Linux/Android", "applicationCategory":"UtilitiesApplication", "name": "{{name}}", "url":"{{site.url | append: page.url}}", "image":"{{site.siteurl}}{{site.logo}}", "aggregateRating": { "@type": "AggregateRating", "worstRating":"1", "bestRating":"5", "ratingValue": {%- if rating=='NaN' -%} "5" {%- else -%} "{{rating}}" {%- endif -%}, "ratingCount": {%- if votes== 0 -%} "1" {%- else -%} "{{votes}}" {%- endif -%} }, "offers": { "@type": "Offer", "price": "0.00", "priceCurrency": "USD" } } </script>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
appscms-tools-theme-0.8.2 | _includes/Rating/structureddata.html |