mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 00:52:02 +00:00
39 lines
1.2 KiB
HTML
39 lines
1.2 KiB
HTML
{% if page and page.meta %}
|
|
<script type="application/ld+json">[{
|
|
"@context": "http://schema.org",
|
|
"@type": "{% if is_blog %}BlogPosting{% else %}TechArticle{% endif %}",
|
|
"headline": "{{ title }}",
|
|
"mainEntityOfPage": "{{ url or 'https://clickhouse.com/' }}",
|
|
{% if page.meta.date %}
|
|
"datePublished": "{{ page.meta.date }}",
|
|
"dateModified": "{{ page.meta.date }}",
|
|
{% else %}
|
|
{% if page.meta.published_date %}"datePublished": "{{ page.meta.published_date.isoformat() }}",{% endif %}
|
|
{% if page.meta.modified_date %}"dateModified": "{{ page.meta.modified_date.isoformat() }}",{% endif %}
|
|
{% endif %}
|
|
"image": "{{ page.meta.image or 'https://clickhouse.com/images/clickhouse-209x60.png' }}",
|
|
"author": {
|
|
"@type": "Project",
|
|
"name": "ClickHouse"
|
|
},
|
|
"publisher": {
|
|
"@type": "Organization",
|
|
"name": "ClickHouse, Inc.",
|
|
"logo": {
|
|
"@type": "ImageObject",
|
|
"url": "https://clickhouse.com/images/logo-400x240.png",
|
|
"width": 400,
|
|
"height": 240
|
|
}
|
|
}}{% if not is_blog %}, {
|
|
"@context": "http://schema.org",
|
|
"@type": "Episode",
|
|
"name": "{{ title }}",
|
|
"aggregateRating": {
|
|
"@type": "AggregateRating",
|
|
"ratingValue": RATING_VALUE,
|
|
"ratingCount": RATING_COUNT
|
|
}
|
|
}{% endif %}]</script>
|
|
{% endif %}
|