diff --git a/exampleSiteMultilingual/content/posts/icons.md b/exampleSiteMultilingual/content/posts/icons.md new file mode 100644 index 0000000..23dff6c --- /dev/null +++ b/exampleSiteMultilingual/content/posts/icons.md @@ -0,0 +1,56 @@ ++++ +author = "Junyi" +title = "Icons" +date = "2024-04-23" +description = "Guide to using social icons supported by Anubis2." +tags = [ + "icons", + "anubis2", + "hugo" +] ++++ + +To use an icon, simply copy its shortcode and paste it into your content where you want the icon to appear. The shortcode must be enclosed in `{{}}`. + +Here is a list of available icons, their shortcodes, and what they look like when rendered: + + +| name | shortcode | icon | +| ---------- | ---------------------------------- | ---------------------------- | +| 4chan | `{{}}` | {{< icon "4chan" >}} | +| leetcode | `{{}}` | {{< icon "leetcode" >}} | +| qq | `{{}}` | {{< icon "qq" >}} | +| spotify | `{{}}` | {{< icon "spotify" >}} | +| tinder | `{{}}` | {{< icon "tinder" >}} | +| youtube | `{{}}` | {{< icon "youtube" >}} | +| docs | `{{}}` | {{< icon "docs" >}} | +| linkedin | `{{}}` | {{< icon "linkedin" >}} | +| reddit | `{{}}` | {{< icon "reddit" >}} | +| steam | `{{}}` | {{< icon "steam" >}} | +| tumblr | `{{}}` | {{< icon "tumblr" >}} | +| zhihu | `{{}}` | {{< icon "zhihu" >}} | +| email | `{{}}` | {{< icon "email" >}} | +| mastodon | `{{}}` | {{< icon "mastodon" >}} | +| rss | `{{}}` | {{< icon "rss" >}} | +| teams | `{{}}` | {{< icon "teams" >}} | +| twitch | `{{}}` | {{< icon "twitch" >}} | +| facebook | `{{}}` | {{< icon "facebook" >}} | +| medium | `{{}}` | {{< icon "medium" >}} | +| skype | `{{}}` | {{< icon "skype" >}} | +| telegram | `{{}}` | {{< icon "telegram" >}} | +| twitter | `{{}}` | {{< icon "twitter" >}} | +| github | `{{}}` | {{< icon "github" >}} | +| netease | `{{}}` | {{< icon "netease-music" >}} | +| slack | `{{}}` | {{< icon "slack" >}} | +| theme | `{{}}` | {{< icon "theme-dark" >}} | +| vk | `{{}}` | {{< icon "vk" >}} | +| gitlab | `{{}}` | {{< icon "gitlab" >}} | +| notion | `{{}}` | {{< icon "notion" >}} | +| snapchat | `{{}}` | {{< icon "snapchat" >}} | +| theme | `{{}}` | {{< icon "theme-light" >}} | +| weibo | `{{}}` | {{< icon "weibo" >}} | +| instagram | `{{}}` | {{< icon "instagram" >}} | +| patreon | `{{}}` | {{< icon "patreon" >}} | +| soundcloud | `{{}}` | {{< icon "soundcloud" >}} | +| tiktok | `{{}}` | {{< icon "tiktok" >}} | +| x | `{{}}` | {{< icon "x" >}} | \ No newline at end of file diff --git a/layouts/shortcodes/icon.html b/layouts/shortcodes/icon.html new file mode 100644 index 0000000..494bb61 --- /dev/null +++ b/layouts/shortcodes/icon.html @@ -0,0 +1 @@ +{{ partial (print "tabler-icons/" (.Get 0) ".svg" ) . }} \ No newline at end of file