Skip to content

Commit

Permalink
person.html: Add more fields
Browse files Browse the repository at this point in the history
  • Loading branch information
earthboundkid committed Sep 14, 2023
1 parent 3968cf1 commit 7da6528
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 1 deletion.
45 changes: 44 additions & 1 deletion layouts/_default/person.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,18 @@ <h2 class="break-word text-lg leading-tight text-g-6">
</p>
{{ end }}

{{ with .Param "languages" }}
<p class="sm:w-1/2">
<span class="mr-5 text-g-6">
<svg class="inline-block h-4 w-4 fill-current align-text-bottom">
<title>Languages</title>
<use xlink:href="#language-svg"></use>
</svg>
</span>
<span>{{ . }}</span>
</p>
{{ end }}

{{ with .Param "email" }}
<p
class="no-js-hide sm:w-1/2"
Expand Down Expand Up @@ -182,8 +194,39 @@ <h2 class="break-word text-lg leading-tight text-g-6">
class="text-blue transition-colors duration-500 hover:text-blue-darker"
href="{{ . }}"
target="_blank"
>LinkedIn</a
>
{{- "LinkedIn" -}}
</a>
</p>
{{ end }}

{{ with .Param "contact" }}
<p class="sm:w-1/2">
<span class="mr-5 text-g-6">
<svg class="inline-block h-4 w-4 fill-current align-text-bottom">
<title>Preferred contact</title>
<use xlink:href="#contact-svg"></use>
</svg>
</span>
<span>Prefers contact by {{ . | lower }}</span>
</p>
{{ end }}

{{ with .Param "resume" }}
<p class="sm:w-1/2">
<span class="mr-5 text-g-6">
<svg class="inline-block h-4 w-4 fill-current align-text-bottom">
<title>Download résumé</title>
<use xlink:href="#resume-svg"></use>
</svg>
</span>
<a
class="text-blue transition-colors duration-500 hover:text-blue-darker"
href="{{ . }}"
target="_blank"
>
{{- "Résumé" -}}
</a>
</p>
{{ end }}
</div>
Expand Down
3 changes: 3 additions & 0 deletions layouts/partials/svg.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@
"banner-svg" "/img/logos/ctmirror-banner.svg"
"check-svg" "@fontawesome/solid/check.svg"
"close-svg" "@fontawesome/solid/xmark.svg"
"contact-svg" "@fontawesome/solid/address-card.svg"
"earth-svg" "@fontawesome/solid/earth-americas.svg"
"email-svg" "@fontawesome/regular/envelope.svg"
"fb-svg" "@fontawesome/brands/facebook-f.svg"
"globe-svg" "@fontawesome/solid/globe.svg"
"instagram-svg" "@fontawesome/brands/instagram.svg"
"language-svg" "@fontawesome/solid/pencil.svg"
"linkedin-svg" "@fontawesome/brands/linkedin.svg"
"loading-svg" "@fontawesome/solid/spinner.svg"
"phone-svg" "@fontawesome/solid/phone.svg"
"resume-svg" "@fontawesome/solid/file-invoice.svg"
"search-svg" "@fontawesome/solid/magnifying-glass.svg"
"share-svg" "@fontawesome/solid/share.svg"
"sources-svg" "/img/logos/sources.svg"
Expand Down

0 comments on commit 7da6528

Please sign in to comment.