article-item.html.twig 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <script type='application/ld+json'>
  2. {
  3. "@type": "Articles",
  4. "name": "article",
  5. "url": "{{uri.base}}",
  6. "description": "{{page.header.metadata.description}}",
  7. "startDate": "{{page.header.date_begin}}",
  8. "endDate": "{{page.header.date_end}}",
  9. "location": {
  10. "@type": "Place",
  11. "name": "{{page.title}}",
  12. "address": {
  13. "@type": "PostalAddress",
  14. "streetAddress": "Place Michel Paulus,Ecosite du Val de Drôme",
  15. "addressLocality": "Eurre",
  16. "addressRegion": "Val de Drôme",
  17. "postalCode": "26400",
  18. "addressCountry": "France"
  19. }
  20. }
  21. }
  22. </script>
  23. {% set image = page.media.images|first %}
  24. <section class="item-wrapper">
  25. <section class="header-wrapper">
  26. <div class="title-wrapper">
  27. <div class="back">
  28. <a href="{{page.parent.url}}">Retour</a>
  29. </div>
  30. <div class="title">
  31. <h1>{{page.title}}</h1>
  32. </div>
  33. </div>
  34. <div class="info-wrapper">
  35. <div class="date">
  36. Publié {% include 'partials/blog/date.html.twig' %} |
  37. {% if page.taxonomy.category %}
  38. {% for category in page.taxonomy.category %}
  39. <span class="cat">
  40. {{ category }}
  41. </span>
  42. {% endfor %}
  43. {% endif %}
  44. </div>
  45. <div class="reso">
  46. <!-- Your share button code -->
  47. <div>
  48. <a href="//www.facebook.com/sharer/sharer.php?u={{uri.route(true, true)}}" class="sharebox" target="_blank" rel =" noopener " onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=400,width=700');return false;">
  49. Partager
  50. <img src="/user/themes/lecampus/images/fb_black.svg" alt="facebook">
  51. </a>
  52. </div>
  53. <a target="_blank" rel =" noopener " title="Twitter" href="https://twitter.com/share?url={{uri.route(true, true)}}" rel="nofollow" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=400,width=700');return false;">
  54. Partager
  55. <img src="/user/themes/lecampus/images/twitter.svg" alt="Twitter">
  56. </a>
  57. <a target="_blank" rel =" noopener " href=" http://www.linkedin.com/shareArticle?mini=true&url={{uri.route(true, true)}}" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=400,width=700');return false;">
  58. Partager
  59. <img src="/user/themes/lecampus/images/in_black.svg" alt="linkedin" />
  60. </a>
  61. </div>
  62. </div>
  63. </section>
  64. <section class="body-wrapper">
  65. <div class="card-image">
  66. {% for images in page.media.images|slice(0, 1) %}
  67. {{images.html('', page.title )}}
  68. {% endfor %}
  69. </div>
  70. <div class="card-content">
  71. <div class="txt">
  72. {{ page.content|raw }}
  73. </div>
  74. </div>
  75. </section>
  76. </section>