game page bug fix
This commit is contained in:
@@ -546,8 +546,8 @@
|
|||||||
@push('scripts')
|
@push('scripts')
|
||||||
<script type="application/ld+json">
|
<script type="application/ld+json">
|
||||||
{
|
{
|
||||||
"@context": "https://schema.org",
|
"@@context": "https://schema.org",
|
||||||
"@type": "VideoGame",
|
"@@type": "VideoGame",
|
||||||
"name": {{ json_encode($game->title) }},
|
"name": {{ json_encode($game->title) }},
|
||||||
"description": {{ json_encode($game->summary ?? '') }},
|
"description": {{ json_encode($game->summary ?? '') }},
|
||||||
"url": {{ json_encode(route('games.show', $game)) }}
|
"url": {{ json_encode(route('games.show', $game)) }}
|
||||||
@@ -559,7 +559,7 @@
|
|||||||
@endif
|
@endif
|
||||||
@if($game->rating_count > 0)
|
@if($game->rating_count > 0)
|
||||||
,"aggregateRating": {
|
,"aggregateRating": {
|
||||||
"@type": "AggregateRating",
|
"@@type": "AggregateRating",
|
||||||
"ratingValue": {{ $game->rating_avg }},
|
"ratingValue": {{ $game->rating_avg }},
|
||||||
"ratingCount": {{ $game->rating_count }},
|
"ratingCount": {{ $game->rating_count }},
|
||||||
"bestRating": 10,
|
"bestRating": 10,
|
||||||
|
|||||||
Reference in New Issue
Block a user