diff --git a/exampleSite/config.toml b/exampleSite/config.toml index fc2c119..baac176 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -9,6 +9,7 @@ disableKinds = ["taxonomy", "term"] image = "author.jpg" links = [ { link = { href = "readme/", text = "View the readme" } }, + { link = { href = "styles/", text = "All the link styles" } }, { github = "https://github.com/jpanther/lynx" }, { twitter = "https://twitter.com/jpanther" }, { font-awesome = { href = "https://fontawesome.com/", text = "FontAwesome" } }, @@ -16,3 +17,7 @@ disableKinds = ["taxonomy", "term"] [markup.highlight] noClasses = false + +[markup.goldmark] +[markup.goldmark.renderer] + unsafe = true diff --git a/exampleSite/content/styles.md b/exampleSite/content/styles.md new file mode 100644 index 0000000..a370f0a --- /dev/null +++ b/exampleSite/content/styles.md @@ -0,0 +1,47 @@ +--- +title: Link styles +--- + +These are all the built-in link styles available in Lynx. Don't forget that you can also create your own styles --- check the [readme]({{< ref "readme#adding-custom-icons-and-link-styles" >}}) for more details. +

+ + +
+
+{{< link email >}} +{{< link link >}} +{{< link amazon >}} +{{< link apple >}} +{{< link codepen >}} +{{< link dev >}} +{{< link discord >}} +{{< link dribbble >}} +{{< link facebook >}} +{{< link flickr >}} +{{< link foursquare >}} +{{< link github >}} +{{< link gitlab >}} +{{< link google >}} +{{< link instagram >}} +{{< link keybase >}} +{{< link kickstarter >}} +{{< link lastfm >}} +{{< link linkedin >}} +{{< link mastodon >}} +{{< link medium >}} +{{< link microsoft >}} +{{< link patreon >}} +{{< link pinterest >}} +{{< link reddit >}} +{{< link slack >}} +{{< link snapchat >}} +{{< link soundcloud >}} +{{< link steam >}} +{{< link telegram >}} +{{< link tiktok >}} +{{< link tumblr >}} +{{< link twitch >}} +{{< link twitter >}} +{{< link whatsapp >}} +{{< link youtube >}} +
diff --git a/exampleSite/layouts/shortcodes/link.html b/exampleSite/layouts/shortcodes/link.html new file mode 100644 index 0000000..552b1d1 --- /dev/null +++ b/exampleSite/layouts/shortcodes/link.html @@ -0,0 +1,8 @@ + + {{ partial "icon.html" (.Get 0) }} + {{ .Get 0 }} +