|
1 | 1 | {% extends "base.html" %} |
| 2 | + |
| 3 | +{% block extra_head %} |
| 4 | +<script type="application/ld+json"> |
| 5 | +{ |
| 6 | + "@context": "https://schema.org", |
| 7 | + "@type": "Restaurant", |
| 8 | + "name": "{{ name }}", |
| 9 | + "description": "{{ description }}", |
| 10 | + "url": "{{ SITE_URL }}{{ url }}", |
| 11 | + "address": { |
| 12 | + "@type": "PostalAddress", |
| 13 | + "streetAddress": "{{ address }}", |
| 14 | + "addressLocality": "{{ area }}", |
| 15 | + "addressRegion": "CA", |
| 16 | + "addressCountry": "US" |
| 17 | + }, |
| 18 | + "geo": { |
| 19 | + "@type": "GeoCoordinates", |
| 20 | + "latitude": {{ lat }}, |
| 21 | + "longitude": {{ lon }} |
| 22 | + }, |
| 23 | + "servesCuisine": "{{ cuisine }}", |
| 24 | + "priceRange": "$", |
| 25 | + "acceptsReservations": "False", |
| 26 | + {% if phone %}"telephone": "{{ phone }}",{% endif %} |
| 27 | + {% if menu %}"hasMenu": "{{ menu }}",{% endif %} |
| 28 | + {% if food_image_path %}"image": "{{ SITE_URL }}{{ food_image_path }}",{% endif %} |
| 29 | + "aggregateRating": { |
| 30 | + "@type": "AggregateRating", |
| 31 | + "ratingValue": "{{ (taste + 1) }}", |
| 32 | + "bestRating": "4", |
| 33 | + "worstRating": "1", |
| 34 | + "ratingCount": "1" |
| 35 | + }, |
| 36 | + "review": { |
| 37 | + "@type": "Review", |
| 38 | + "reviewRating": { |
| 39 | + "@type": "Rating", |
| 40 | + "ratingValue": "{{ (taste + 1) }}", |
| 41 | + "bestRating": "4", |
| 42 | + "worstRating": "1" |
| 43 | + }, |
| 44 | + "author": { |
| 45 | + "@type": "Organization", |
| 46 | + "name": "Vegans In Love with Food" |
| 47 | + }, |
| 48 | + "datePublished": "{{ visited }}", |
| 49 | + "reviewBody": "{{ blurb | replace('"', '\\"') }}", |
| 50 | + "publisher": { |
| 51 | + "@type": "Organization", |
| 52 | + "name": "Vegans In Love with Food", |
| 53 | + "url": "{{ SITE_URL }}" |
| 54 | + } |
| 55 | + }, |
| 56 | + "openingHours": [], |
| 57 | + "paymentAccepted": "Cash, Credit Card", |
| 58 | + "currenciesAccepted": "USD" |
| 59 | +} |
| 60 | +</script> |
| 61 | + |
| 62 | +<script type="application/ld+json"> |
| 63 | +{ |
| 64 | + "@context": "https://schema.org", |
| 65 | + "@type": "BreadcrumbList", |
| 66 | + "itemListElement": [ |
| 67 | + { |
| 68 | + "@type": "ListItem", |
| 69 | + "position": 1, |
| 70 | + "name": "Home", |
| 71 | + "item": "{{ SITE_URL }}/" |
| 72 | + }, |
| 73 | + { |
| 74 | + "@type": "ListItem", |
| 75 | + "position": 2, |
| 76 | + "name": "{{ cuisine }} Restaurants", |
| 77 | + "item": "{{ SITE_URL }}/cuisines/{{ cuisine.lower().replace(' ','-') }}/" |
| 78 | + }, |
| 79 | + { |
| 80 | + "@type": "ListItem", |
| 81 | + "position": 3, |
| 82 | + "name": "{{ name }}", |
| 83 | + "item": "{{ SITE_URL }}{{ url }}" |
| 84 | + } |
| 85 | + ] |
| 86 | +} |
| 87 | +</script> |
| 88 | +{% endblock %} |
| 89 | + |
2 | 90 | {% block content %} |
3 | 91 | <section class="content"> |
4 | 92 | <h1 class="name">{{ name }}</h1> |
|
0 commit comments