瀏覽代碼

json-ld correct

kevin tessier 5 年之前
父節點
當前提交
d03cdb1111
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      user/themes/lecampus/templates/partials/cal-event.html.twig

+ 2 - 1
user/themes/lecampus/templates/partials/cal-event.html.twig

@@ -3,7 +3,7 @@
   "@type": "Event",
   "name": "agenda",
   "url": "{{uri.base}}",
-  "description": "{{page.summary}}",
+  "description": "{{page.summary|striptags}}",
   "startDate": "{{page.header.date_begin}}",
   "endDate": "{{page.header.date_end}}",
   "location": {
@@ -19,6 +19,7 @@
     }
   }
 }
+
 </script>
 
 {% set image = page.media.images|first %}