Преглед на файлове

fix: sub nav avatar url

ppoffice преди 9 години
родител
ревизия
403fb9dd09
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      layout/common/header.ejs

+ 2 - 1
layout/common/header.ejs

@@ -11,10 +11,11 @@
                 <% } %>
             </nav>
             <% if(theme.customize.profile && theme.customize.profile.enabled) { %>
+                <% var profile = theme.customize.profile; %>
                 <nav id="sub-nav">
                     <div class="profile" id="profile-nav">
                         <a id="profile-anchor" href="javascript:;">
-                            <img class="avatar" src="<%= ( theme.gravatar ? gravatar(config.email) : url_for(config.avatar)) %>" />
+                            <img class="avatar" src="<%= ( profile.gravatar ? gravatar(profile.gravatar) : url_for(profile.avatar)) %>" />
                             <i class="fa fa-caret-down"></i>
                         </a>
                     </div>