Add support for 𝕏 (Twitter)

This commit is contained in:
Ryan W. 2023-11-26 15:45:19 -07:00
parent 801df3567b
commit 8900146c42
No known key found for this signature in database
GPG Key ID: 4AEBBFA6193E399D
8 changed files with 13 additions and 1 deletions

View File

@ -1222,6 +1222,10 @@ video {
background: linear-gradient(120deg, #12990b, #45d82c); background: linear-gradient(120deg, #12990b, #45d82c);
} }
.link-x {
background-color: #000;
}
.link-youtube { .link-youtube {
background-color: #ff0000; background-color: #ff0000;
} }

View File

@ -125,6 +125,9 @@
background-color: #45d82c; background-color: #45d82c;
background: linear-gradient(120deg, #12990b, #45d82c); background: linear-gradient(120deg, #12990b, #45d82c);
} }
.link-x {
background-color: #000;
}
.link-youtube { .link-youtube {
background-color: #ff0000; background-color: #ff0000;
} }

1
assets/icons/x.svg Normal file
View File

@ -0,0 +1 @@
<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="x" class="svg-inline--fa fa-x fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"/></svg>

After

Width:  |  Height:  |  Size: 372 B

View File

@ -51,6 +51,7 @@ disableKinds = ["taxonomy", "term"]
# { twitch = "https://twitch.tv/username" }, # { twitch = "https://twitch.tv/username" },
# { twitter = "https://twitter.com/username" }, # { twitter = "https://twitter.com/username" },
# { whatsapp = "https://wa.me/phone-number" }, # { whatsapp = "https://wa.me/phone-number" },
# { x = "https://x.com/username" },
# { youtube = "https://youtube.com/username" }, # { youtube = "https://youtube.com/username" },
] ]

View File

@ -12,7 +12,7 @@ disableKinds = ["taxonomy", "term"]
{ link = { href = "https://github.com/jpanther/lynx/blob/stable/README.md", text = "View the readme", icon = "github" } }, { link = { href = "https://github.com/jpanther/lynx/blob/stable/README.md", text = "View the readme", icon = "github" } },
{ link = { href = "styles/", text = "All the link styles", target = "_self" } }, { link = { href = "styles/", text = "All the link styles", target = "_self" } },
{ github = "https://github.com/jpanther/lynx" }, { github = "https://github.com/jpanther/lynx" },
{ twitter = "https://twitter.com/jpanther" }, { x = "https://x.com/jpanther" },
{ font-awesome = { href = "https://fontawesome.com/", text = "FontAwesome" } }, { font-awesome = { href = "https://fontawesome.com/", text = "FontAwesome" } },
] ]

View File

@ -44,4 +44,5 @@ These are all the built-in link styles available in Lynx. Don't forget that you
{{< link twitch >}} {{< link twitch >}}
{{< link twitter >}} {{< link twitter >}}
{{< link whatsapp >}} {{< link whatsapp >}}
{{< link x >}}
{{< link youtube >}} {{< link youtube >}}

View File

@ -36,6 +36,7 @@ link:
twitch: Twitch twitch: Twitch
twitter: Twitter twitter: Twitter
whatsapp: WhatsApp whatsapp: WhatsApp
x : 𝕏
youtube: YouTube youtube: YouTube
stack-exchange: Stack Exchange stack-exchange: Stack Exchange
stack-overflow: Stack Overflow stack-overflow: Stack Overflow

View File

@ -36,6 +36,7 @@ link:
twitch: Twitch twitch: Twitch
twitter: Twitter twitter: Twitter
whatsapp: WhatsApp whatsapp: WhatsApp
x : 𝕏
youtube: YouTube youtube: YouTube
# nav: # nav: