Skip to content

Commit

Permalink
feat: add support for x.com logo/icon (#91)
Browse files Browse the repository at this point in the history
* Support x.com (new Twitter) logo

* chore: add more information regarding Twitter and x.com logo

---------

Co-authored-by: Sid <122173059+hugo-sid@users.noreply.github.com>
  • Loading branch information
wildekek and hugo-sid committed Aug 21, 2023
1 parent beb30ce commit 20c2ea8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,9 @@ url = "index.xml"
| `telegram` | telegram.org |
| `tiktok` | tiktok.com |
| `twitch` | twitch.tv |
| `twitter` | twitter.com |
| `twitter` (the blue bird logo) | twitter.com |
| `unsplash` | unsplash.com |
| `x` (formerly Twitter) | x.com |
| `xda` | xda-developers.com |
| `xing` | xing.com |
| `ycombinator` | ycombinator.com |
Expand Down
5 changes: 5 additions & 0 deletions layouts/partials/svgs/svgs.html
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,11 @@
<path
d="M23.9765 6.4168c-.105 2.338-1.739 5.5429-4.894 9.6088-3.2679 4.247-6.0258 6.3699-8.2898 6.3699-1.409 0-2.578-1.294-3.553-3.881l-1.9179-7.1138c-.719-2.584-1.488-3.878-2.312-3.878-.179 0-.806.378-1.8809 1.132l-1.129-1.457a315.06 315.06 0 003.501-3.1279c1.579-1.368 2.765-2.085 3.5539-2.159 1.867-.18 3.016 1.1 3.447 3.838.465 2.953.789 4.789.971 5.5069.5389 2.45 1.1309 3.674 1.7759 3.674.502 0 1.256-.796 2.265-2.385 1.004-1.589 1.54-2.797 1.612-3.628.144-1.371-.395-2.061-1.614-2.061-.574 0-1.167.121-1.777.391 1.186-3.8679 3.434-5.7568 6.7619-5.6368 2.4729.06 3.6279 1.664 3.4929 4.7969z"/>
</svg>
{{- else if (eq $icon_name "x") -}}
<svg viewBox="0 0 1200 1227" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<path
d="M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z"/>
</svg>
{{- else if (eq $icon_name "xda") -}}
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="currentColor">
<path
Expand Down

0 comments on commit 20c2ea8

Please sign in to comment.