From 6e5c73b1e6d224b29df4a76d05ff27a47a601b36 Mon Sep 17 00:00:00 2001
From: Benoit Alessandroni <benoit@happy-dev.fr>
Date: Thu, 30 Apr 2020 18:00:55 +0200
Subject: [PATCH] Picture widget simplification and extra_context fix

---
 src/includes/components/widgets.pug | 6 +++---
 src/includes/head.pug               | 3 ++-
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/includes/components/widgets.pug b/src/includes/components/widgets.pug
index 405c3e93..2294e3f8 100644
--- a/src/includes/components/widgets.pug
+++ b/src/includes/components/widgets.pug
@@ -190,15 +190,15 @@ sib-widget(name='cs-section_introduction')
 sib-widget(name='cs-account-picture')
   template
     figure.avatar
-        img(name="${name}", src="\${value || '/images/alien.jpg'}", alt="Profile picture")
+        img(src="\${value || '/images/alien.jpg'}", alt="Profile picture")
 
 sib-widget(name='cs-profile-picture')
   template
-      img(name="${name}", src="\${value || '/images/alien.jpg'}", alt="Profile picture")
+      img(src="\${value || '/images/alien.jpg'}", alt="Profile picture")
 
 sib-widget(name='cs-preview-picture')
   template
-      img(name="${name}", src="\${value || '/images/alien.jpg'}", alt="Preview of the resource")
+      img(src="\${value || '/images/alien.jpg'}", alt="Preview of the resource")
 
 sib-widget(name="hidden-widget")
     template
diff --git a/src/includes/head.pug b/src/includes/head.pug
index 73072a18..a65340bc 100644
--- a/src/includes/head.pug
+++ b/src/includes/head.pug
@@ -25,6 +25,7 @@ head
             {
                 "entrepreneurProfile": "http://happy-dev.fr/owl/#entrepreneur_profile",
                 "mentorProfile": "http://happy-dev.fr/owl/#mentor_profile",
-                "account": "http://happy-dev.fr/owl/#account"
+                "account": "http://happy-dev.fr/owl/#account",
+                "picture":"foaf:depiction"
             }
         
-- 
GitLab