소스 검색

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 4 년 전
부모
커밋
b634d637f1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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">