Skip to content

Commit bfa7e3f

Browse files
committed
Add restaurant photos to seo metadata
1 parent a94bee4 commit bfa7e3f

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

html/place.html

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,62 @@
9494
}
9595
</script>
9696

97+
<!-- Article Schema for Image Thumbnails -->
98+
<script type="application/ld+json">
99+
{
100+
"@context": "https://schema.org",
101+
"@type": "Article",
102+
"headline": "{{ name }}: {{ cuisine }} Restaurant Review in {{ area }}",
103+
"description": "{{ description }}",
104+
"url": "{{ SITE_URL }}{{ url }}",
105+
{% if food_image_path %}
106+
"image": [
107+
{
108+
"@type": "ImageObject",
109+
"url": "{{ SITE_URL }}{{ food_image_path }}",
110+
"width": 1200,
111+
"height": 675,
112+
"caption": "{{ alt_text if alt_text else 'Vegan food at ' + name }}"
113+
}
114+
],
115+
{% endif %}
116+
"datePublished": "{{ visited }}",
117+
"dateModified": "{{ visited }}",
118+
"author": {
119+
"@type": "Organization",
120+
"name": "Vegans In Love with Food",
121+
"url": "{{ SITE_URL }}"
122+
},
123+
"publisher": {
124+
"@type": "Organization",
125+
"name": "Vegans In Love with Food",
126+
"url": "{{ SITE_URL }}",
127+
"logo": {
128+
"@type": "ImageObject",
129+
"url": "{{ SITE_URL }}/favicon.png",
130+
"width": 512,
131+
"height": 512
132+
}
133+
},
134+
"mainEntityOfPage": {
135+
"@type": "WebPage",
136+
"@id": "{{ SITE_URL }}{{ url }}"
137+
},
138+
"about": {
139+
"@type": "Restaurant",
140+
"name": "{{ name }}",
141+
"address": {
142+
"@type": "PostalAddress",
143+
"streetAddress": "{{ address }}",
144+
"addressLocality": "{{ area }}",
145+
"addressRegion": "CA",
146+
"addressCountry": "US"
147+
},
148+
"servesCuisine": "{{ cuisine }}"
149+
}
150+
}
151+
</script>
152+
97153
<script type="application/ld+json">
98154
{
99155
"@context": "https://schema.org",

0 commit comments

Comments
 (0)