Skip to content

Commit

Permalink
add support for linkedin icon
Browse files Browse the repository at this point in the history
  • Loading branch information
razuos authored and nicokaiser committed Jun 20, 2024
1 parent 978aaf3 commit f25e903
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ Use the `socialIcons` configuration key to add social icons on the bottom of eac
github = "https://github.com/nicokaiser/hugo-theme-gallery/"
youtube = "https://www.youtube.com/"
email = "mailto:user@example.com"
linkedin = "https://linkedin.com/"
```

### Customization
Expand Down
9 changes: 9 additions & 0 deletions layouts/partials/social-icons.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,14 @@
</svg>
</a>
{{ end }}
{{ with .linkedin }}
<a title="Linkedin" href="{{ . }}">
<svg width="24" height="24" fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"
aria-hidden="true">
<path
d="M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z" />
</svg>
</a>
{{ end }}
</section>
{{ end }}

0 comments on commit f25e903

Please sign in to comment.