Sha256: c2a62ce733d82b883ff4d7a6a35960ca00336c63ec301c40f68cf98ce889c927

Contents?: true

Size: 1.43 KB

Versions: 139

Compression:

Stored size: 1.43 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 -%}
      {%- if rating=='NaN' -%}
      "5"
    {%- else -%}
    "{{rating}}"
    {%- endif -%}
      {%- else -%}
        "5"
      {%- endif -%},
      "ratingCount": {%- if votes -%}
      {%- if votes== 0 -%}
      "1"
    {%- else -%}
    "{{votes}}" 
    {%- endif -%}
      {%- else -%}
       "1"
      {%- endif -%}
       
    },
    "offers": {
      "@type": "Offer",
      "price": "0.00",
      "priceCurrency": "USD"
    }
  }
</script>

Version data entries

139 entries across 139 versions & 2 rubygems

Version Path
appscms-tools-theme-1.3.7 _includes/Rating/structureddata.html
appscms-tools-theme-1.3.6 _includes/Rating/structureddata.html
appscms-tools-theme-1.3.0 _includes/Rating/structureddata.html
appscms-tools-theme-1.2.9 _includes/Rating/structureddata.html
appscms-tools-theme-1.2.8 _includes/Rating/structureddata.html
appscms-tools-theme-1.2.7 _includes/Rating/structureddata.html
appscms-tools-theme-1.2.6 _includes/Rating/structureddata.html
appscms-tools-theme-1.2.5 _includes/Rating/structureddata.html
appscms-tools-theme-1.2.4 _includes/Rating/structureddata.html
appscms-tools-theme-1.2.3 _includes/Rating/structureddata.html
appscms-tools-theme-1.2.2 _includes/Rating/structureddata.html
appscms-tools-theme-1.2.1 _includes/Rating/structureddata.html
appscms-tools-theme-1.2.0 _includes/Rating/structureddata.html
appscms-tools-theme-1.1.9 _includes/Rating/structureddata.html
appscms-tools-theme-1.1.8 _includes/Rating/structureddata.html
appscms-tools-theme-1.1.7 _includes/Rating/structureddata.html
appscms-tools-theme-1.1.6 _includes/Rating/structureddata.html
appscms-tools-theme-1.1.5 _includes/Rating/structureddata.html
appscms-tools-theme-1.1.4 _includes/Rating/structureddata.html
word-games-theme-0.1.9 _includes/Rating/structureddata.html