ClickHouse/website/templates/docs/ld_json.html
2020-05-19 15:41:45 +03:00

34 lines
963 B
HTML

{% if page and page.meta %}
<script type="application/ld+json">[{
"@context": "http://schema.org",
"@type": "TechArticle",
"headline": "{{ title }}",
"mainEntityOfPage": "{{ url or 'https://clickhouse.tech/' }}",
{% if page.meta.published_date %}"datePublished": "{{ page.meta.published_date.isoformat() }}",{% endif %}
{% if page.meta.modified_date %}"dateModified": "{{ page.meta.modified_date.isoformat() }}",{% endif %}
"image": "https://clickhouse.tech/images/logo-209x60.png",
"author": {
"@type": "Project",
"name": "ClickHouse"
},
"publisher": {
"@type": "Organization",
"name": "Yandex LLC",
"logo": {
"@type": "ImageObject",
"url": "https://clickhouse.tech/images/yandex.png",
"width": 163,
"height": 60
}
}}, {
"@context": "http://schema.org",
"@type": "Episode",
"name": "{{ title }}",
"aggregateRating": {
"@type": "AggregateRating"
"ratingValue": RATING_VALUE,
"ratingCount": RATING_COUNT
}
}]</script>
{% endif %}