Skip to content

Commit

Permalink
Update social.html
Browse files Browse the repository at this point in the history
Corrected href for "mailto" and cleaned up code.
  • Loading branch information
Dekker500 committed Apr 19, 2023
1 parent 772fb56 commit e8c78d6
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions layouts/partials/social.html
Original file line number Diff line number Diff line change
Expand Up @@ -498,26 +498,14 @@
</li>
{{ end }}

{{ if eq .website "email" }}
{{ if eq .website "email" }}
<li>
<a
href="{{ .url }}"
href="mailto:{{ .url }}"
target="_blank"
rel="noopener"
aria-label="LinkedIn"
class="p-1 inline-block rounded-full border border-transparent text-gray-500 hover:text-gray-800 hover:border-gray-800 cursor-pointer transition-colors dark:text-gray-600 dark:hover:border-gray-300 dark:hover:text-gray-300"
>
{{/* <svg
xmlns="http:https://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
stroke-width="1.5"
stroke="currentColor"
fill="none"
stroke-linecap="round"
stroke-linejoin="round"
> */}}
aria-label="email"
class="p-1 inline-block rounded-full border border-transparent text-gray-500 hover:text-gray-800 hover:border-gray-800 cursor-pointer transition-colors dark:text-gray-600 dark:hover:border-gray-300 dark:hover:text-gray-300">
<svg xmlns="http:https://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" class="bi bi-envelope" viewBox="0 0 16 16">
<path d="M0 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4Zm2-1a1 1 0 0 0-1 1v.217l7 4.2 7-4.2V4a1 1 0 0 0-1-1H2Zm13 2.383-4.708 2.825L15 11.105V5.383Zm-.034 6.876-5.64-3.471L8 9.583l-1.326-.795-5.64 3.47A1 1 0 0 0 2 13h12a1 1 0 0 0 .966-.741ZM1 11.105l4.708-2.897L1 5.383v5.722Z"/>
</svg>
Expand Down

0 comments on commit e8c78d6

Please sign in to comment.