Procházet zdrojové kódy

feat(widget): show email (if entered) in About widget

Previously email only shown if exists and the email form is disabled.

However, both Formspree and Netlify no longer use email address as a parameter, and received request to show email (if entered), in addition to email form, so visitors have the choice to use their usual email client to send a message.

Therefore, show the email address if it was entered.
George Cushen před 4 roky
rodič
revize
b634d637f1
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      wowchemy/layouts/partials/widgets/contact.html

+ 1 - 1
wowchemy/layouts/partials/widgets/contact.html

@@ -59,7 +59,7 @@
 
   <ul class="fa-ul">
 
-    {{ if and $data.email (not $use_form) }}
+    {{ if $data.email }}
     <li>
       <i class="fa-li fas fa-envelope fa-2x" aria-hidden="true"></i>
       <span id="person-email">